/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. #import <Foundation/Foundation.h>
  19. // Application delegate that runs all test methods in registered classes
  20. // extending SenTestCase. The application is terminated afterwards.
  21. // You can also run the tests directly from your application by invoking
  22. // runTests and clean up, restore data, etc. before the application
  23. // terminates.
  24. @interface GTMIPhoneUnitTestDelegate : NSObject {
  25. @private
  26. NSUInteger totalFailures_;
  27. NSUInteger totalSuccesses_;
  28. }
  29. // Runs through all the registered classes and runs test methods on any
  30. // that are subclasses of SenTestCase. Prints results and run time to
  31. // the default output.
  32. - (void)runTests;
  33. // Fetch the number of successes or failures from the last runTests.
  34. - (NSUInteger)totalSuccesses;
  35. - (NSUInteger)totalFailures;
  36. @end