Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(83)

Side by Side Diff: headless/BUILD.gn

Issue 2049363003: Adds support for headless chrome embedder mojo services (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comment plus a rename Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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("//mojo/public/tools/bindings/mojom.gni")
5 import("//testing/test.gni") 6 import("//testing/test.gni")
6 import("//tools/grit/grit_rule.gni") 7 import("//tools/grit/grit_rule.gni")
7 import("//tools/grit/repack.gni") 8 import("//tools/grit/repack.gni")
8 9
9 config("headless_implementation") { 10 config("headless_implementation") {
10 defines = [ "HEADLESS_IMPLEMENTATION" ] 11 defines = [ "HEADLESS_IMPLEMENTATION" ]
11 } 12 }
12 13
13 group("headless") { 14 group("headless") {
14 deps = [ 15 deps = [
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 "public/headless_browser_context.h", 244 "public/headless_browser_context.h",
244 "public/headless_devtools_client.h", 245 "public/headless_devtools_client.h",
245 "public/headless_devtools_host.h", 246 "public/headless_devtools_host.h",
246 "public/headless_devtools_target.h", 247 "public/headless_devtools_target.h",
247 "public/headless_export.h", 248 "public/headless_export.h",
248 "public/headless_web_contents.h", 249 "public/headless_web_contents.h",
249 "public/internal/message_dispatcher.h", 250 "public/internal/message_dispatcher.h",
250 "public/internal/value_conversions.h", 251 "public/internal/value_conversions.h",
251 "public/util/error_reporter.cc", 252 "public/util/error_reporter.cc",
252 "public/util/error_reporter.h", 253 "public/util/error_reporter.h",
254 "public/util/in_memory_protocol_handler.cc",
255 "public/util/in_memory_protocol_handler.h",
256 "public/util/in_memory_request_job.cc",
257 "public/util/in_memory_request_job.h",
253 ] 258 ]
254 259
255 deps = [ 260 deps = [
256 ":gen_devtools_client_api", 261 ":gen_devtools_client_api",
257 ":pak", 262 ":pak",
258 "//base", 263 "//base",
259 "//components/devtools_http_handler", 264 "//components/devtools_http_handler",
260 "//content/public/app:both", 265 "//content/public/app:both",
261 "//content/public/browser", 266 "//content/public/browser",
262 "//content/public/child", 267 "//content/public/child",
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 _stamp, 314 _stamp,
310 ] 315 ]
311 316
312 script = "lib/browser/client_api_generator_unittest.py" 317 script = "lib/browser/client_api_generator_unittest.py"
313 args = [ 318 args = [
314 "--stamp", 319 "--stamp",
315 rebase_path(_stamp, root_build_dir), 320 rebase_path(_stamp, root_build_dir),
316 ] 321 ]
317 } 322 }
318 323
324 mojom("embedder_mojo_for_testing") {
325 sources = [
326 "lib/embedder_test.mojom",
327 ]
328 }
329
330 grit("headless_browsertest_resources_grit") {
331 source = "lib/headless_browsertest_resources.grd"
332 outputs = [
333 "grit/headless_browsertest_resources.h",
334 "$root_gen_dir/headless/headless_browsertest_resources.pak",
335 ]
336 grit_flags = [
337 "-E",
338 "mojom_root=" + rebase_path(root_gen_dir),
339 ]
340 deps = [
341 ":embedder_mojo_for_testing__generator",
342 ]
343 resource_ids = "lib/headless_browsertest_resource_ids"
344 }
345
346 repack("headless_browser_tests_pak") {
347 sources = [
348 "$root_gen_dir/headless/headless_browsertest_resources.pak",
349 ]
350 output = "$root_out_dir/headless_browser_tests.pak"
351 deps = [
352 ":headless_browsertest_resources_grit",
353 ]
354 }
355
319 test("headless_browsertests") { 356 test("headless_browsertests") {
320 sources = [ 357 sources = [
358 "lib/embedder_mojo_browsertest.cc",
321 "lib/headless_browser_browsertest.cc", 359 "lib/headless_browser_browsertest.cc",
322 "lib/headless_browser_context_browsertest.cc", 360 "lib/headless_browser_context_browsertest.cc",
323 "lib/headless_devtools_client_browsertest.cc", 361 "lib/headless_devtools_client_browsertest.cc",
324 "lib/headless_web_contents_browsertest.cc", 362 "lib/headless_web_contents_browsertest.cc",
325 "test/headless_browser_test.cc", 363 "test/headless_browser_test.cc",
326 "test/headless_browser_test.h", 364 "test/headless_browser_test.h",
327 "test/headless_test_launcher.cc", 365 "test/headless_test_launcher.cc",
328 "test/test_protocol_handler.cc", 366 "test/test_protocol_handler.cc",
329 "test/test_protocol_handler.h", 367 "test/test_protocol_handler.h",
330 "test/test_url_request_job.cc", 368 "test/test_url_request_job.cc",
331 "test/test_url_request_job.h", 369 "test/test_url_request_job.h",
332 ] 370 ]
333 371
372 data = [
373 "$root_out_dir/headless_browser_tests.pak",
374 ]
375
334 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] 376 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
335 377
336 deps = [ 378 deps = [
379 ":embedder_mojo_for_testing",
380 ":headless_browser_tests_pak",
337 "//base", 381 "//base",
338 "//content/test:browsertest_base", 382 "//content/test:browsertest_base",
339 "//content/test:test_support", 383 "//content/test:test_support",
340 "//headless:headless_lib", 384 "//headless:headless_lib",
341 "//testing/gmock", 385 "//testing/gmock",
342 "//testing/gtest", 386 "//testing/gtest",
343 ] 387 ]
344 } 388 }
345 389
346 executable("headless_shell") { 390 executable("headless_shell") {
347 sources = [ 391 sources = [
348 "app/headless_shell.cc", 392 "app/headless_shell.cc",
349 "app/headless_shell_switches.cc", 393 "app/headless_shell_switches.cc",
350 "app/headless_shell_switches.h", 394 "app/headless_shell_switches.h",
351 ] 395 ]
352 396
353 deps = [ 397 deps = [
354 "//headless:headless_lib", 398 "//headless:headless_lib",
355 ] 399 ]
356 } 400 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698