Permalink
Browse files

CL-223: User should be able to override sessionUUID during object

instantiation and prepare unit test project.
  • Loading branch information...
1 parent 098942b commit a785ccddc0f38f96f20036070e4b631c193279ee @tanaji-kadam tanaji-kadam committed Oct 18, 2012
Showing with 8,949 additions and 34 deletions.
  1. +364 −0 cocoa/3.3/CocoaPubnubTest/CocoaPubnubTest.xcodeproj/project.pbxproj
  2. +7 −0 cocoa/3.3/CocoaPubnubTest/CocoaPubnubTest.xcodeproj/project.xcworkspace/contents.xcworkspacedata
  3. BIN ...st.xcodeproj/project.xcworkspace/xcuserdata/dahiwadkar.xcuserdatad/UserInterfaceState.xcuserstate
  4. +46 −0 ...est/CocoaPubnubTest.xcodeproj/xcuserdata/dahiwadkar.xcuserdatad/xcdebugger/Breakpoints.xcbkptlist
  5. +86 −0 ...st/CocoaPubnubTest.xcodeproj/xcuserdata/dahiwadkar.xcuserdatad/xcschemes/CocoaPubnubTest.xcscheme
  6. +22 −0 ...st/CocoaPubnubTest.xcodeproj/xcuserdata/dahiwadkar.xcuserdatad/xcschemes/xcschememanagement.plist
  7. +18 −0 cocoa/3.3/CocoaPubnubTest/CocoaPubnubTest/AppDelegate.h
  8. +40 −0 cocoa/3.3/CocoaPubnubTest/CocoaPubnubTest/AppDelegate.m
  9. +34 −0 cocoa/3.3/CocoaPubnubTest/CocoaPubnubTest/CocoaPubnubTest-Info.plist
  10. +7 −0 cocoa/3.3/CocoaPubnubTest/CocoaPubnubTest/CocoaPubnubTest-Prefix.pch
  11. 0 cocoa/3.3/{ → CocoaPubnubTest/CocoaPubnubTest/PubNub}/JSON.h
  12. 0 cocoa/3.3/{ → CocoaPubnubTest/CocoaPubnubTest/PubNub}/JSON.m
  13. 0 cocoa/3.3/{ → CocoaPubnubTest/CocoaPubnubTest/PubNub}/JSONKit.h
  14. 0 cocoa/3.3/{ → CocoaPubnubTest/CocoaPubnubTest/PubNub}/JSONKit.m
  15. +8 −0 cocoa/3.3/{ → CocoaPubnubTest/CocoaPubnubTest/PubNub}/pubnub.h
  16. +626 −0 cocoa/3.3/CocoaPubnubTest/CocoaPubnubTest/PubNub/pubnub.m
  17. 0 cocoa/3.3/{ → CocoaPubnubTest/CocoaPubnubTest/PubNub}/request.h
  18. 0 cocoa/3.3/{ → CocoaPubnubTest/CocoaPubnubTest/PubNub}/request.m
  19. +14 −0 cocoa/3.3/CocoaPubnubTest/CocoaPubnubTest/UnitTest/CL_223.h
  20. +150 −0 cocoa/3.3/CocoaPubnubTest/CocoaPubnubTest/UnitTest/CL_223.m
  21. +13 −0 cocoa/3.3/CocoaPubnubTest/CocoaPubnubTest/UnitTest/CommonUtil.h
  22. +23 −0 cocoa/3.3/CocoaPubnubTest/CocoaPubnubTest/UnitTest/CommonUtil.m
  23. 0 cocoa/3.3/{ → CocoaPubnubTest/CocoaPubnubTest/UnitTest}/DetailedHistoryUnitTest.h
  24. 0 cocoa/3.3/{ → CocoaPubnubTest/CocoaPubnubTest/UnitTest}/DetailedHistoryUnitTest.m
  25. 0 cocoa/3.3/{ → CocoaPubnubTest/CocoaPubnubTest/UnitTest}/UnsubcribeUnitTest.h
  26. +19 −11 cocoa/3.3/{ → CocoaPubnubTest/CocoaPubnubTest/UnitTest}/UnsubcribeUnitTest.m
  27. +29 −0 cocoa/3.3/CocoaPubnubTest/CocoaPubnubTest/en.lproj/Credits.rtf
  28. +2 −0 cocoa/3.3/CocoaPubnubTest/CocoaPubnubTest/en.lproj/InfoPlist.strings
  29. +3,635 −0 cocoa/3.3/CocoaPubnubTest/CocoaPubnubTest/en.lproj/MainMenu.xib
  30. +14 −0 cocoa/3.3/CocoaPubnubTest/CocoaPubnubTest/main.m
  31. +32 −0 cocoa/3.3/PubNub/JSON.h
  32. +94 −0 cocoa/3.3/PubNub/JSON.m
  33. +251 −0 cocoa/3.3/PubNub/JSONKit.h
  34. +3,065 −0 cocoa/3.3/PubNub/JSONKit.m
  35. +0 −2 cocoa/3.3/{ → PubNub}/build-example
  36. 0 cocoa/3.3/{ → PubNub}/example.d
  37. +1 −16 cocoa/3.3/{ → PubNub}/example.m
  38. +70 −0 cocoa/3.3/PubNub/pubnub.h
  39. +27 −5 cocoa/3.3/{ → PubNub}/pubnub.m
  40. +71 −0 cocoa/3.3/PubNub/request.h
  41. +181 −0 cocoa/3.3/PubNub/request.m

