PageRenderTime 24ms CodeModel.GetById 16ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/core/externals/google-toolbox-for-mac/UnitTesting/GTMIPhoneUnitTestDelegate.h

http://macfuse.googlecode.com/
C++ Header | 41 lines | 12 code | 3 blank | 26 comment | 0 complexity | a8a174bbf811c28029af6fe6c19a8715 MD5 | raw file
 1//
 2//  GTMIPhoneUnitTestDelegate.h
 3//
 4//  Copyright 2008 Google Inc.
 5//
 6//  Licensed under the Apache License, Version 2.0 (the "License"); you may not
 7//  use this file except in compliance with the License.  You may obtain a copy
 8//  of the License at
 9//
10//  http://www.apache.org/licenses/LICENSE-2.0
11//
12//  Unless required by applicable law or agreed to in writing, software
13//  distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
14//  WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
15//  License for the specific language governing permissions and limitations under
16//  the License.
17//
18
19#import <Foundation/Foundation.h>
20
21// Application delegate that runs all test methods in registered classes
22// extending SenTestCase. The application is terminated afterwards.
23// You can also run the tests directly from your application by invoking
24// runTests and clean up, restore data, etc. before the application
25// terminates.
26@interface GTMIPhoneUnitTestDelegate : NSObject {
27 @private
28  NSUInteger totalFailures_;
29  NSUInteger totalSuccesses_;
30  BOOL applicationDidFinishLaunchingCalled_;
31  GTMIPhoneUnitTestDelegate *retainer_;
32}
33
34// Runs through all the registered classes and runs test methods on any
35// that are subclasses of SenTestCase. Prints results and run time to
36// the default output.
37- (void)runTests;
38// Fetch the number of successes or failures from the last runTests.
39- (NSUInteger)totalSuccesses;
40- (NSUInteger)totalFailures;
41@end