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

Side by Side Diff: blimp/engine/BUILD.gn

Issue 2572563006: [Blimp] Refactor Blimp test engine with embedded test server and URL rewriting (Closed)
Patch Set: Created 4 years 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("//build/config/chrome_build.gni") 5 import("//build/config/chrome_build.gni")
6 import("//build/config/features.gni") 6 import("//build/config/features.gni")
7 import("//build/config/sanitizers/sanitizers.gni") 7 import("//build/config/sanitizers/sanitizers.gni")
8 import("//build/config/ui.gni") 8 import("//build/config/ui.gni")
9 import("//mojo/public/tools/bindings/mojom.gni") 9 import("//mojo/public/tools/bindings/mojom.gni")
10 import("//tools/grit/repack.gni") 10 import("//tools/grit/repack.gni")
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after
460 ] 460 ]
461 461
462 deps = [ 462 deps = [
463 ":app", 463 ":app",
464 ":feature", 464 ":feature",
465 "//base", 465 "//base",
466 "//testing/gmock", 466 "//testing/gmock",
467 ] 467 ]
468 } 468 }
469 469
470 source_set("testing_app") {
471 testonly = true
472
473 sources = [
474 "testing/app/blimp_browser_testing_main_parts.cc",
475 "testing/app/blimp_browser_testing_main_parts.h",
476 "testing/app/blimp_content_browser_client_for_test.cc",
477 "testing/app/blimp_content_browser_client_for_test.h",
478 "testing/app/blimp_content_main_delegate_for_test.cc",
479 "testing/app/blimp_content_main_delegate_for_test.h",
480 "testing/app/blimp_url_rewriter.cc",
481 "testing/app/blimp_url_rewriter.h",
482 "testing/app/content_testing_main.cc",
483 "testing/app/content_testing_main.h",
484 "testing/session/blimp_engine_testing_session.cc",
485 "testing/session/blimp_engine_testing_session.h",
486 ]
487
488 deps = [
489 ":app",
490 ":app_config",
491 ":feature",
492 ":pak",
493 ":session",
494 ":test_support",
495 "//base",
496 "//blimp/engine:blob_channel_mojo_cpp_sources",
497 "//blimp/net",
498 "//content/public/app:both",
499 "//content/public/browser",
500 "//content/public/common",
501 "//content/public/common:service_names",
502 "//content/test:test_support",
503 "//net:test_support",
504 "//testing/gtest",
505 ]
506 }
507
470 source_set("app_unit_tests") { 508 source_set("app_unit_tests") {
471 testonly = true 509 testonly = true
472 510
473 sources = [ 511 sources = [
474 "app/blimp_engine_config_unittest.cc", 512 "app/blimp_engine_config_unittest.cc",
475 "app/blimp_metrics_service_client_unittest.cc", 513 "app/blimp_metrics_service_client_unittest.cc",
476 "app/blimp_stability_metrics_provider_unittest.cc", 514 "app/blimp_stability_metrics_provider_unittest.cc",
477 "app/blimp_system_url_request_context_getter_unittest.cc", 515 "app/blimp_system_url_request_context_getter_unittest.cc",
478 "app/settings_manager_unittest.cc", 516 "app/settings_manager_unittest.cc",
479 "app/ui/blimp_screen_unittest.cc", 517 "app/ui/blimp_screen_unittest.cc",
(...skipping 16 matching lines...) Expand all
496 "//components/prefs:test_support", 534 "//components/prefs:test_support",
497 "//content/test:test_support", 535 "//content/test:test_support",
498 "//net:test_support", 536 "//net:test_support",
499 "//testing/gmock", 537 "//testing/gmock",
500 "//testing/gtest", 538 "//testing/gtest",
501 "//ui/display", 539 "//ui/display",
502 "//ui/gfx:test_support", 540 "//ui/gfx:test_support",
503 ] 541 ]
504 } 542 }
505 543
544 source_set("testing_app_unit_tests") {
545 testonly = true
546
547 sources = [
548 "testing/app/blimp_url_rewriter_unittest.cc",
549 ]
550
551 deps = [
552 ":app",
553 ":feature",
554 ":session",
555 ":test_support",
556 ":testing_app",
557 "//base",
558 "//content/public/app:both",
559 "//content/public/browser",
560 "//content/test:browsertest_support",
561 "//content/test:test_support",
562 "//net:test_support",
563 "//testing/gtest",
564 ]
565 }
566
506 source_set("common_unit_tests") { 567 source_set("common_unit_tests") {
507 testonly = true 568 testonly = true
508 569
509 sources = [ 570 sources = [
510 "common/blimp_browser_context_unittest.cc", 571 "common/blimp_browser_context_unittest.cc",
511 ] 572 ]
512 573
513 deps = [ 574 deps = [
514 ":common", 575 ":common",
515 "//base", 576 "//base",
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
603 source_set("unit_tests") { 664 source_set("unit_tests") {
604 testonly = true 665 testonly = true
605 666
606 deps = [ 667 deps = [
607 ":app_unit_tests", 668 ":app_unit_tests",
608 ":common_unit_tests", 669 ":common_unit_tests",
609 ":feature_unit_tests", 670 ":feature_unit_tests",
610 ":font_data_fetcher_unit_tests", 671 ":font_data_fetcher_unit_tests",
611 ":mojo_unit_tests", 672 ":mojo_unit_tests",
612 ":renderer_unit_tests", 673 ":renderer_unit_tests",
674 ":testing_app_unit_tests",
613 ] 675 ]
614 } 676 }
615 677
616 if (is_linux) { 678 if (is_linux) {
617 _runtime_deps = "$root_gen_dir/blimp-engine.runtime_deps" 679 _runtime_deps = "$root_gen_dir/blimp-engine.runtime_deps"
618 _rebased_runtime_deps = rebase_path(_runtime_deps, root_out_dir) 680 _rebased_runtime_deps = rebase_path(_runtime_deps, root_out_dir)
619 681
682 executable("blimp_engine_testing_app") {
683 testonly = true
684
685 sources = [
686 "testing/app/blimp_testing_main.cc",
687 ]
688
689 deps = [
690 ":app",
691 ":app_config",
692 ":pak",
693 ":session",
694 ":testing_app",
695 "//base",
696 "//blimp/net",
697 "//content/public/app:both",
698 "//content/public/browser",
699 "//content/public/common",
700 "//content/test:test_support",
701 "//net:test_support",
702 ]
703
704 data_deps = [
705 ":pak",
706 "//sandbox/linux:chrome_sandbox",
707 "//third_party/blimp_fonts",
708 ]
709
710 configs += [ "//content:content_implementation" ]
711 }
712
713 group("engine_for_test") {
714 testonly = true
715 public_deps = [
716 ":blimp_engine_testing_app",
717 ]
718 }
719
620 executable("blimp_engine_app") { 720 executable("blimp_engine_app") {
621 sources = [ 721 sources = [
622 "app/blimp_main.cc", 722 "app/blimp_main.cc",
623 ] 723 ]
624 724
625 deps = [ 725 deps = [
626 ":app", 726 ":app",
627 ":app_config", 727 ":app_config",
628 ":pak", 728 ":pak",
629 "//base", 729 "//base",
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
805 "//content/test:test_support", 905 "//content/test:test_support",
806 "//testing/gmock", 906 "//testing/gmock",
807 "//testing/gtest", 907 "//testing/gtest",
808 ] 908 ]
809 909
810 data = [ 910 data = [
811 "//blimp/test/data/", 911 "//blimp/test/data/",
812 "$root_out_dir/blimp_engine.pak", 912 "$root_out_dir/blimp_engine.pak",
813 ] 913 ]
814 } 914 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698