Revision: 573
Author: gtm.daemon
Date: Wed Aug 15 05:00:29 2012
Log: [Author: grobbins]
Add a reset method to the boolean run loop context since, between tests,
[context reset] looks more natural than [context setShouldStop:NO] and is
more concise than allocating a new context.
R=thomasvl
APPROVED=dmaclach
DELTA=5 (5 added, 0 deleted, 0 changed)
http://code.google.com/p/google-toolbox-for-mac/source/detail?r=573
Modified:
/trunk/UnitTesting/GTMFoundationUnitTestingUtilities.h
/trunk/UnitTesting/GTMFoundationUnitTestingUtilities.m
=======================================
--- /trunk/UnitTesting/GTMFoundationUnitTestingUtilities.h Mon Jun 14
05:33:42 2010
+++ /trunk/UnitTesting/GTMFoundationUnitTestingUtilities.h Wed Aug 15
05:00:29 2012
@@ -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
=======================================
--- /trunk/UnitTesting/GTMFoundationUnitTestingUtilities.m Wed Jul 14
17:07:42 2010
+++ /trunk/UnitTesting/GTMFoundationUnitTestingUtilities.m Wed Aug 15
05:00:29 2012
@@ -72,6 +72,10 @@
- (void)setShouldStop:(BOOL)stop {
shouldStop_ = stop;
}
+
+- (void)reset {
+ shouldStop_ = NO;
+}
@end