OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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/compiler/compiler.gni") | 6 import("//build/config/compiler/compiler.gni") |
7 import("//build/config/crypto.gni") | 7 import("//build/config/crypto.gni") |
8 import("//build/config/features.gni") | 8 import("//build/config/features.gni") |
9 import("//build/config/ui.gni") | 9 import("//build/config/ui.gni") |
10 import("//chrome/chrome_tests.gni") | 10 import("//chrome/chrome_tests.gni") |
11 import("//chrome/common/features.gni") | 11 import("//chrome/common/features.gni") |
12 import("//chrome/test/base/js2gtest.gni") | 12 import("//chrome/test/base/js2gtest.gni") |
13 import("//components/os_crypt/features.gni") | 13 import("//components/os_crypt/features.gni") |
| 14 import("//services/shell/public/service_manifest.gni") |
14 import("//testing/test.gni") | 15 import("//testing/test.gni") |
15 import("//v8/gni/v8.gni") | 16 import("//v8/gni/v8.gni") |
16 | 17 |
17 if (is_android) { | 18 if (is_android) { |
18 import("//build/config/android/rules.gni") | 19 import("//build/config/android/rules.gni") |
19 } | 20 } |
20 | 21 |
21 # This target exists to reference other test executables to bring these files | 22 # This target exists to reference other test executables to bring these files |
22 # into the build. | 23 # into the build. |
23 group("test") { | 24 group("test") { |
(...skipping 826 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
850 "//testing/buildbot/filters/mojo.fyi.browser_tests.filter", | 851 "//testing/buildbot/filters/mojo.fyi.browser_tests.filter", |
851 ] | 852 ] |
852 data_deps = [ | 853 data_deps = [ |
853 ":browser_tests", | 854 ":browser_tests", |
854 ] | 855 ] |
855 } | 856 } |
856 } | 857 } |
857 | 858 |
858 static_library("browser_tests_runner") { | 859 static_library("browser_tests_runner") { |
859 testonly = true | 860 testonly = true |
860 sources = [ | 861 sources = [] |
861 "base/browser_tests_main.cc", | |
862 ] | |
863 | 862 |
864 deps = [ | 863 deps = [ |
865 ":test_support", | 864 ":test_support", |
866 ] | 865 ] |
867 | 866 |
868 if (use_aura) { | 867 if (is_chromeos) { |
869 sources += [ | 868 sources += [ |
| 869 "base/browser_tests_main_chromeos.cc", |
870 "base/mash_browser_tests_main.cc", | 870 "base/mash_browser_tests_main.cc", |
871 "base/mash_browser_tests_main.h", | 871 "base/mash_browser_tests_main.h", |
872 "base/mojo_test_connector.cc", | 872 "base/mojo_test_connector.cc", |
873 "base/mojo_test_connector.h", | 873 "base/mojo_test_connector.h", |
874 ] | 874 ] |
875 | 875 |
876 deps += [ | 876 deps += [ |
| 877 "//mash/package", |
877 "//services/shell/background:lib", | 878 "//services/shell/background:lib", |
878 "//services/shell/background/tests:test_support", | 879 "//services/shell/background/tests:test_support", |
879 ] | 880 ] |
880 | 881 |
881 data_deps = [ | 882 data_deps = [ |
| 883 ":mash_browser_tests_manifest", |
882 "//chrome/app:mojo_manifests", | 884 "//chrome/app:mojo_manifests", |
883 "//mash/session", | 885 "//mash/session", |
884 ] | 886 ] |
| 887 } else { |
| 888 sources += [ "base/browser_tests_main.cc" ] |
885 } | 889 } |
886 } | 890 } |
887 | 891 |
888 test("browser_tests") { | 892 test("browser_tests") { |
889 sources = rebase_path(chrome_tests_gypi_values.chrome_browser_tests_sources, | 893 sources = rebase_path(chrome_tests_gypi_values.chrome_browser_tests_sources, |
890 ".", | 894 ".", |
891 "//chrome") | 895 "//chrome") |
892 | 896 |
893 configs += [ | 897 configs += [ |
894 "//build/config:precompiled_headers", | 898 "//build/config:precompiled_headers", |
(...skipping 1568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2463 if (is_android) { | 2467 if (is_android) { |
2464 android_library("unit_tests_java") { | 2468 android_library("unit_tests_java") { |
2465 java_files = [ "android/unit_tests_apk/src/org/chromium/chrome/unit_tests_ap
k/ChromeNativeTestApplication.java" ] | 2469 java_files = [ "android/unit_tests_apk/src/org/chromium/chrome/unit_tests_ap
k/ChromeNativeTestApplication.java" ] |
2466 deps = [ | 2470 deps = [ |
2467 "//base:base_java", | 2471 "//base:base_java", |
2468 "//chrome/android:chrome_java", | 2472 "//chrome/android:chrome_java", |
2469 "//content/public/android:content_java", | 2473 "//content/public/android:content_java", |
2470 ] | 2474 ] |
2471 } | 2475 } |
2472 } | 2476 } |
| 2477 |
| 2478 if (is_chromeos) { |
| 2479 service_manifest("mash_browser_tests_manifest") { |
| 2480 type = "exe" |
| 2481 name = "mash_browser_tests" |
| 2482 |
| 2483 source = "base/mash_browser_tests_manifest.json" |
| 2484 deps = [ |
| 2485 "//ash/mus:manifest", |
| 2486 "//ash/touch_hud/mus:manifest", |
| 2487 "//mash/app_driver:manifest", |
| 2488 "//mash/quick_launch:manifest", |
| 2489 "//mash/session:manifest", |
| 2490 "//mash/task_viewer:manifest", |
| 2491 "//services/ui:manifest", |
| 2492 ] |
| 2493 packaged_services = [ |
| 2494 "app_driver", |
| 2495 "ash", |
| 2496 "mash_session", |
| 2497 "quick_launch", |
| 2498 "task_viewer", |
| 2499 "touch_hud", |
| 2500 "ui", |
| 2501 ] |
| 2502 |
| 2503 if (is_linux && !is_android) { |
| 2504 deps += [ "//components/font_service:manifest" ] |
| 2505 packaged_services += [ "font_service" ] |
| 2506 } |
| 2507 } |
| 2508 } |
OLD | NEW |