diff options
author | Thomas Van Lenten <thomasvl@google.com> | 2016-09-16 16:12:53 -0400 |
---|---|---|
committer | Thomas Van Lenten <thomasvl@google.com> | 2016-09-16 16:12:53 -0400 |
commit | 088532e8367dd681639e288665a3f0c9619c0cb5 (patch) | |
tree | ee4b552ae18484db6993eae459f209ee704b75a8 /DebugUtils/GTMMethodCheckTest.m | |
parent | 3da7e0c8de4adf4f923d5c6dee2fb3c9835a39f0 (diff) |
Fix up GTM_METHOD_CHECK so that it doesn't need the objectivec runtime calls.
Diffstat (limited to 'DebugUtils/GTMMethodCheckTest.m')
-rw-r--r-- | DebugUtils/GTMMethodCheckTest.m | 39 |
1 files changed, 2 insertions, 37 deletions
diff --git a/DebugUtils/GTMMethodCheckTest.m b/DebugUtils/GTMMethodCheckTest.m index 1fba238..9d90563 100644 --- a/DebugUtils/GTMMethodCheckTest.m +++ b/DebugUtils/GTMMethodCheckTest.m @@ -15,40 +15,5 @@ // the License. // -#import "GTMSenTestCase.h" -#import "GTMMethodCheck.h" - -static BOOL gTestCheckVar = NO; - -@interface GTMMethodCheckTest : GTMTestCase -+ (void)GTMMethodCheckTestClassMethod; -- (void)GTMMethodCheckTestMethod; -@end - -@implementation GTMMethodCheckTest -GTM_METHOD_CHECK(GTMMethodCheckTest, GTMMethodCheckTestMethod); -GTM_METHOD_CHECK(GTMMethodCheckTest, GTMMethodCheckTestClassMethod); - -- (void)GTMMethodCheckTestMethod { -} - -+ (void)GTMMethodCheckTestClassMethod { -} - -+ (void)xxGTMMethodCheckMethodTestCheck { - // This gets called because of its special name by GMMethodCheck - // Look at the Macros in GMMethodCheck.h for details. - gTestCheckVar = YES; -} - -- (void)testGTMMethodCheck { -#ifdef DEBUG - // GTMMethodCheck only runs in debug - STAssertTrue(gTestCheckVar, @"Should be true"); -#endif - - // Next two calls just verify our code coverage - [self GTMMethodCheckTestMethod]; - [[self class] GTMMethodCheckTestClassMethod]; -} -@end +// TODO(dmaclach): This file no longer needed. Delete once we have cleaned up +// GTM projects. |