1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 import("//build/config/ui.gni")
6 import("//chrome/chrome_tests.gni")
7 import("//testing/test.gni")
9 # GYP version: chrome/chrome_tests.gypi:automation_client_lib
10 # (embed_js_in_cpp action)
11 action("embed_js_in_cpp") {
12 script = "embed_js_in_cpp.py"
16 "js/call_function.js",
17 "js/execute_async_script.js",
19 "js/get_element_region.js",
20 "js/is_option_element_toggleable.js",
23 inputs = [ "cpp_source.py" ] + js_files
26 "$target_gen_dir/chrome/js.cc",
27 "$target_gen_dir/chrome/js.h",
31 rebase_path("$target_gen_dir/chrome", root_build_dir),
33 args += rebase_path(js_files, root_build_dir)
36 # GYP version: chrome/chrome_tests.gypi:automation_client_lib
37 # (embed_user_data_dir_in_cpp action)
38 action("embed_user_data_dir_in_cpp") {
39 script = "embed_user_data_dir_in_cpp.py"
42 "chrome/preferences.txt",
43 "chrome/local_state.txt",
46 inputs = [ "cpp_source.py" ] + files
48 "$target_gen_dir/chrome/user_data_dir.cc",
49 "$target_gen_dir/chrome/user_data_dir.h",
54 rebase_path("$target_gen_dir/chrome", root_build_dir),
56 args += rebase_path(files, root_build_dir)
59 # GYP version: chrome/chrome_tests.gypi:automation_client_lib
60 # (embed_extension_in_cpp action)
61 action("embed_extension_in_cpp") {
62 script = "embed_extension_in_cpp.py"
65 "extension/background.js",
66 "extension/manifest.json",
69 inputs = [ "cpp_source.py" ] + files
71 "$target_gen_dir/chrome/embedded_automation_extension.cc",
72 "$target_gen_dir/chrome/embedded_automation_extension.h",
77 rebase_path("$target_gen_dir/chrome", root_build_dir),
79 args += rebase_path(files, root_build_dir)
82 # GYP version: chrome/chrome_tests.gypi:automation_client_lib
83 source_set("automation_client_lib") {
85 rebase_path(chrome_tests_gypi_values.chrome_automation_client_lib_sources,
89 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
90 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
92 # Also compile the generated files.
93 sources += get_target_outputs(":embed_extension_in_cpp")
94 sources += get_target_outputs(":embed_js_in_cpp")
95 sources += get_target_outputs(":embed_user_data_dir_in_cpp")
99 ":embed_user_data_dir_in_cpp",
101 "//base/third_party/dynamic_annotations",
103 "//third_party/zlib:zip",
104 "//third_party/zlib:minizip",
105 "//ui/accessibility:ax_gen",
113 # GYP version: chrome/chrome_tests.gypi:chromedriver_lib
114 # (embed_version_in_cpp action)
115 action("embed_version_in_cpp") {
116 script = "embed_version_in_cpp.py"
122 "$target_gen_dir/version.cc",
123 "$target_gen_dir/version.h",
128 rebase_path("VERSION", root_build_dir),
130 rebase_path(target_gen_dir, root_build_dir),
134 # GYP version: chrome/chrome_tests.gypi:chromedriver_lib
136 sources = rebase_path(chrome_tests_gypi_values.chrome_driver_lib_sources,
140 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
141 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
143 # Also compile the generated version files.
144 sources += get_target_outputs(":embed_version_in_cpp")
146 # These aren't automatically filtered out.
148 sources -= [ "keycode_text_conversion_x.cc" ]
151 sources -= [ "keycode_text_conversion_ozone.cc" ]
155 ":automation_client_lib",
156 ":embed_version_in_cpp",
158 "//base/third_party/dynamic_annotations",
162 "//third_party/zlib",
164 "//ui/events:events_base",
170 configs += [ "//build/config/linux:x11" ]
171 deps += [ "//ui/gfx/x" ]
175 executable("chromedriver") {
177 "server/chromedriver_server.cc",
180 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
181 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
188 test("chromedriver_unittests") {
190 rebase_path(chrome_tests_gypi_values.chrome_driver_unittests_sources,
194 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
195 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
200 "//base/test:run_all_unittests",
210 # ChromeDriver tests that aren't run on the main buildbot. Available as an
211 # optional test type on trybots.
212 test("chromedriver_tests") {
213 sources = rebase_path(chrome_tests_gypi_values.chrome_driver_tests_sources,
217 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
218 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
223 "//base/test:run_all_unittests",
226 "//net:test_support",