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

Unified 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, 2 months 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 side-by-side diff with in-line comments
Download patch
Index: test/mac/xctest/App/Tests/TestCase.m
diff --git a/test/mac/xctest/App/Tests/TestCase.m b/test/mac/xctest/App/Tests/TestCase.m
new file mode 100644
index 0000000000000000000000000000000000000000..b948b581dd5d231d146b5cfc1ddf09192a701309
--- /dev/null
+++ b/test/mac/xctest/App/Tests/TestCase.m
@@ -0,0 +1,31 @@
+// Copyright (c) 2013 Google Inc. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+#import <XCTest/XCTest.h>
+#import "Shared+Category.h"
+#import "Shared+TestSupportCategory.h"
+
+@interface TestCase : XCTestCase
+@end
+
+@implementation TestCase
+
+- (void)tearDown {
+ [NSThread sleepForTimeInterval:1];
+ /*
+ NSUInteger total = 0;
+ for (NSUInteger i = 0; i < 10000; i++) {
+ total *= i;
+ }
+ NSLog(@"total: %u", total);
+ [NSThread sleepForTimeInterval:.1];
+ */
+}
+
+- (void)testFoo {
+ Shared *foo = [[Shared alloc] init];
+ XCTAssertNotNil([foo sharedCategoryMethod], @"expected category method");
+ XCTAssertNotNil([foo sharedCategoryMethodFromTestSupport],
+ @"expected category method");
+}
+@end

Powered by Google App Engine
This is Rietveld 408576698