Skip to content

Commit

Permalink
CL-223: User should be able to override sessionUUID during object
Browse files Browse the repository at this point in the history
instantiation and prepare unit test project.
  • Loading branch information
tanaji-kadam committed Oct 18, 2012
1 parent 098942b commit a785ccd
Show file tree
Hide file tree
Showing 41 changed files with 8,949 additions and 34 deletions.
364 changes: 364 additions & 0 deletions cocoa/3.3/CocoaPubnubTest/CocoaPubnubTest.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Original file line number Diff line number Diff line change
@@ -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>
Original file line number Diff line number Diff line change
@@ -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>
Original file line number Diff line number Diff line change
@@ -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>
18 changes: 18 additions & 0 deletions cocoa/3.3/CocoaPubnubTest/CocoaPubnubTest/AppDelegate.h
Original file line number Diff line number Diff line change
@@ -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
40 changes: 40 additions & 0 deletions cocoa/3.3/CocoaPubnubTest/CocoaPubnubTest/AppDelegate.m
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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>
Original file line number Diff line number Diff line change
@@ -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.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading

0 comments on commit a785ccd

Please sign in to comment.