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("//build/config/chrome_build.gni") | 5 import("//build/config/chrome_build.gni") |
6 import("//build/util/process_version.gni") | 6 import("//build/util/process_version.gni") |
7 import("//headless/headless.gni") | 7 import("//headless/headless.gni") |
8 import("//mojo/public/tools/bindings/mojom.gni") | 8 import("//mojo/public/tools/bindings/mojom.gni") |
9 import("//printing/features/features.gni") | 9 import("//printing/features/features.gni") |
10 import("//testing/test.gni") | 10 import("//testing/test.gni") |
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
402 | 402 |
403 deps = [ | 403 deps = [ |
404 ":headless_lib", | 404 ":headless_lib", |
405 "//base/test:run_all_unittests", | 405 "//base/test:run_all_unittests", |
406 "//base/test:test_support", | 406 "//base/test:test_support", |
407 "//testing/gmock", | 407 "//testing/gmock", |
408 "//testing/gtest", | 408 "//testing/gtest", |
409 ] | 409 ] |
410 } | 410 } |
411 | 411 |
412 mojom("embedder_mojo_for_testing") { | |
413 sources = [ | |
414 "lib/embedder_test.mojom", | |
415 ] | |
416 } | |
417 | |
418 grit("headless_browsertest_resources_grit") { | |
419 source = "lib/headless_browsertest_resources.grd" | |
420 outputs = [ | |
421 "grit/headless_browsertest_resources.h", | |
422 "$root_gen_dir/headless/headless_browsertest_resources.pak", | |
423 ] | |
424 grit_flags = [ | |
425 "-E", | |
426 "mojom_root=" + rebase_path(root_gen_dir), | |
427 ] | |
428 deps = [ | |
429 ":embedder_mojo_for_testing__generator", | |
430 ] | |
431 resource_ids = "lib/headless_browsertest_resource_ids" | |
432 } | |
433 | |
434 repack("headless_browser_tests_pak") { | |
435 sources = [ | |
436 "$root_gen_dir/headless/headless_browsertest_resources.pak", | |
437 ] | |
438 output = "$root_out_dir/headless_browser_tests.pak" | |
439 deps = [ | |
440 ":headless_browsertest_resources_grit", | |
441 ] | |
442 } | |
443 | |
444 if (is_mac) { | 412 if (is_mac) { |
445 copy("mac_helpers") { | 413 copy("mac_helpers") { |
446 sources = [ | 414 sources = [ |
447 "$root_out_dir/crashpad_handler", | 415 "$root_out_dir/crashpad_handler", |
448 ] | 416 ] |
449 | 417 |
450 deps = [ | 418 deps = [ |
451 "//third_party/crashpad/crashpad/handler:crashpad_handler", | 419 "//third_party/crashpad/crashpad/handler:crashpad_handler", |
452 ] | 420 ] |
453 | 421 |
454 outputs = [ | 422 outputs = [ |
455 "$root_out_dir/Helpers/{{source_file_part}}", | 423 "$root_out_dir/Helpers/{{source_file_part}}", |
456 ] | 424 ] |
457 } | 425 } |
458 } | 426 } |
459 | 427 |
460 test("headless_browsertests") { | 428 test("headless_browsertests") { |
461 sources = [ | 429 sources = [ |
462 "lib/embedder_mojo_browsertest.cc", | |
463 "lib/frame_id_browsertest.cc", | 430 "lib/frame_id_browsertest.cc", |
464 "lib/headless_browser_browsertest.cc", | 431 "lib/headless_browser_browsertest.cc", |
465 "lib/headless_browser_context_browsertest.cc", | 432 "lib/headless_browser_context_browsertest.cc", |
466 "lib/headless_devtools_client_browsertest.cc", | 433 "lib/headless_devtools_client_browsertest.cc", |
467 "lib/headless_web_contents_browsertest.cc", | 434 "lib/headless_web_contents_browsertest.cc", |
468 "public/util/dom_tree_extractor_browsertest.cc", | 435 "public/util/dom_tree_extractor_browsertest.cc", |
469 "public/util/flat_dom_tree_extractor_browsertest.cc", | 436 "public/util/flat_dom_tree_extractor_browsertest.cc", |
470 "test/headless_browser_test.cc", | 437 "test/headless_browser_test.cc", |
471 "test/headless_browser_test.h", | 438 "test/headless_browser_test.h", |
472 "test/headless_test_launcher.cc", | 439 "test/headless_test_launcher.cc", |
(...skipping 14 matching lines...) Expand all Loading... |
487 "test/data/", | 454 "test/data/", |
488 ] | 455 ] |
489 | 456 |
490 if (is_mac) { | 457 if (is_mac) { |
491 data += [ "$root_out_dir/Helpers/crashpad_handler" ] | 458 data += [ "$root_out_dir/Helpers/crashpad_handler" ] |
492 } | 459 } |
493 | 460 |
494 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] | 461 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] |
495 | 462 |
496 deps = [ | 463 deps = [ |
497 ":embedder_mojo_for_testing", | |
498 ":headless_browser_tests_pak", | |
499 ":headless_lib", | 464 ":headless_lib", |
500 "//base", | 465 "//base", |
501 "//content/test:test_support", | 466 "//content/test:test_support", |
502 "//testing/gmock", | 467 "//testing/gmock", |
503 "//testing/gtest", | 468 "//testing/gtest", |
504 ] | 469 ] |
505 | 470 |
506 if (enable_basic_printing) { | 471 if (enable_basic_printing) { |
507 deps += [ "//pdf" ] | 472 deps += [ "//pdf" ] |
508 } | 473 } |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
557 | 522 |
558 executable("headless_example") { | 523 executable("headless_example") { |
559 sources = [ | 524 sources = [ |
560 "app/headless_example.cc", | 525 "app/headless_example.cc", |
561 ] | 526 ] |
562 | 527 |
563 deps = [ | 528 deps = [ |
564 ":headless_shell_lib", | 529 ":headless_shell_lib", |
565 ] | 530 ] |
566 } | 531 } |
OLD | NEW |