| OLD | NEW |
| 1 # Copyright 2017 The Chromium Authors. All rights reserved. | 1 # Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//ios/build/config.gni") | 5 import("//ios/build/config.gni") |
| 6 import("//ios/third_party/earl_grey/ios_eg_test.gni") | 6 import("//ios/third_party/earl_grey/ios_eg_test.gni") |
| 7 | 7 |
| 8 group("all_tests") { | 8 group("all_tests") { |
| 9 testonly = true | 9 testonly = true |
| 10 deps = [ | 10 deps = [ |
| 11 ":ios_web_view_shell_egtests", | 11 ":ios_web_view_shell_egtests", |
| 12 ] | 12 ] |
| 13 } | 13 } |
| 14 | 14 |
| 15 ios_eg_test("ios_web_view_shell_egtests") { | 15 ios_eg_test("ios_web_view_shell_egtests") { |
| 16 info_plist = "//ios/web_view/shell/Info.plist" | 16 info_plist = "//ios/web_view/shell/Info.plist" |
| 17 sources = [ | 17 sources = [ |
| 18 "shell_egtest.mm", | 18 "shell_egtest.mm", |
| 19 ] | 19 ] |
| 20 | 20 |
| 21 deps = [ | 21 deps = [ |
| 22 ":earl_grey_test_support", | 22 ":earl_grey_test_support", |
| 23 "//ios/web_view:web_view+link", |
| 23 | 24 |
| 24 # All shared libraries must have the sanitizer deps to properly link in | 25 # All shared libraries must have the sanitizer deps to properly link in |
| 25 # asan mode (this target will be empty in other cases). | 26 # asan mode (this target will be empty in other cases). |
| 26 "//build/config/sanitizers:deps", | 27 "//build/config/sanitizers:deps", |
| 27 ] | 28 ] |
| 28 | 29 |
| 29 configs += [ "//build/config/compiler:enable_arc" ] | 30 configs += [ "//build/config/compiler:enable_arc" ] |
| 30 | 31 |
| 31 assert_no_deps = ios_assert_no_deps | 32 assert_no_deps = ios_assert_no_deps |
| 32 } | 33 } |
| 33 | 34 |
| 34 source_set("earl_grey_test_support") { | 35 source_set("earl_grey_test_support") { |
| 35 testonly = true | 36 testonly = true |
| 36 | 37 |
| 37 deps = [ | 38 deps = [ |
| 38 "//base", | 39 "//base", |
| 39 "//ios/testing:ios_test_support", | 40 "//ios/testing:ios_test_support", |
| 40 "//ios/third_party/earl_grey", | |
| 41 "//ios/web_view/shell", | 41 "//ios/web_view/shell", |
| 42 ] | 42 ] |
| 43 | 43 |
| 44 public_deps = [ | 44 public_deps = [ |
| 45 "//build/config/ios:xctest", | 45 "//build/config/ios:xctest", |
| 46 "//ios/third_party/earl_grey", |
| 47 ] |
| 48 |
| 49 libs = [ |
| 50 "WebKit.framework", |
| 51 "XCTest.framework", |
| 46 ] | 52 ] |
| 47 | 53 |
| 48 sources = [ | 54 sources = [ |
| 49 "earl_grey/web_view_shell_matchers.h", | 55 "earl_grey/web_view_shell_matchers.h", |
| 50 "earl_grey/web_view_shell_matchers.mm", | 56 "earl_grey/web_view_shell_matchers.mm", |
| 51 ] | 57 ] |
| 52 | 58 |
| 53 configs += [ "//build/config/compiler:enable_arc" ] | 59 configs += [ "//build/config/compiler:enable_arc" ] |
| 54 } | 60 } |
| OLD | NEW |