aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar dmaclach <dmaclach@gmail.com>2018-11-12 07:58:42 -0800
committerGravatar GitHub <noreply@github.com>2018-11-12 07:58:42 -0800
commit9c547fd161da80d7dc1506a0a01977764e4fabac (patch)
tree3f6343859c458889a4b55fdeed29921394ebd795
parenteba02dc2256ac28b8d888c55fc8fba92cf499d05 (diff)
Deprecate runloop spinning functionality for tests. (#191)
It should all be replaced with XCTestExpectations.
-rw-r--r--UnitTesting/GTMAppKitUnitTestingUtilities.h6
-rw-r--r--UnitTesting/GTMFoundationUnitTestingUtilities.h12
2 files changed, 12 insertions, 6 deletions
diff --git a/UnitTesting/GTMAppKitUnitTestingUtilities.h b/UnitTesting/GTMAppKitUnitTestingUtilities.h
index b3852ba..d27c77d 100644
--- a/UnitTesting/GTMAppKitUnitTestingUtilities.h
+++ b/UnitTesting/GTMAppKitUnitTestingUtilities.h
@@ -71,8 +71,10 @@
// Return YES if the runloop was stopped because [context shouldStop] returned
// YES.
- (BOOL)gtm_runUntilDate:(NSDate *)date
- context:(id<GTMUnitTestingRunLoopContext>)context;
+ context:(id<GTMUnitTestingRunLoopContext>)context
+ 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;
+- (BOOL)gtm_runUpToSixtySecondsWithContext:(id<GTMUnitTestingRunLoopContext>)context
+ 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 6706daf..2bc4b4b 100644
--- a/UnitTesting/GTMFoundationUnitTestingUtilities.h
+++ b/UnitTesting/GTMFoundationUnitTestingUtilities.h
@@ -89,16 +89,19 @@
// YES.
- (BOOL)gtm_runUntilDate:(NSDate *)date
mode:(NSString *)mode
- context:(id<GTMUnitTestingRunLoopContext>)context;
+ context:(id<GTMUnitTestingRunLoopContext>)context
+ 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;
+ context:(id<GTMUnitTestingRunLoopContext>)context
+ 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;
+ context:(id<GTMUnitTestingRunLoopContext>)context
+ 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.
@@ -106,6 +109,7 @@
// but may be a bit long for standard unit tests, and could cause a long unit
// testing run if you have multiple failures.
// Calling -[gtm_runUpToNSeconds:context:] is preferred.
-- (BOOL)gtm_runUpToSixtySecondsWithContext:(id<GTMUnitTestingRunLoopContext>)context;
+- (BOOL)gtm_runUpToSixtySecondsWithContext:(id<GTMUnitTestingRunLoopContext>)context
+ NS_DEPRECATED(10.4, 10.8, 1.0, 7.0, "Please move to XCTestExpectations");
@end