aboutsummaryrefslogtreecommitdiff
path: root/UnitTesting
diff options
context:
space:
mode:
authorGravatar Thomas Van Lenten <thomasvl@google.com>2016-12-05 18:04:00 -0500
committerGravatar Thomas Van Lenten <thomasvl@google.com>2016-12-05 18:04:00 -0500
commita86965088edd3a754225f0d75cb6137c187c9265 (patch)
tree654dd650f5e5d60fe2170112cd624c44825ee33c /UnitTesting
parent2ef3625a9193d4855931a73e0e5b3eb29d0231c3 (diff)
First pass removing all deprecated uses of GTM_IPHONE_USE_SENTEST.
SENTEST as a framework doesn't exist anymore so there's no point in supporting it.
Diffstat (limited to 'UnitTesting')
-rw-r--r--UnitTesting/GTMIPhoneUnitTestMain.m5
-rw-r--r--UnitTesting/GTMSenTestCase.h27
-rw-r--r--UnitTesting/GTMSenTestCase.m4
3 files changed, 9 insertions, 27 deletions
diff --git a/UnitTesting/GTMIPhoneUnitTestMain.m b/UnitTesting/GTMIPhoneUnitTestMain.m
index 0a504b7..1f4ca44 100644
--- a/UnitTesting/GTMIPhoneUnitTestMain.m
+++ b/UnitTesting/GTMIPhoneUnitTestMain.m
@@ -56,9 +56,8 @@ int main(int argc, char *argv[]) {
#else
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
#endif
-#if GTM_IPHONE_USE_SENTEST || GTM_USING_XCTEST
- // Is using SenTest or XCTest, just create a dummy app that can be used as the
- // TEST_HOST.
+#if GTM_USING_XCTEST
+ // Is using XCTest, just create a dummy app that can be used as the TEST_HOST.
retVal = UIApplicationMain(argc, argv, nil, nil);
#else
retVal = UIApplicationMain(argc, argv, nil, @"GTMIPhoneUnitTestDelegate");
diff --git a/UnitTesting/GTMSenTestCase.h b/UnitTesting/GTMSenTestCase.h
index 6b7198b..0bec7a6 100644
--- a/UnitTesting/GTMSenTestCase.h
+++ b/UnitTesting/GTMSenTestCase.h
@@ -61,29 +61,12 @@
#endif // GTM_USING_XCTEST
// We don't support our built in testing on MacOS since its always had sentest.
#elif GTM_IPHONE_SDK
- #if GTM_IPHONE_USE_SENTEST
- #import <SenTestingKit/SenTestingKit.h>
- #elif GTM_USING_XCTEST
+ #if GTM_USING_XCTEST
#import <XCTest/XCTest.h>
#else
#import <Foundation/Foundation.h>
- #ifdef __cplusplus
- extern "C" {
- #endif
-
- #if defined __clang__
- // gcc and gcc-llvm do not allow you to use STAssert(blah, nil) with nil
- // as a description if you have the NS_FORMAT_FUNCTION on.
- // clang however will not compile without warnings if you don't have it.
- NSString *STComposeString(NSString *, ...) NS_FORMAT_FUNCTION(1, 2);
- #else
- NSString *STComposeString(NSString *, ...);
- #endif // __clang__
-
- #ifdef __cplusplus
- }
- #endif
- #endif // GTM_IPHONE_USE_SENTEST
+ GTM_EXTERN NSString *STComposeString(NSString *, ...) NS_FORMAT_FUNCTION(1, 2);
+ #endif // GTM_USING_XCTEST
#endif // GTM_MACOS_SDK
#if GTM_USING_XCTEST
@@ -729,7 +712,7 @@ do { \
} while (0)
#endif // GTM_USING_XCTEST
-#if GTM_IPHONE_SDK && !GTM_IPHONE_USE_SENTEST && !GTM_USING_XCTEST
+#if GTM_IPHONE_SDK && !GTM_USING_XCTEST
// When not using the Xcode provided version, define everything ourselves.
// SENTE_BEGIN
@@ -1289,7 +1272,7 @@ GTM_EXTERN NSString *const SenTestFailureException;
GTM_EXTERN NSString *const SenTestFilenameKey;
GTM_EXTERN NSString *const SenTestLineNumberKey;
-#endif // GTM_IPHONE_SDK && !GTM_IPHONE_USE_SENTEST && !GTM_USING_XCTEST
+#endif // GTM_IPHONE_SDK && !GTM_USING_XCTEST
// All unittest cases in GTM should inherit from GTMTestCase. It makes sure
// to set up our logging system correctly to verify logging calls.
diff --git a/UnitTesting/GTMSenTestCase.m b/UnitTesting/GTMSenTestCase.m
index 5236c51..6d93451 100644
--- a/UnitTesting/GTMSenTestCase.m
+++ b/UnitTesting/GTMSenTestCase.m
@@ -25,7 +25,7 @@
#import <UIKit/UIKit.h>
#endif // GTM_IPHONE_SDK
-#if GTM_IPHONE_SDK && !GTM_IPHONE_USE_SENTEST && !GTM_USING_XCTEST
+#if GTM_IPHONE_SDK && !GTM_USING_XCTEST
#import <stdarg.h>
@interface NSException (GTMSenTestPrivateAdditions)
@@ -392,7 +392,7 @@ static NSInteger MethodSort(id a, id b, void *context) {
@end
-#endif // GTM_IPHONE_SDK && !GTM_IPHONE_USE_SENTEST
+#endif // GTM_IPHONE_SDK && !GTM_USING_XCTEST
@implementation GTMTestCase