PageRenderTime 28ms CodeModel.GetById 13ms RepoModel.GetById 1ms app.codeStats 0ms

/MapView/GTM/GTMIPhoneUnitTestMain.m

http://github.com/route-me/route-me
Objective C | 33 lines | 11 code | 2 blank | 20 comment | 1 complexity | 7913c653cbe408e8a19f418cb6ee17c0 MD5 | raw file
  1. //
  2. // GTMIPhoneUnitTestMain.m
  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 "GTMDefines.h"
  19. #if !GTM_IPHONE_SDK
  20. #error GTMIPhoneUnitTestMain for iPhone only
  21. #endif
  22. #import <UIKit/UIKit.h>
  23. // Creates an application that runs all tests from classes extending
  24. // SenTestCase, outputs results and test run time, and terminates right
  25. // afterwards.
  26. int main(int argc, char *argv[]) {
  27. NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
  28. int retVal = UIApplicationMain(argc, argv, nil, @"GTMIPhoneUnitTestDelegate");
  29. [pool release];
  30. return retVal;
  31. }