aboutsummaryrefslogtreecommitdiff
path: root/UnitTesting/GTMUIKit+UnitTestingTest.m
diff options
context:
space:
mode:
authorGravatar gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3>2011-11-29 21:00:23 +0000
committerGravatar gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3>2011-11-29 21:00:23 +0000
commitc571385c00031d740b67317cb677cf193300f614 (patch)
treec6341b44aca37ddf037354f52ae81350352c8a19 /UnitTesting/GTMUIKit+UnitTestingTest.m
parent5b52a35992f6bbd427eca4d419721e5354b0262d (diff)
[Author: thomasvl]
Move a bunch of tests over onto the GTM test base class. Fetch some test images from the bundle the test is compiled into instead of assuming main app. Change the default iOS logging directory to just be the documents directory since it should work for all iOS versions. Add initial support for using SenTestingKit instead of our custom version to allow the Xcode 4 UI for unittesting. Add a target for using SenTestingKit. Add a shell app for the TEST_HOST for SenTestingKit usage (since there are UI tests, we need to use a real app and not the octest binary). R=dmaclach DELTA=517 (482 added, 9 deleted, 26 changed)
Diffstat (limited to 'UnitTesting/GTMUIKit+UnitTestingTest.m')
-rw-r--r--UnitTesting/GTMUIKit+UnitTestingTest.m10
1 files changed, 5 insertions, 5 deletions
diff --git a/UnitTesting/GTMUIKit+UnitTestingTest.m b/UnitTesting/GTMUIKit+UnitTestingTest.m
index 8b3effa..95bdd5a 100644
--- a/UnitTesting/GTMUIKit+UnitTestingTest.m
+++ b/UnitTesting/GTMUIKit+UnitTestingTest.m
@@ -6,9 +6,9 @@
// Licensed under the Apache License, Version 2.0 (the "License"); you may not
// use this file except in compliance with the License. You may obtain a copy
// of the License at
-//
+//
// http://www.apache.org/licenses/LICENSE-2.0
-//
+//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
@@ -20,14 +20,14 @@
#import "GTMUIKit+UnitTesting.h"
#import "GTMSenTestCase.h"
-@interface GTMUIView_UnitTestingTest : SenTestCase <GTMUnitTestViewDrawer>
+@interface GTMUIView_UnitTestingTest : GTMTestCase <GTMUnitTestViewDrawer>
@end
@implementation GTMUIView_UnitTestingTest
- (void)testDrawing {
- GTMAssertDrawingEqualToFile(self,
- CGSizeMake(200,200),
+ GTMAssertDrawingEqualToFile(self,
+ CGSizeMake(200,200),
@"GTMUIViewUnitTestingTest",
[UIApplication sharedApplication],
nil);