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

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: Fixed rare build failure when compiling with modules for multiple archs Created 5 years, 4 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
« no previous file with comments | « test/ios/swift/MyObjcFrameworkClass.m ('k') | test/ios/swift/MySecondSwiftClass.swift » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « test/ios/swift/MyObjcFrameworkClass.m ('k') | test/ios/swift/MySecondSwiftClass.swift » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698