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

Unified Diff: test/ios/swift/MySwiftTest.swift

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/ios/swift/MySwiftFrameworkClass.swift ('k') | test/ios/swift/TestInfo.plist » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/ios/swift/MySwiftTest.swift
diff --git a/test/ios/swift/MySwiftTest.swift b/test/ios/swift/MySwiftTest.swift
new file mode 100644
index 0000000000000000000000000000000000000000..6250109ccd5c5339ff925a50a781fa5c7d93c1ab
--- /dev/null
+++ b/test/ios/swift/MySwiftTest.swift
@@ -0,0 +1,13 @@
+import swift_ios
+import XCTest
+
+class MySwiftTest : XCTestCase {
+ func testSwift() {
+ let obj = MySwiftClass()
+ XCTAssert(obj.intField == 0);
+ }
+ func testObjc() {
+ let obj = MyObjcClass()
+ XCTAssert(obj.intField == 0);
+ }
+}
« no previous file with comments | « test/ios/swift/MySwiftFrameworkClass.swift ('k') | test/ios/swift/TestInfo.plist » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698