blob: 30e4ce2e0e1aef9101b7511548d08ed2fe9c80ec [file] [log] [blame]
# Copyright 2019 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("//build/apple/tweak_info_plist.gni")
import("//build/config/ios/ios_sdk.gni")
import("//build/config/ios/rules.gni")
import("//ios/build/chrome_build.gni")
import("//ios/chrome/test/xcuitest/ios_chrome_xcuitest_app_host.gni")
import("//ios/public/provider/chrome/browser/build_config.gni")
group("all_tests") {
testonly = true
deps = [
":ios_cwt_chromedriver_tests",
":ios_cwt_chromedriver_tests_module",
]
}
ios_chrome_xcuitest_app_host("ios_cwt_chromedriver_tests") {
deps = [ ":app_support" ]
bundle_deps = [ "//ios/third_party/gtx:gtx+bundle" ]
}
ios_xcuitest_test("ios_cwt_chromedriver_tests_module") {
xcode_test_application_name = "ios_cwt_chromedriver_tests"
deps = [ ":cwt_chromedriver_tests" ]
data_deps = [ ":ios_cwt_chromedriver_tests" ]
bundle_deps = [
"//ios/chrome/app/resources",
"//ios/third_party/gtx:gtx+bundle",
"//third_party/icu:icudata",
]
}
source_set("shared_helper_headers") {
testonly = true
sources = [ "cwt_webdriver_app_interface.h" ]
}
source_set("cwt_constants") {
testonly = true
sources = [
"cwt_constants.cc",
"cwt_constants.h",
]
}
source_set("app_support") {
testonly = true
configs += [ "//build/config/compiler:enable_arc" ]
sources = [
"cwt_stderr_logger.h",
"cwt_stderr_logger.mm",
"cwt_tests_hook.mm",
"cwt_webdriver_app_interface.mm",
]
deps = [
":cwt_constants",
"//base",
"//base/test:test_support",
"//ios/chrome/app:app_internal",
"//ios/chrome/app:tests_hook",
"//ios/chrome/browser/main:public",
"//ios/chrome/browser/tabs:tabs",
"//ios/chrome/browser/web:tab_id_tab_helper",
"//ios/chrome/browser/web_state_list",
"//ios/chrome/test/app:test_support",
"//ios/testing:nserror_support",
"//ios/third_party/edo",
"//ios/web/public/test",
"//ui/gfx",
]
public_deps = [ ":shared_helper_headers" ]
}
source_set("cwt_chromedriver_tests") {
testonly = true
configs += [
"//build/config/compiler:enable_arc",
"//build/config/ios:xctest_config",
]
sources = [
"cwt_chrome_driver.mm",
"cwt_request_handler.h",
"cwt_request_handler.mm",
]
deps = [
":cwt_constants",
":shared_helper_headers",
"//components/version_info:version_info",
"//ios/third_party/edo",
"//net:test_support",
]
frameworks = [ "UIKit.framework" ]
}