Permalink
Browse files

CL-224: Implement catch-up functionality.

  • Loading branch information...
1 parent a785ccd commit 45aeedd40567ff2c9c1f50095301c3638cc2e557 @tanaji-kadam tanaji-kadam committed Oct 19, 2012
@@ -21,6 +21,7 @@
C8A46722162FE311003DDAA6 /* UnsubcribeUnitTest.m in Sources */ = {isa = PBXBuildFile; fileRef = C8A4671A162FE311003DDAA6 /* UnsubcribeUnitTest.m */; };
C8A46726162FE57B003DDAA6 /* CL_223.m in Sources */ = {isa = PBXBuildFile; fileRef = C8A46725162FE57B003DDAA6 /* CL_223.m */; };
C8A46729162FE5D7003DDAA6 /* CommonUtil.m in Sources */ = {isa = PBXBuildFile; fileRef = C8A46728162FE5D7003DDAA6 /* CommonUtil.m */; };
+ C8BA022C16317D8F00DAE577 /* Catch_Up_UnitTest.m in Sources */ = {isa = PBXBuildFile; fileRef = C8BA022B16317D8F00DAE577 /* Catch_Up_UnitTest.m */; };
/* End PBXBuildFile section */
/* Begin PBXFileReference section */
@@ -53,6 +54,8 @@
C8A46725162FE57B003DDAA6 /* CL_223.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CL_223.m; sourceTree = "<group>"; };
C8A46727162FE5D7003DDAA6 /* CommonUtil.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CommonUtil.h; sourceTree = "<group>"; };
C8A46728162FE5D7003DDAA6 /* CommonUtil.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CommonUtil.m; sourceTree = "<group>"; };
+ C8BA022A16317D8F00DAE577 /* Catch_Up_UnitTest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Catch_Up_UnitTest.h; sourceTree = "<group>"; };
+ C8BA022B16317D8F00DAE577 /* Catch_Up_UnitTest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Catch_Up_UnitTest.m; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
@@ -154,6 +157,8 @@
C8A4671A162FE311003DDAA6 /* UnsubcribeUnitTest.m */,
C8A46724162FE57B003DDAA6 /* CL_223.h */,
C8A46725162FE57B003DDAA6 /* CL_223.m */,
+ C8BA022A16317D8F00DAE577 /* Catch_Up_UnitTest.h */,
+ C8BA022B16317D8F00DAE577 /* Catch_Up_UnitTest.m */,
);
path = UnitTest;
sourceTree = "<group>";
@@ -232,6 +237,7 @@
C8A46722162FE311003DDAA6 /* UnsubcribeUnitTest.m in Sources */,
C8A46726162FE57B003DDAA6 /* CL_223.m in Sources */,
C8A46729162FE5D7003DDAA6 /* CommonUtil.m in Sources */,
+ C8BA022C16317D8F00DAE577 /* Catch_Up_UnitTest.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -289,7 +295,7 @@
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 10.7;
ONLY_ACTIVE_ARCH = YES;
- SDKROOT = macosx;
+ SDKROOT = macosx10.8;
};
name = Debug;
};
@@ -310,7 +316,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 10.7;
- SDKROOT = macosx;
+ SDKROOT = macosx10.8;
};
name = Release;
};
@@ -321,6 +327,7 @@
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "CocoaPubnubTest/CocoaPubnubTest-Prefix.pch";
INFOPLIST_FILE = "CocoaPubnubTest/CocoaPubnubTest-Info.plist";
+ MACOSX_DEPLOYMENT_TARGET = 10.6;
PRODUCT_NAME = "$(TARGET_NAME)";
WRAPPER_EXTENSION = app;
};
@@ -333,6 +340,7 @@
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "CocoaPubnubTest/CocoaPubnubTest-Prefix.pch";
INFOPLIST_FILE = "CocoaPubnubTest/CocoaPubnubTest-Info.plist";
+ MACOSX_DEPLOYMENT_TARGET = 10.6;
PRODUCT_NAME = "$(TARGET_NAME)";
WRAPPER_EXTENSION = app;
};
@@ -357,6 +365,7 @@
C8A4670A162FE06C003DDAA6 /* Release */,
);
defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
@@ -13,8 +13,8 @@
endingColumnNumber = "9223372036854775807"
startingLineNumber = "174"
endingLineNumber = "174"
- landmarkName = "-subscribe:delegate:"
- landmarkType = "5">
+ landmarkName = "@implementation Pubnub"
+ landmarkType = "3">
</FileBreakpoint>
<FileBreakpoint
shouldBeEnabled = "No"
@@ -42,5 +42,57 @@
landmarkName = "-publish:message:delegate:"
landmarkType = "5">
</FileBreakpoint>
+ <FileBreakpoint
+ shouldBeEnabled = "Yes"
+ ignoreCount = "0"
+ continueAfterRunningActions = "No"
+ filePath = "CocoaPubnubTest/PubNub/pubnub.m"
+ timestampString = "372346249.214748"
+ startingColumnNumber = "9223372036854775807"
+ endingColumnNumber = "9223372036854775807"
+ startingLineNumber = "591"
+ endingLineNumber = "591"
+ landmarkName = "-handleCommandReceiveMessageForRequest:response:isfail:"
+ landmarkType = "5">
+ </FileBreakpoint>
+ <FileBreakpoint
+ shouldBeEnabled = "Yes"
+ ignoreCount = "0"
+ continueAfterRunningActions = "No"
+ filePath = "CocoaPubnubTest/PubNub/pubnub.m"
+ timestampString = "372345403.222264"
+ startingColumnNumber = "9223372036854775807"
+ endingColumnNumber = "9223372036854775807"
+ startingLineNumber = "178"
+ endingLineNumber = "178"
+ landmarkName = "-subscribe:delegate:"
+ landmarkType = "5">
+ </FileBreakpoint>
+ <FileBreakpoint
+ shouldBeEnabled = "Yes"
+ ignoreCount = "0"
+ continueAfterRunningActions = "No"
+ filePath = "CocoaPubnubTest/PubNub/pubnub.m"
+ timestampString = "372345432.797484"
+ startingColumnNumber = "9223372036854775807"
+ endingColumnNumber = "9223372036854775807"
+ startingLineNumber = "149"
+ endingLineNumber = "149"
+ landmarkName = "-_resubscribe:"
+ landmarkType = "5">
+ </FileBreakpoint>
+ <FileBreakpoint
+ shouldBeEnabled = "No"
+ ignoreCount = "0"
+ continueAfterRunningActions = "No"
+ filePath = "CocoaPubnubTest/PubNub/pubnub.m"
+ timestampString = "372346249.214748"
+ startingColumnNumber = "9223372036854775807"
+ endingColumnNumber = "9223372036854775807"
+ startingLineNumber = "617"
+ endingLineNumber = "617"
+ landmarkName = "-handleCommandReceiveMessageForRequest:response:isfail:"
+ landmarkType = "5">
+ </FileBreakpoint>
</FileBreakpoints>
</Bucket>
@@ -14,5 +14,6 @@
- (IBAction)UnsubscribeUnitTest:(id)sender;
- (IBAction)CL_223_UnitTest:(id)sender;
- (IBAction)DetailedHistoryUbitTest:(id)sender;
+- (IBAction)Catch_up_Click:(id)sender;
@end
@@ -10,6 +10,7 @@
#import "UnitTest/DetailedHistoryUnitTest.h"
#import "UnitTest/UnsubcribeUnitTest.h"
#import "UnitTest/CL_223.h"
+#import "UnitTest/Catch_Up_UnitTest.h"
@implementation AppDelegate
@@ -37,4 +38,9 @@ - (IBAction)DetailedHistoryUbitTest:(id)sender {
}
+
+- (IBAction)Catch_up_Click:(id)sender {
+ Catch_Up_UnitTest *unittest= [[Catch_Up_UnitTest alloc] init];
+ [unittest runCatch_up_UnitTest];
+}
@end
@@ -12,6 +12,7 @@
NSString* current_uuid;
NSMutableDictionary* subscriptions;
NSMutableDictionary* _connections;
+ NSMutableSet * _subscriptionset;
}
-(Pubnub*)
@@ -38,7 +39,7 @@
subscribe: (NSString*) channel
delegate: (id) delegate;
--(void) subscribe: (NSDictionary*) args;
+
-(BOOL) subscribed: (NSString*) channel;
- (void)
Oops, something went wrong.

0 comments on commit 45aeedd

Please sign in to comment.