aboutsummaryrefslogtreecommitdiff
path: root/UnitTesting
diff options
context:
space:
mode:
Diffstat (limited to 'UnitTesting')
-rw-r--r--UnitTesting/GTMFoundationUnitTestingUtilities.h1
-rw-r--r--UnitTesting/GTMFoundationUnitTestingUtilities.m4
2 files changed, 5 insertions, 0 deletions
diff --git a/UnitTesting/GTMFoundationUnitTestingUtilities.h b/UnitTesting/GTMFoundationUnitTestingUtilities.h
index efbfba5..cd37bc6 100644
--- a/UnitTesting/GTMFoundationUnitTestingUtilities.h
+++ b/UnitTesting/GTMFoundationUnitTestingUtilities.h
@@ -72,6 +72,7 @@
+ (id)context;
- (BOOL)shouldStop;
- (void)setShouldStop:(BOOL)stop;
+- (void)reset;
@end
// Some category methods to simplify spinning the runloops in such a way as
diff --git a/UnitTesting/GTMFoundationUnitTestingUtilities.m b/UnitTesting/GTMFoundationUnitTestingUtilities.m
index 2f278d7..034c3c0 100644
--- a/UnitTesting/GTMFoundationUnitTestingUtilities.m
+++ b/UnitTesting/GTMFoundationUnitTestingUtilities.m
@@ -73,6 +73,10 @@
shouldStop_ = stop;
}
+- (void)reset {
+ shouldStop_ = NO;
+}
+
@end
@implementation NSRunLoop (GTMUnitTestingAdditions)