diff options
author | thomasvl <thomasvl@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2008-06-13 19:21:50 +0000 |
---|---|---|
committer | thomasvl <thomasvl@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2008-06-13 19:21:50 +0000 |
commit | c53ec5520e39096e0804ce8d89a21378c0904481 (patch) | |
tree | d36a0055b59b1376d86c4ba4a01f9c479c2101a7 /UnitTesting/GTMSenTestCase.h | |
parent | 80d493da05c8d461d74bfaa919ffc487be03ffe6 (diff) |
Landing a log of AppleScript/AppleEvent support code.
Landing GTMHTTPServer as a simple server but mainly for use in unittesting.
_GTMCompileAssert for doing compile time assertions to GTMDefines.h
Lots of improvments for UnitTesting, Dave's gonna put up a wiki page shortly with the full details of what can be done.
Diffstat (limited to 'UnitTesting/GTMSenTestCase.h')
-rw-r--r-- | UnitTesting/GTMSenTestCase.h | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/UnitTesting/GTMSenTestCase.h b/UnitTesting/GTMSenTestCase.h index 758f6d4..5f7856c 100644 --- a/UnitTesting/GTMSenTestCase.h +++ b/UnitTesting/GTMSenTestCase.h @@ -130,7 +130,7 @@ do { \ #define STAssertNotNULL(a1, description, ...) \ do { \ @try {\ - char* a1value = (char*)(a1); \ + const void* a1value = (a1); \ if (a1value == NULL) { \ NSString *_expression = [NSString stringWithFormat:@"(%s) != NULL", #a1]; \ if (description) { \ @@ -159,7 +159,7 @@ do { \ #define STAssertNULL(a1, description, ...) \ do { \ @try {\ - char* a1value = (char*)(a1); \ + const void* a1value = (a1); \ if (a1value != NULL) { \ NSString *_expression = [NSString stringWithFormat:@"(%s) == NULL", #a1]; \ if (description) { \ @@ -983,12 +983,22 @@ do { \ - (void)failWithException:(NSException*)exception; @end -@interface SenTestCase : NSObject -- (void) setUp; -- (void) tearDown; +@interface SenTestCase : NSObject { + SEL currentSelector_; +} + +- (void)setUp; +- (void)invokeTest; +- (void)tearDown; +- (void)performTest:(SEL)sel; @end CF_EXPORT NSString * const SenTestFailureException; #endif // GTM_IPHONE_SDK +// All unittest cases in GTM should inherit from GTMTestCase. It makes sure +// to set up our logging system correctly to verify logging calls. +// See GTMUnitTestDevLog.h for details +@interface GTMTestCase : SenTestCase +@end |