From c53ec5520e39096e0804ce8d89a21378c0904481 Mon Sep 17 00:00:00 2001 From: thomasvl Date: Fri, 13 Jun 2008 19:21:50 +0000 Subject: 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. --- DebugUtils/GTMMethodCheckTest.m | 28 ++++------------------------ 1 file changed, 4 insertions(+), 24 deletions(-) (limited to 'DebugUtils/GTMMethodCheckTest.m') diff --git a/DebugUtils/GTMMethodCheckTest.m b/DebugUtils/GTMMethodCheckTest.m index b5e7e6b..91b7300 100644 --- a/DebugUtils/GTMMethodCheckTest.m +++ b/DebugUtils/GTMMethodCheckTest.m @@ -20,33 +20,13 @@ static BOOL gTestCheckVar = NO; -// This is a contrived class that doesn't inherit from NSObject, but does -// implement some of it's functionality to force test a case in -// GTMMethodCheck. -@interface GTMClassThatDoesntInheritFromNSObject -+ (BOOL)instancesRespondToSelector:(SEL)selector; -+ (BOOL)respondsToSelector:(SEL)selector; -@end - -@implementation GTMClassThatDoesntInheritFromNSObject -GTM_METHOD_CHECK(GTMClassThatDoesntInheritFromNSObject, GTMMethodCheckTestMethod); -- (void)GTMMethodCheckTestMethod { -} -+ (BOOL)instancesRespondToSelector:(SEL)selector { - return YES; -} - -+ (BOOL)respondsToSelector:(SEL)selector { - return YES; -} -@end - -@interface GTMMethodCheckTest : SenTestCase +@interface GTMMethodCheckTest : GTMTestCase ++ (void)GTMMethodCheckTestClassMethod; @end @implementation GTMMethodCheckTest -GTM_METHOD_CHECK(GTMMethodCheckTest, GTMMethodCheckTestMethod); -GTM_METHOD_CHECK(GTMMethodCheckTest, GTMMethodCheckTestClassMethod); +GTM_METHOD_CHECK(GTMMethodCheckTest, GTMMethodCheckTestMethod); // COV_NF_LINE +GTM_METHOD_CHECK(GTMMethodCheckTest, GTMMethodCheckTestClassMethod); // COV_NF_LINE - (void)GTMMethodCheckTestMethod { } -- cgit v1.2.3