PageRenderTime 68ms CodeModel.GetById 65ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/MapView/GTM/GTMIPhoneUnitTestDelegate.h

http://github.com/route-me/route-me
C Header | 38 lines | 10 code | 2 blank | 26 comment | 0 complexity | 848b88df0661ee20b4a23ebd9cae661f 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}
31// Runs through all the registered classes and runs test methods on any
32// that are subclasses of SenTestCase. Prints results and run time to
33// the default output.
34- (void)runTests;
35// Fetch the number of successes or failures from the last runTests.
36- (NSUInteger)totalSuccesses;
37- (NSUInteger)totalFailures;
38@end