naiveproxy/ios/web_view/shell/test/BUILD.gn
2018-08-11 05:35:24 +00:00

65 lines
1.4 KiB
Plaintext

# Copyright 2017 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.
import("//ios/build/config.gni")
import("//ios/third_party/earl_grey/ios_eg_test.gni")
group("all_tests") {
testonly = true
deps = [
":ios_web_view_shell_egtests",
]
}
ios_eg_test("ios_web_view_shell_egtests") {
info_plist = "//ios/web_view/shell/Info.plist"
sources = [
"shell_egtest.mm",
]
deps = [
":earl_grey_test_support",
"//ios/testing:http_server_bundle_data",
"//ios/web_view:web_view+link",
"//ios/web_view/shell:shell",
"//ios/web_view/test:test_support",
"//net:test_support",
# All shared libraries must have the sanitizer deps to properly link in
# asan mode (this target will be empty in other cases).
"//build/config:exe_and_shlib_deps",
]
configs += [ "//build/config/compiler:enable_arc" ]
assert_no_deps = ios_assert_no_deps
}
source_set("earl_grey_test_support") {
testonly = true
deps = [
"//base",
"//ios/testing:ios_test_support",
"//ios/web_view/shell",
]
public_deps = [
"//build/config/ios:xctest",
"//ios/third_party/earl_grey:earl_grey+link",
]
libs = [
"WebKit.framework",
"XCTest.framework",
]
sources = [
"earl_grey/web_view_shell_matchers.h",
"earl_grey/web_view_shell_matchers.mm",
]
configs += [ "//build/config/compiler:enable_arc" ]
}