Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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("//testing/test.gni") | 5 import("//testing/test.gni") |
| 6 import("//tools/grit/grit_rule.gni") | 6 import("//tools/grit/grit_rule.gni") |
| 7 import("//tools/grit/repack.gni") | 7 import("//tools/grit/repack.gni") |
| 8 | 8 |
| 9 group("headless") { | 9 group("headless") { |
| 10 deps = [ | 10 deps = [ |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 47 } | 47 } |
| 48 | 48 |
| 49 grit("headless_lib_resources_grit") { | 49 grit("headless_lib_resources_grit") { |
| 50 source = "lib/resources/headless_lib_resources.grd" | 50 source = "lib/resources/headless_lib_resources.grd" |
| 51 outputs = [ | 51 outputs = [ |
| 52 "grit/headless_lib_resources.h", | 52 "grit/headless_lib_resources.h", |
| 53 "$root_gen_dir/headless/headless_lib_resources.pak", | 53 "$root_gen_dir/headless/headless_lib_resources.pak", |
| 54 ] | 54 ] |
| 55 } | 55 } |
| 56 | 56 |
| 57 action("gen_devtools_client_api") { | |
| 58 script = "//headless/lib/browser/client_api_generator.py" | |
| 59 | |
| 60 inputs = [ | |
| 61 "//third_party/WebKit/Source/devtools/protocol.json", | |
| 62 ] | |
| 63 | |
| 64 outputs = [ | |
| 65 "$target_gen_dir/public/domains/accessibility.cc", | |
| 66 "$target_gen_dir/public/domains/accessibility.h", | |
| 67 "$target_gen_dir/public/domains/animation.cc", | |
| 68 "$target_gen_dir/public/domains/animation.h", | |
| 69 "$target_gen_dir/public/domains/application_cache.cc", | |
| 70 "$target_gen_dir/public/domains/application_cache.h", | |
| 71 "$target_gen_dir/public/domains/cache_storage.cc", | |
| 72 "$target_gen_dir/public/domains/cache_storage.h", | |
| 73 "$target_gen_dir/public/domains/console.cc", | |
| 74 "$target_gen_dir/public/domains/console.h", | |
| 75 "$target_gen_dir/public/domains/css.cc", | |
| 76 "$target_gen_dir/public/domains/css.h", | |
| 77 "$target_gen_dir/public/domains/database.cc", | |
| 78 "$target_gen_dir/public/domains/database.h", | |
| 79 "$target_gen_dir/public/domains/debugger.cc", | |
| 80 "$target_gen_dir/public/domains/debugger.h", | |
| 81 "$target_gen_dir/public/domains/device_orientation.cc", | |
| 82 "$target_gen_dir/public/domains/device_orientation.h", | |
| 83 "$target_gen_dir/public/domains/dom_debugger.cc", | |
| 84 "$target_gen_dir/public/domains/dom_debugger.h", | |
| 85 "$target_gen_dir/public/domains/dom.cc", | |
| 86 "$target_gen_dir/public/domains/dom.h", | |
| 87 "$target_gen_dir/public/domains/dom_storage.cc", | |
| 88 "$target_gen_dir/public/domains/dom_storage.h", | |
| 89 "$target_gen_dir/public/domains/emulation.cc", | |
| 90 "$target_gen_dir/public/domains/emulation.h", | |
| 91 "$target_gen_dir/public/domains/heap_profiler.cc", | |
| 92 "$target_gen_dir/public/domains/heap_profiler.h", | |
| 93 "$target_gen_dir/public/domains/indexeddb.cc", | |
| 94 "$target_gen_dir/public/domains/indexeddb.h", | |
| 95 "$target_gen_dir/public/domains/input.cc", | |
| 96 "$target_gen_dir/public/domains/input.h", | |
| 97 "$target_gen_dir/public/domains/inspector.cc", | |
| 98 "$target_gen_dir/public/domains/inspector.h", | |
| 99 "$target_gen_dir/public/domains/io.cc", | |
| 100 "$target_gen_dir/public/domains/io.h", | |
| 101 "$target_gen_dir/public/domains/layer_tree.cc", | |
| 102 "$target_gen_dir/public/domains/layer_tree.h", | |
| 103 "$target_gen_dir/public/domains/memory.cc", | |
| 104 "$target_gen_dir/public/domains/memory.h", | |
| 105 "$target_gen_dir/public/domains/network.cc", | |
| 106 "$target_gen_dir/public/domains/network.h", | |
| 107 "$target_gen_dir/public/domains/page.cc", | |
| 108 "$target_gen_dir/public/domains/page.h", | |
| 109 "$target_gen_dir/public/domains/profiler.cc", | |
| 110 "$target_gen_dir/public/domains/profiler.h", | |
| 111 "$target_gen_dir/public/domains/rendering.cc", | |
| 112 "$target_gen_dir/public/domains/rendering.h", | |
| 113 "$target_gen_dir/public/domains/runtime.cc", | |
| 114 "$target_gen_dir/public/domains/runtime.h", | |
| 115 "$target_gen_dir/public/domains/security.cc", | |
| 116 "$target_gen_dir/public/domains/security.h", | |
| 117 "$target_gen_dir/public/domains/service_worker.cc", | |
| 118 "$target_gen_dir/public/domains/service_worker.h", | |
| 119 "$target_gen_dir/public/domains/tracing.cc", | |
| 120 "$target_gen_dir/public/domains/tracing.h", | |
| 121 "$target_gen_dir/public/domains/type_conversions.h", | |
| 122 "$target_gen_dir/public/domains/types.cc", | |
| 123 "$target_gen_dir/public/domains/types.h", | |
| 124 "$target_gen_dir/public/domains/worker.cc", | |
| 125 "$target_gen_dir/public/domains/worker.h", | |
| 126 ] | |
| 127 | |
| 128 sources = [ | |
| 129 "lib/browser/domain_cc.template", | |
| 130 "lib/browser/domain_h.template", | |
| 131 "lib/browser/type_conversions_h.template", | |
| 132 "lib/browser/types_cc.template", | |
| 133 "lib/browser/types_h.template", | |
| 134 ] | |
| 135 | |
| 136 args = [ | |
| 137 "--protocol", | |
| 138 rebase_path(inputs[0], root_build_dir), | |
| 139 "--output_dir", | |
| 140 rebase_path(target_gen_dir) + "/public/domains", | |
| 141 ] | |
| 142 } | |
| 143 | |
| 57 static_library("headless_lib") { | 144 static_library("headless_lib") { |
| 58 sources = [ | 145 sources = [ |
| 146 "$target_gen_dir/public/domains/accessibility.cc", | |
| 147 "$target_gen_dir/public/domains/accessibility.h", | |
| 148 "$target_gen_dir/public/domains/animation.cc", | |
| 149 "$target_gen_dir/public/domains/animation.h", | |
| 150 "$target_gen_dir/public/domains/application_cache.cc", | |
| 151 "$target_gen_dir/public/domains/application_cache.h", | |
| 152 "$target_gen_dir/public/domains/cache_storage.cc", | |
| 153 "$target_gen_dir/public/domains/cache_storage.h", | |
| 154 "$target_gen_dir/public/domains/console.cc", | |
| 155 "$target_gen_dir/public/domains/console.h", | |
| 156 "$target_gen_dir/public/domains/css.cc", | |
| 157 "$target_gen_dir/public/domains/css.h", | |
| 158 "$target_gen_dir/public/domains/database.cc", | |
| 159 "$target_gen_dir/public/domains/database.h", | |
| 160 "$target_gen_dir/public/domains/debugger.cc", | |
| 161 "$target_gen_dir/public/domains/debugger.h", | |
| 162 "$target_gen_dir/public/domains/device_orientation.cc", | |
| 163 "$target_gen_dir/public/domains/device_orientation.h", | |
| 164 "$target_gen_dir/public/domains/dom.cc", | |
| 165 "$target_gen_dir/public/domains/dom.h", | |
| 166 "$target_gen_dir/public/domains/dom_debugger.cc", | |
| 167 "$target_gen_dir/public/domains/dom_debugger.h", | |
| 168 "$target_gen_dir/public/domains/dom_storage.cc", | |
| 169 "$target_gen_dir/public/domains/dom_storage.h", | |
| 170 "$target_gen_dir/public/domains/emulation.cc", | |
| 171 "$target_gen_dir/public/domains/emulation.h", | |
| 172 "$target_gen_dir/public/domains/heap_profiler.cc", | |
| 173 "$target_gen_dir/public/domains/heap_profiler.h", | |
| 174 "$target_gen_dir/public/domains/indexeddb.cc", | |
| 175 "$target_gen_dir/public/domains/indexeddb.h", | |
| 176 "$target_gen_dir/public/domains/input.cc", | |
| 177 "$target_gen_dir/public/domains/input.h", | |
| 178 "$target_gen_dir/public/domains/inspector.cc", | |
| 179 "$target_gen_dir/public/domains/inspector.h", | |
| 180 "$target_gen_dir/public/domains/io.cc", | |
| 181 "$target_gen_dir/public/domains/io.h", | |
| 182 "$target_gen_dir/public/domains/layer_tree.cc", | |
| 183 "$target_gen_dir/public/domains/layer_tree.h", | |
| 184 "$target_gen_dir/public/domains/memory.cc", | |
| 185 "$target_gen_dir/public/domains/memory.h", | |
| 186 "$target_gen_dir/public/domains/network.cc", | |
| 187 "$target_gen_dir/public/domains/network.h", | |
| 188 "$target_gen_dir/public/domains/page.cc", | |
| 189 "$target_gen_dir/public/domains/page.h", | |
| 190 "$target_gen_dir/public/domains/profiler.cc", | |
| 191 "$target_gen_dir/public/domains/profiler.h", | |
| 192 "$target_gen_dir/public/domains/rendering.cc", | |
| 193 "$target_gen_dir/public/domains/rendering.h", | |
| 194 "$target_gen_dir/public/domains/runtime.cc", | |
| 195 "$target_gen_dir/public/domains/runtime.h", | |
| 196 "$target_gen_dir/public/domains/security.cc", | |
| 197 "$target_gen_dir/public/domains/security.h", | |
| 198 "$target_gen_dir/public/domains/service_worker.cc", | |
| 199 "$target_gen_dir/public/domains/service_worker.h", | |
| 200 "$target_gen_dir/public/domains/tracing.cc", | |
| 201 "$target_gen_dir/public/domains/tracing.h", | |
| 202 "$target_gen_dir/public/domains/type_conversions.h", | |
| 203 "$target_gen_dir/public/domains/types.cc", | |
| 204 "$target_gen_dir/public/domains/types.h", | |
| 205 "$target_gen_dir/public/domains/worker.cc", | |
| 206 "$target_gen_dir/public/domains/worker.h", | |
| 59 "lib/browser/headless_browser_context.cc", | 207 "lib/browser/headless_browser_context.cc", |
| 60 "lib/browser/headless_browser_context.h", | 208 "lib/browser/headless_browser_context.h", |
| 61 "lib/browser/headless_browser_impl.cc", | 209 "lib/browser/headless_browser_impl.cc", |
| 62 "lib/browser/headless_browser_impl.h", | 210 "lib/browser/headless_browser_impl.h", |
| 63 "lib/browser/headless_browser_main_parts.cc", | 211 "lib/browser/headless_browser_main_parts.cc", |
| 64 "lib/browser/headless_browser_main_parts.h", | 212 "lib/browser/headless_browser_main_parts.h", |
| 65 "lib/browser/headless_content_browser_client.cc", | 213 "lib/browser/headless_content_browser_client.cc", |
| 66 "lib/browser/headless_content_browser_client.h", | 214 "lib/browser/headless_content_browser_client.h", |
| 67 "lib/browser/headless_devtools.cc", | 215 "lib/browser/headless_devtools.cc", |
| 68 "lib/browser/headless_devtools.h", | 216 "lib/browser/headless_devtools.h", |
| 217 "lib/browser/headless_devtools_client_impl.cc", | |
| 218 "lib/browser/headless_devtools_client_impl.h", | |
| 69 "lib/browser/headless_screen.cc", | 219 "lib/browser/headless_screen.cc", |
| 70 "lib/browser/headless_screen.h", | 220 "lib/browser/headless_screen.h", |
| 71 "lib/browser/headless_url_request_context_getter.cc", | 221 "lib/browser/headless_url_request_context_getter.cc", |
| 72 "lib/browser/headless_url_request_context_getter.h", | 222 "lib/browser/headless_url_request_context_getter.h", |
| 73 "lib/browser/headless_web_contents_impl.cc", | 223 "lib/browser/headless_web_contents_impl.cc", |
| 74 "lib/browser/headless_web_contents_impl.h", | 224 "lib/browser/headless_web_contents_impl.h", |
| 75 "lib/headless_content_client.cc", | 225 "lib/headless_content_client.cc", |
| 76 "lib/headless_content_client.h", | 226 "lib/headless_content_client.h", |
| 77 "lib/headless_content_main_delegate.cc", | 227 "lib/headless_content_main_delegate.cc", |
| 78 "lib/headless_content_main_delegate.h", | 228 "lib/headless_content_main_delegate.h", |
| 79 "lib/renderer/headless_content_renderer_client.cc", | 229 "lib/renderer/headless_content_renderer_client.cc", |
| 80 "lib/renderer/headless_content_renderer_client.h", | 230 "lib/renderer/headless_content_renderer_client.h", |
| 81 "lib/utility/headless_content_utility_client.cc", | 231 "lib/utility/headless_content_utility_client.cc", |
| 82 "lib/utility/headless_content_utility_client.h", | 232 "lib/utility/headless_content_utility_client.h", |
| 83 "public/headless_browser.cc", | 233 "public/headless_browser.cc", |
| 84 "public/headless_browser.h", | 234 "public/headless_browser.h", |
| 235 "public/headless_devtools_client.h", | |
| 236 "public/headless_devtools_host.h", | |
| 237 "public/headless_devtools_target.h", | |
| 85 "public/headless_export.h", | 238 "public/headless_export.h", |
| 86 "public/headless_web_contents.h", | 239 "public/headless_web_contents.h", |
| 240 "public/internal/message_dispatcher.h", | |
| 241 "public/internal/value_conversions.h", | |
| 87 "public/util/error_reporter.cc", | 242 "public/util/error_reporter.cc", |
| 88 "public/util/error_reporter.h", | 243 "public/util/error_reporter.h", |
| 89 "public/util/maybe.h", | 244 "public/util/maybe.h", |
| 90 ] | 245 ] |
| 91 | 246 |
| 92 deps = [ | 247 deps = [ |
| 248 ":gen_devtools_client_api", | |
| 93 ":pak", | 249 ":pak", |
| 94 "//base", | 250 "//base", |
| 95 "//components/devtools_http_handler", | 251 "//components/devtools_http_handler", |
| 96 "//content/public/app:both", | 252 "//content/public/app:both", |
| 97 "//content/public/browser", | 253 "//content/public/browser", |
| 98 "//content/public/child", | 254 "//content/public/child", |
| 99 "//content/public/common", | 255 "//content/public/common", |
| 100 "//content/public/renderer", | 256 "//content/public/renderer", |
| 101 "//content/public/utility", | 257 "//content/public/utility", |
| 102 "//net", | 258 "//net", |
| 103 "//ui/aura", | 259 "//ui/aura", |
| 104 "//ui/base", | 260 "//ui/base", |
| 105 "//ui/compositor", | 261 "//ui/compositor", |
| 106 "//ui/ozone", | 262 "//ui/ozone", |
| 107 "//url", | 263 "//url", |
| 108 ] | 264 ] |
| 109 } | 265 } |
| 110 | 266 |
| 111 group("headless_tests") { | 267 group("headless_tests") { |
| 112 testonly = true | 268 testonly = true |
| 113 | 269 |
| 114 deps = [ | 270 deps = [ |
| 271 ":client_api_generator_tests", | |
| 115 ":headless_browsertests", | 272 ":headless_browsertests", |
| 116 ":headless_unittests", | 273 ":headless_unittests", |
| 117 ] | 274 ] |
| 118 } | 275 } |
| 119 | 276 |
| 120 test("headless_unittests") { | 277 test("headless_unittests") { |
| 121 sources = [ | 278 sources = [ |
| 279 "public/domains/types_unittest.cc", | |
| 122 "public/util/error_reporter_unittest.cc", | 280 "public/util/error_reporter_unittest.cc", |
| 123 "public/util/maybe_unittest.cc", | 281 "public/util/maybe_unittest.cc", |
| 124 ] | 282 ] |
| 125 | 283 |
| 126 deps = [ | 284 deps = [ |
| 127 ":headless_lib", | 285 ":headless_lib", |
| 128 "//base/test:run_all_unittests", | 286 "//base/test:run_all_unittests", |
| 129 "//base/test:test_support", | 287 "//base/test:test_support", |
| 130 "//testing/gtest", | 288 "//testing/gtest", |
| 131 ] | 289 ] |
| 132 } | 290 } |
| 133 | 291 |
| 292 action("client_api_generator_tests") { | |
|
Nico
2016/10/10 16:49:02
1) tests should run as part of running tests, not
Sami
2016/10/11 00:14:03
Sorry about that; Fix here: https://codereview.chr
| |
| 293 _stamp = "$target_gen_dir/client_api_generator_unittests.stamp" | |
| 294 inputs = [ | |
| 295 "lib/browser/client_api_generator.py", | |
| 296 "lib/browser/client_api_generator_unittest.py", | |
| 297 ] | |
| 298 outputs = [ | |
| 299 _stamp, | |
| 300 ] | |
| 301 | |
| 302 script = "lib/browser/client_api_generator_unittest.py" | |
| 303 args = [ | |
| 304 "--stamp", | |
| 305 rebase_path(_stamp, root_build_dir), | |
| 306 ] | |
| 307 } | |
| 308 | |
| 134 test("headless_browsertests") { | 309 test("headless_browsertests") { |
| 135 sources = [ | 310 sources = [ |
| 136 "lib/headless_browser_browsertest.cc", | 311 "lib/headless_browser_browsertest.cc", |
| 312 "lib/headless_devtools_client_browsertest.cc", | |
| 137 "lib/headless_web_contents_browsertest.cc", | 313 "lib/headless_web_contents_browsertest.cc", |
| 138 "test/headless_browser_test.cc", | 314 "test/headless_browser_test.cc", |
| 139 "test/headless_browser_test.h", | 315 "test/headless_browser_test.h", |
| 140 "test/headless_test_launcher.cc", | 316 "test/headless_test_launcher.cc", |
| 141 ] | 317 ] |
| 142 | 318 |
| 143 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] | 319 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] |
| 144 | 320 |
| 145 deps = [ | 321 deps = [ |
| 146 "//base", | 322 "//base", |
| (...skipping 11 matching lines...) Expand all Loading... | |
| 158 sources = [ | 334 sources = [ |
| 159 "app/headless_shell.cc", | 335 "app/headless_shell.cc", |
| 160 "app/headless_shell_switches.cc", | 336 "app/headless_shell_switches.cc", |
| 161 "app/headless_shell_switches.h", | 337 "app/headless_shell_switches.h", |
| 162 ] | 338 ] |
| 163 | 339 |
| 164 deps = [ | 340 deps = [ |
| 165 "//headless:headless_lib", | 341 "//headless:headless_lib", |
| 166 ] | 342 ] |
| 167 } | 343 } |
| OLD | NEW |