aboutsummaryrefslogtreecommitdiff
path: root/DebugUtils/GTMMethodCheckTest.m
diff options
context:
space:
mode:
authorGravatar Thomas Van Lenten <thomasvl@google.com>2016-09-16 16:12:53 -0400
committerGravatar Thomas Van Lenten <thomasvl@google.com>2016-09-16 16:12:53 -0400
commit088532e8367dd681639e288665a3f0c9619c0cb5 (patch)
treeee4b552ae18484db6993eae459f209ee704b75a8 /DebugUtils/GTMMethodCheckTest.m
parent3da7e0c8de4adf4f923d5c6dee2fb3c9835a39f0 (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.m39
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.