Large diffs are not rendered by default.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Bucket
+ type = "1"
+ version = "1.0">
+ <FileBreakpoints>
+ <FileBreakpoint
+ shouldBeEnabled = "No"
+ ignoreCount = "0"
+ continueAfterRunningActions = "No"
+ filePath = "CocoaPubnubTest/PubNub/pubnub.m"
+ timestampString = "372243808.129985"
+ startingColumnNumber = "9223372036854775807"
+ endingColumnNumber = "9223372036854775807"
+ startingLineNumber = "174"
+ endingLineNumber = "174"
+ landmarkName = "-subscribe:delegate:"
+ landmarkType = "5">
+ </FileBreakpoint>
+ <FileBreakpoint
+ shouldBeEnabled = "No"
+ ignoreCount = "0"
+ continueAfterRunningActions = "No"
+ filePath = "CocoaPubnubTest/UnitTest/CL_223.m"
+ timestampString = "372244121.764048"
+ startingColumnNumber = "9223372036854775807"
+ endingColumnNumber = "9223372036854775807"
+ startingLineNumber = "81"
+ endingLineNumber = "81"
+ landmarkName = "-callback:withResponce:"
+ landmarkType = "5">
+ </FileBreakpoint>
+ <FileBreakpoint
+ shouldBeEnabled = "Yes"
+ ignoreCount = "0"
+ continueAfterRunningActions = "No"
+ filePath = "CocoaPubnubTest/PubNub/pubnub.m"
+ timestampString = "372243808.129985"
+ startingColumnNumber = "9223372036854775807"
+ endingColumnNumber = "9223372036854775807"
+ startingLineNumber = "84"
+ endingLineNumber = "84"
+ landmarkName = "-publish:message:delegate:"
+ landmarkType = "5">
+ </FileBreakpoint>
+ </FileBreakpoints>
+</Bucket>
@@ -0,0 +1,86 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Scheme
+ LastUpgradeVersion = "0440"
+ version = "1.3">
+ <BuildAction
+ parallelizeBuildables = "YES"
+ buildImplicitDependencies = "YES">
+ <BuildActionEntries>
+ <BuildActionEntry
+ buildForTesting = "YES"
+ buildForRunning = "YES"
+ buildForProfiling = "YES"
+ buildForArchiving = "YES"
+ buildForAnalyzing = "YES">
+ <BuildableReference
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "C8A466E9162FE06B003DDAA6"
+ BuildableName = "CocoaPubnubTest.app"
+ BlueprintName = "CocoaPubnubTest"
+ ReferencedContainer = "container:CocoaPubnubTest.xcodeproj">
+ </BuildableReference>
+ </BuildActionEntry>
+ </BuildActionEntries>
+ </BuildAction>
+ <TestAction
+ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+ selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
+ shouldUseLaunchSchemeArgsEnv = "YES"
+ buildConfiguration = "Debug">
+ <Testables>
+ </Testables>
+ <MacroExpansion>
+ <BuildableReference
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "C8A466E9162FE06B003DDAA6"
+ BuildableName = "CocoaPubnubTest.app"
+ BlueprintName = "CocoaPubnubTest"
+ ReferencedContainer = "container:CocoaPubnubTest.xcodeproj">
+ </BuildableReference>
+ </MacroExpansion>
+ </TestAction>
+ <LaunchAction
+ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+ selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
+ launchStyle = "0"
+ useCustomWorkingDirectory = "NO"
+ buildConfiguration = "Debug"
+ ignoresPersistentStateOnLaunch = "NO"
+ debugDocumentVersioning = "YES"
+ allowLocationSimulation = "YES">
+ <BuildableProductRunnable>
+ <BuildableReference
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "C8A466E9162FE06B003DDAA6"
+ BuildableName = "CocoaPubnubTest.app"
+ BlueprintName = "CocoaPubnubTest"
+ ReferencedContainer = "container:CocoaPubnubTest.xcodeproj">
+ </BuildableReference>
+ </BuildableProductRunnable>
+ <AdditionalOptions>
+ </AdditionalOptions>
+ </LaunchAction>
+ <ProfileAction
+ shouldUseLaunchSchemeArgsEnv = "YES"
+ savedToolIdentifier = ""
+ useCustomWorkingDirectory = "NO"
+ buildConfiguration = "Release"
+ debugDocumentVersioning = "YES">
+ <BuildableProductRunnable>
+ <BuildableReference
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "C8A466E9162FE06B003DDAA6"
+ BuildableName = "CocoaPubnubTest.app"
+ BlueprintName = "CocoaPubnubTest"
+ ReferencedContainer = "container:CocoaPubnubTest.xcodeproj">
+ </BuildableReference>
+ </BuildableProductRunnable>
+ </ProfileAction>
+ <AnalyzeAction
+ buildConfiguration = "Debug">
+ </AnalyzeAction>
+ <ArchiveAction
+ buildConfiguration = "Release"
+ revealArchiveInOrganizer = "YES">
+ </ArchiveAction>
+</Scheme>
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>SchemeUserState</key>
+ <dict>
+ <key>CocoaPubnubTest.xcscheme</key>
+ <dict>
+ <key>orderHint</key>
+ <integer>0</integer>
+ </dict>
+ </dict>
+ <key>SuppressBuildableAutocreation</key>
+ <dict>
+ <key>C8A466E9162FE06B003DDAA6</key>
+ <dict>
+ <key>primary</key>
+ <true/>
+ </dict>
+ </dict>
+</dict>
+</plist>
@@ -0,0 +1,18 @@
+//
+// AppDelegate.h
+// CocoaPubnubTest
+//
+// Created by itshastra on 18/10/12.
+// Copyright (c) 2012 itshastra. All rights reserved.
+//
+
+#import <Cocoa/Cocoa.h>
+
+@interface AppDelegate : NSObject <NSApplicationDelegate>
+
+@property (assign) IBOutlet NSWindow *window;
+- (IBAction)UnsubscribeUnitTest:(id)sender;
+- (IBAction)CL_223_UnitTest:(id)sender;
+- (IBAction)DetailedHistoryUbitTest:(id)sender;
+
+@end
@@ -0,0 +1,40 @@
+//
+// AppDelegate.m
+// CocoaPubnubTest
+//
+// Created by itshastra on 18/10/12.
+// Copyright (c) 2012 itshastra. All rights reserved.
+//
+
+#import "AppDelegate.h"
+#import "UnitTest/DetailedHistoryUnitTest.h"
+#import "UnitTest/UnsubcribeUnitTest.h"
+#import "UnitTest/CL_223.h"
+
+@implementation AppDelegate
+
+
+
+- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
+{
+ // Insert code here to initialize your application
+}
+
+- (IBAction)UnsubscribeUnitTest:(id)sender {
+ UnsubcribeUnitTest *unittest1= [[UnsubcribeUnitTest alloc] init];
+ [unittest1 runUnsubcribeUnitTest];
+
+}
+
+- (IBAction)CL_223_UnitTest:(id)sender {
+ CL_223 *cl223= [[CL_223 alloc]init];
+ [cl223 runCL_223UnitTest];
+}
+
+- (IBAction)DetailedHistoryUbitTest:(id)sender {
+ DetailedHistoryUnitTest *unittest= [[DetailedHistoryUnitTest alloc] init];
+ [unittest runUnitTest];
+
+
+}
+@end
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>CFBundleDevelopmentRegion</key>
+ <string>en</string>
+ <key>CFBundleExecutable</key>
+ <string>${EXECUTABLE_NAME}</string>
+ <key>CFBundleIconFile</key>
+ <string></string>
+ <key>CFBundleIdentifier</key>
+ <string>its.${PRODUCT_NAME:rfc1034identifier}</string>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>CFBundleName</key>
+ <string>${PRODUCT_NAME}</string>
+ <key>CFBundlePackageType</key>
+ <string>APPL</string>
+ <key>CFBundleShortVersionString</key>
+ <string>1.0</string>
+ <key>CFBundleSignature</key>
+ <string>????</string>
+ <key>CFBundleVersion</key>
+ <string>1</string>
+ <key>LSMinimumSystemVersion</key>
+ <string>${MACOSX_DEPLOYMENT_TARGET}</string>
+ <key>NSHumanReadableCopyright</key>
+ <string>Copyright © 2012 itshastra. All rights reserved.</string>
+ <key>NSMainNibFile</key>
+ <string>MainMenu</string>
+ <key>NSPrincipalClass</key>
+ <string>NSApplication</string>
+</dict>
+</plist>
@@ -0,0 +1,7 @@
+//
+// Prefix header for all source files of the 'CocoaPubnubTest' target in the 'CocoaPubnubTest' project
+//
+
+#ifdef __OBJC__
+ #import <Cocoa/Cocoa.h>
+#endif
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -21,6 +21,14 @@
sslOn: (BOOL) ssl_on
origin: (NSString*) origin;
+-(Pubnub*)
+ publishKey: (NSString*) pub_key
+ subscribeKey: (NSString*) sub_key
+ secretKey: (NSString*) sec_key
+ sslOn: (BOOL) ssl_on
+ uuid: (NSString*) uuid
+ origin: (NSString*) origin;
+
-(void)
publish: (NSString*) channel
message: (id) message
Oops, something went wrong.

0 comments on commit a785ccd

Please sign in to comment.