diff options
author | dmaclach <dmaclach@gmail.com> | 2018-11-13 11:13:35 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-13 11:13:35 -0800 |
commit | 84a312f5b53a73e77148428284d1a17d0eacf074 (patch) | |
tree | 7965acd1c2a5ecc13161988ebbb99499047b1e64 /UnitTesting | |
parent | 8a5be1dcdf93aed6d6b6f8e676ca218157b26283 (diff) |
Fix up deprecations so that they use proper version numbering x_y vs x.y (#195)
Diffstat (limited to 'UnitTesting')
-rw-r--r-- | UnitTesting/GTMAppKitUnitTestingUtilities.h | 4 | ||||
-rw-r--r-- | UnitTesting/GTMFoundationUnitTestingUtilities.h | 8 | ||||
-rw-r--r-- | UnitTesting/GTMSenTestCase.h | 6 |
3 files changed, 9 insertions, 9 deletions
diff --git a/UnitTesting/GTMAppKitUnitTestingUtilities.h b/UnitTesting/GTMAppKitUnitTestingUtilities.h index d27c77d..39b9c33 100644 --- a/UnitTesting/GTMAppKitUnitTestingUtilities.h +++ b/UnitTesting/GTMAppKitUnitTestingUtilities.h @@ -72,9 +72,9 @@ // YES. - (BOOL)gtm_runUntilDate:(NSDate *)date context:(id<GTMUnitTestingRunLoopContext>)context - NS_DEPRECATED(10.4, 10.8, 1.0, 7.0, "Please move to XCTestExpectations"); + NS_DEPRECATED(10_4, 10_8, 1_0, 7_0, "Please move to XCTestExpectations"); // Calls -gtm_runUntilDate:context: with the timeout date set to 60 seconds. - (BOOL)gtm_runUpToSixtySecondsWithContext:(id<GTMUnitTestingRunLoopContext>)context - NS_DEPRECATED(10.4, 10.8, 1.0, 7.0, "Please move to XCTestExpectations"); + NS_DEPRECATED(10_4, 10_8, 1_0, 7_0, "Please move to XCTestExpectations"); @end diff --git a/UnitTesting/GTMFoundationUnitTestingUtilities.h b/UnitTesting/GTMFoundationUnitTestingUtilities.h index 2bc4b4b..715a372 100644 --- a/UnitTesting/GTMFoundationUnitTestingUtilities.h +++ b/UnitTesting/GTMFoundationUnitTestingUtilities.h @@ -90,18 +90,18 @@ - (BOOL)gtm_runUntilDate:(NSDate *)date mode:(NSString *)mode context:(id<GTMUnitTestingRunLoopContext>)context - NS_DEPRECATED(10.4, 10.8, 1.0, 7.0, "Please move to XCTestExpectations"); + NS_DEPRECATED(10_4, 10_8, 1_0, 7_0, "Please move to XCTestExpectations"); // Calls -gtm_runUntilDate:mode:context: with mode set to NSDefaultRunLoopMode. - (BOOL)gtm_runUntilDate:(NSDate *)date context:(id<GTMUnitTestingRunLoopContext>)context - NS_DEPRECATED(10.4, 10.8, 1.0, 7.0, "Please move to XCTestExpectations"); + NS_DEPRECATED(10_4, 10_8, 1_0, 7_0, "Please move to XCTestExpectations"); // Calls -gtm_runUntilDate:mode:context: with mode set to NSDefaultRunLoopMode, // and the timeout date set to |seconds| seconds. - (BOOL)gtm_runUpToNSeconds:(NSTimeInterval)seconds context:(id<GTMUnitTestingRunLoopContext>)context - NS_DEPRECATED(10.4, 10.8, 1.0, 7.0, "Please move to XCTestExpectations"); + NS_DEPRECATED(10_4, 10_8, 1_0, 7_0, "Please move to XCTestExpectations"); // Calls -gtm_runUntilDate:mode:context: with mode set to NSDefaultRunLoopMode, // and the timeout date set to 60 seconds. @@ -110,6 +110,6 @@ // testing run if you have multiple failures. // Calling -[gtm_runUpToNSeconds:context:] is preferred. - (BOOL)gtm_runUpToSixtySecondsWithContext:(id<GTMUnitTestingRunLoopContext>)context - NS_DEPRECATED(10.4, 10.8, 1.0, 7.0, "Please move to XCTestExpectations"); + NS_DEPRECATED(10_4, 10_8, 1_0, 7_0, "Please move to XCTestExpectations"); @end diff --git a/UnitTesting/GTMSenTestCase.h b/UnitTesting/GTMSenTestCase.h index 276a10c..475e2f4 100644 --- a/UnitTesting/GTMSenTestCase.h +++ b/UnitTesting/GTMSenTestCase.h @@ -66,7 +66,7 @@ #import <XCTest/XCTest.h> #else #import <Foundation/Foundation.h> - NS_DEPRECATED(10.4, 10.8, 1.0, 7.0, "Please move to XCTest") + NS_DEPRECATED(10_4, 10_8, 1_0, 7_0, "Please move to XCTest") GTM_EXTERN NSString *STComposeString(NSString *, ...) NS_FORMAT_FUNCTION(1, 2); #endif // GTM_USING_XCTEST #endif // GTM_MACOS_SDK @@ -1268,7 +1268,7 @@ do { \ + (NSArray *)testInvocations; @end -NS_CLASS_DEPRECATED(10.4, 10.8, 1.0, 7.0, "Please move to XCTest") +NS_CLASS_DEPRECATED(10_4, 10_8, 1_0, 7_0, "Please move to XCTest") @interface SenTestCase : NSObject<SenTestCase> { @private NSInvocation *invocation_; @@ -1288,7 +1288,7 @@ GTM_EXTERN NSString *const SenTestLineNumberKey; #if GTM_USING_XCTEST @interface GTMTestCase : XCTestCase #else -NS_CLASS_DEPRECATED(10.4, 10.8, 1.0, 7.0, "Please move to XCTest version of GTMTestCase") +NS_CLASS_DEPRECATED(10_4, 10_8, 1_0, 7_0, "Please move to XCTest version of GTMTestCase") @interface GTMTestCase : SenTestCase #endif |