Index: ios/web/ios_web_shell_tests.gyp |
diff --git a/ios/web/ios_web_shell_tests.gyp b/ios/web/ios_web_shell_tests.gyp |
new file mode 100644 |
index 0000000000000000000000000000000000000000..936481831ebbe4f777f4a3ec23f754aa072e2707 |
--- /dev/null |
+++ b/ios/web/ios_web_shell_tests.gyp |
@@ -0,0 +1,55 @@ |
+# Copyright 2016 The Chromium Authors. All rights reserved. |
+# Use of this source code is governed by a BSD-style license that can be |
+# found in the LICENSE file. |
+ |
+{ |
+ 'variables': { |
+ 'chromium_code': 1, |
+ }, |
+ 'targets': [ |
+ { |
+ 'variables': { |
+ 'conditions': [ |
+ # TODO(crbug.com/595358): Remove 'xcode' condition when ninja is |
+ # default builder. |
+ ['"<(GENERATOR)"=="xcode" and "<(GENERATOR_FLAVOR)"!="ninja"', { |
+ 'test_host': '${BUILT_PRODUCTS_DIR}/ios_web_shell.app/ios_web_shell', |
sdefresne
2016/03/25 21:26:16
I think this should be "$(BUILD_PRODUCTS_DIR)" sin
justincohen
2016/03/25 22:53:38
I already removed this.
|
+ }, { # GENERATOR != xcode |
+ 'test_host': 'ios_web_shell.app/ios_web_shell', |
+ }], |
+ ], |
+ }, |
+ 'target_name': 'ios_web_shell_test', |
+ 'type': 'loadable_module', |
+ 'mac_xctest_bundle': 1, |
+ 'dependencies': [ |
+ '../third_party/earl_grey/earl_grey.gyp:EarlGrey', |
+ 'ios_web_shell.gyp:ios_web_shell', |
+ ], |
+ 'sources': [ |
+ 'shell/test/web_shell_navigation_egtest.mm', |
+ ], |
+ 'xcode_settings': { |
+ 'WRAPPER_EXTENSION': 'xctest', |
+ 'TEST_HOST': '<(test_host)', |
+ 'BUNDLE_LOADER': '$(TEST_HOST)', |
+ 'conditions':[ |
+ ['"<(GENERATOR)"!="xcode" or "<(GENERATOR_FLAVOR)"=="ninja"', { |
+ 'OTHER_LDFLAGS': [ |
+ '-bundle_loader <@(test_host)', |
+ ], |
+ }], |
+ ], |
+ }, |
+ 'link_settings': { |
+ 'libraries': [ |
+ 'CoreGraphics.framework', |
+ 'Foundation.framework', |
+ 'QuartzCore.framework', |
+ 'UIKit.framework', |
+ 'XCTest.framework', |
+ ], |
+ }, |
+ }, |
+ ], |
+} |