Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(237)

Side by Side Diff: test/mac/xctest/App/Tests/TestCase.m

Issue 51413002: Adds generator support for Xcode 5 xctest targets. (Closed) Base URL: http://gyp.googlecode.com/svn/trunk
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2013 Google Inc. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 #import <XCTest/XCTest.h>
5 #import "Shared+Category.h"
6 #import "Shared+TestSupportCategory.h"
7
8 @interface TestCase : XCTestCase
9 @end
10
11 @implementation TestCase
12
13 - (void)tearDown {
14 [NSThread sleepForTimeInterval:1];
15 /*
16 NSUInteger total = 0;
17 for (NSUInteger i = 0; i < 10000; i++) {
18 total *= i;
19 }
20 NSLog(@"total: %u", total);
21 [NSThread sleepForTimeInterval:.1];
22 */
23 }
24
25 - (void)testFoo {
26 Shared *foo = [[Shared alloc] init];
27 XCTAssertNotNil([foo sharedCategoryMethod], @"expected category method");
28 XCTAssertNotNil([foo sharedCategoryMethodFromTestSupport],
29 @"expected category method");
30 }
31 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698