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

Side by Side Diff: test/ios/swift/MyObjcTest.m

Issue 1160773005: Support for Swift language and Clang modules for ninja generator. Base URL: https://chromium.googlesource.com/external/gyp@master
Patch Set: Created 5 years, 6 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 unified diff | Download patch
OLDNEW
(Empty)
1 @import XCTest;
2
3 #import "MyObjcClass.h"
4
5 @interface MyObjcTest : XCTestCase
6
7 @end
8
9 @implementation MyObjcTest
10
11 - (void)testObjc {
12 MyObjcClass* obj = [[MyObjcClass alloc] init];
13 XCTAssert(obj.intField == 0);
14 }
15
16
17 // Xcode fails to import ObjC code from modules which are not frameworks.
18 /*
19 @import swift_ios
20 - (void)testSwift {
21 MySwiftClass* obj = [[MySwiftClass alloc] init];
22 XCTAssert(obj.intField == 0);
23 }
24 */
25
26 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698