/MapView/GTM/GTMIPhoneUnitTestMain.m
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 19#import "GTMDefines.h" 20#if !GTM_IPHONE_SDK 21 #error GTMIPhoneUnitTestMain for iPhone only 22#endif 23#import <UIKit/UIKit.h> 24 25// Creates an application that runs all tests from classes extending 26// SenTestCase, outputs results and test run time, and terminates right 27// afterwards. 28int main(int argc, char *argv[]) { 29 NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; 30 int retVal = UIApplicationMain(argc, argv, nil, @"GTMIPhoneUnitTestDelegate"); 31 [pool release]; 32 return retVal; 33}