| 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 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 390 | 390 |
| 391 deps = [ | 391 deps = [ |
| 392 ":headless_lib", | 392 ":headless_lib", |
| 393 "//base/test:run_all_unittests", | 393 "//base/test:run_all_unittests", |
| 394 "//base/test:test_support", | 394 "//base/test:test_support", |
| 395 "//testing/gmock", | 395 "//testing/gmock", |
| 396 "//testing/gtest", | 396 "//testing/gtest", |
| 397 ] | 397 ] |
| 398 } | 398 } |
| 399 | 399 |
| 400 mojom("embedder_mojo_for_testing") { | |
| 401 sources = [ | |
| 402 "lib/embedder_test.mojom", | |
| 403 ] | |
| 404 } | |
| 405 | |
| 406 grit("headless_browsertest_resources_grit") { | |
| 407 source = "lib/headless_browsertest_resources.grd" | |
| 408 outputs = [ | |
| 409 "grit/headless_browsertest_resources.h", | |
| 410 "$root_gen_dir/headless/headless_browsertest_resources.pak", | |
| 411 ] | |
| 412 grit_flags = [ | |
| 413 "-E", | |
| 414 "mojom_root=" + rebase_path(root_gen_dir), | |
| 415 ] | |
| 416 deps = [ | |
| 417 ":embedder_mojo_for_testing__generator", | |
| 418 ] | |
| 419 resource_ids = "lib/headless_browsertest_resource_ids" | |
| 420 } | |
| 421 | |
| 422 repack("headless_browser_tests_pak") { | |
| 423 sources = [ | |
| 424 "$root_gen_dir/headless/headless_browsertest_resources.pak", | |
| 425 ] | |
| 426 output = "$root_out_dir/headless_browser_tests.pak" | |
| 427 deps = [ | |
| 428 ":headless_browsertest_resources_grit", | |
| 429 ] | |
| 430 } | |
| 431 | |
| 432 if (is_mac) { | 400 if (is_mac) { |
| 433 copy("mac_helpers") { | 401 copy("mac_helpers") { |
| 434 sources = [ | 402 sources = [ |
| 435 "$root_out_dir/crashpad_handler", | 403 "$root_out_dir/crashpad_handler", |
| 436 ] | 404 ] |
| 437 | 405 |
| 438 deps = [ | 406 deps = [ |
| 439 "//third_party/crashpad/crashpad/handler:crashpad_handler", | 407 "//third_party/crashpad/crashpad/handler:crashpad_handler", |
| 440 ] | 408 ] |
| 441 | 409 |
| 442 outputs = [ | 410 outputs = [ |
| 443 "$root_out_dir/Helpers/{{source_file_part}}", | 411 "$root_out_dir/Helpers/{{source_file_part}}", |
| 444 ] | 412 ] |
| 445 } | 413 } |
| 446 } | 414 } |
| 447 | 415 |
| 448 test("headless_browsertests") { | 416 test("headless_browsertests") { |
| 449 sources = [ | 417 sources = [ |
| 450 "lib/embedder_mojo_browsertest.cc", | |
| 451 "lib/frame_id_browsertest.cc", | 418 "lib/frame_id_browsertest.cc", |
| 452 "lib/headless_browser_browsertest.cc", | 419 "lib/headless_browser_browsertest.cc", |
| 453 "lib/headless_browser_context_browsertest.cc", | 420 "lib/headless_browser_context_browsertest.cc", |
| 454 "lib/headless_devtools_client_browsertest.cc", | 421 "lib/headless_devtools_client_browsertest.cc", |
| 455 "lib/headless_web_contents_browsertest.cc", | 422 "lib/headless_web_contents_browsertest.cc", |
| 456 "public/util/dom_tree_extractor_browsertest.cc", | 423 "public/util/dom_tree_extractor_browsertest.cc", |
| 457 "public/util/flat_dom_tree_extractor_browsertest.cc", | 424 "public/util/flat_dom_tree_extractor_browsertest.cc", |
| 458 "test/headless_browser_test.cc", | 425 "test/headless_browser_test.cc", |
| 459 "test/headless_browser_test.h", | 426 "test/headless_browser_test.h", |
| 460 "test/headless_test_launcher.cc", | 427 "test/headless_test_launcher.cc", |
| (...skipping 14 matching lines...) Expand all Loading... |
| 475 "test/data/", | 442 "test/data/", |
| 476 ] | 443 ] |
| 477 | 444 |
| 478 if (is_mac) { | 445 if (is_mac) { |
| 479 data += [ "$root_out_dir/Helpers/crashpad_handler" ] | 446 data += [ "$root_out_dir/Helpers/crashpad_handler" ] |
| 480 } | 447 } |
| 481 | 448 |
| 482 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] | 449 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] |
| 483 | 450 |
| 484 deps = [ | 451 deps = [ |
| 485 ":embedder_mojo_for_testing", | |
| 486 ":headless_browser_tests_pak", | |
| 487 ":headless_lib", | 452 ":headless_lib", |
| 488 "//base", | 453 "//base", |
| 489 "//content/test:test_support", | 454 "//content/test:test_support", |
| 490 "//testing/gmock", | 455 "//testing/gmock", |
| 491 "//testing/gtest", | 456 "//testing/gtest", |
| 492 ] | 457 ] |
| 493 } | 458 } |
| 494 | 459 |
| 495 static_library("headless_shell_lib") { | 460 static_library("headless_shell_lib") { |
| 496 sources = [ | 461 sources = [ |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 541 | 506 |
| 542 executable("headless_example") { | 507 executable("headless_example") { |
| 543 sources = [ | 508 sources = [ |
| 544 "app/headless_example.cc", | 509 "app/headless_example.cc", |
| 545 ] | 510 ] |
| 546 | 511 |
| 547 deps = [ | 512 deps = [ |
| 548 ":headless_shell_lib", | 513 ":headless_shell_lib", |
| 549 ] | 514 ] |
| 550 } | 515 } |
| OLD | NEW |