From 84a312f5b53a73e77148428284d1a17d0eacf074 Mon Sep 17 00:00:00 2001 From: dmaclach Date: Tue, 13 Nov 2018 11:13:35 -0800 Subject: Fix up deprecations so that they use proper version numbering x_y vs x.y (#195) --- UnitTesting/GTMAppKitUnitTestingUtilities.h | 4 ++-- UnitTesting/GTMFoundationUnitTestingUtilities.h | 8 ++++---- UnitTesting/GTMSenTestCase.h | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) (limited to 'UnitTesting') 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)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)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)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)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)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)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 #else #import - 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 { @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 -- cgit v1.2.3