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

Side by Side Diff: services/BUILD.gn

Issue 2885193002: Move more mus tests to service_unittest. (Closed)
Patch Set: Rebase Created 3 years, 7 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
« no previous file with comments | « BUILD.gn ('k') | services/ui/demo/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 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/ui.gni") 5 import("//build/config/ui.gni")
6 import("//services/catalog/public/tools/catalog.gni") 6 import("//services/catalog/public/tools/catalog.gni")
7 import("//services/service_manager/public/tools/test/service_test.gni") 7 import("//services/service_manager/public/tools/test/service_test.gni")
8 import("//testing/test.gni") 8 import("//testing/test.gni")
9 9
10 # One Big Target for services to register their unit test sources. This exists 10 # One Big Target for services to register their unit test sources. This exists
11 # to avoid having to maintain a separate test binary for every service. 11 # to avoid having to maintain a separate test binary for every service.
12 # 12 #
13 # To add tests for a new service, please define a "tests" source_set in the 13 # To add tests for a new service, please define a "tests" source_set in the
14 # service subdirectory and add it as a dependency here. If your unit tests 14 # service subdirectory and add it as a dependency here. If your unit tests
15 # use the ServiceTest framework, you must also include corresponding catalog 15 # use the ServiceTest framework, you must also include corresponding catalog
16 # entries in the "service_unittests_catalog" target below. 16 # entries in the "service_unittests_catalog" target below.
17 service_test("service_unittests") { 17 service_test("service_unittests") {
18 deps = [ 18 deps = [
19 "//services/data_decoder:tests", 19 "//services/data_decoder:tests",
20 "//services/device:tests", 20 "//services/device:tests",
21 "//services/identity:tests", 21 "//services/identity:tests",
22 "//services/preferences:tests", 22 "//services/preferences:tests",
23 "//services/resource_coordinator:tests", 23 "//services/resource_coordinator:tests",
24 "//services/shape_detection:tests", 24 "//services/shape_detection:tests",
25 ] 25 ]
26 26
27 if (use_aura) { 27 if (use_aura) {
28 deps += [ "//services/ui/clipboard:tests" ] 28 deps += [
29 "//services/ui/clipboard:tests",
30 "//services/ui/ime:tests",
31 "//services/ui/input_devices:tests",
32 "//services/ui/public/cpp/tests",
33 "//services/ui/public/interfaces:tests",
34 ]
35
36 if (is_linux && !is_chromeos) {
37 deps += [ "//services/ui/demo:tests" ]
38 }
29 } 39 }
30 40
31 if (is_android) { 41 if (is_android) {
32 deps += [ 42 deps += [
33 "//services/device:java", 43 "//services/device:java",
34 44
35 # Some tests need to initialize V8. 45 # Some tests need to initialize V8.
36 "//v8:v8_external_startup_data_assets", 46 "//v8:v8_external_startup_data_assets",
37 ] 47 ]
38 } else { 48 } else {
39 # NOTE: We do not currently support standalone service binaries on Android, 49 # NOTE: We do not currently support standalone service binaries on Android,
40 # so any tests which use the ServiceTest framework to connect to standalone 50 # so any tests which use the ServiceTest framework to connect to standalone
41 # services must be added here. 51 # services must be added here.
42 deps += [ "//services/video_capture:tests" ] 52 deps += [ "//services/video_capture:tests" ]
43 } 53 }
44 54
45 catalog = ":service_unittests_catalog" 55 catalog = ":service_unittests_catalog"
46 } 56 }
47 57
48 catalog("service_unittests_catalog") { 58 catalog("service_unittests_catalog") {
49 testonly = true 59 testonly = true
50 catalog_deps = [ 60 catalog_deps = [
51 "//services/device:tests_catalog", 61 "//services/device:tests_catalog",
52 "//services/identity:tests_catalog", 62 "//services/identity:tests_catalog",
53 "//services/preferences:tests_catalog", 63 "//services/preferences:tests_catalog",
54 "//services/video_capture:tests_catalog", 64 "//services/video_capture:tests_catalog",
55 ] 65 ]
56 66
57 if (use_aura) { 67 if (use_aura) {
58 catalog_deps += [ "//services/ui/clipboard:tests_catalog" ] 68 catalog_deps += [
69 "//services/ui/clipboard:tests_catalog",
70 "//services/ui/ime:tests_catalog",
71 ]
72
73 if (is_linux && !is_chromeos) {
74 catalog_deps += [ "//services/ui/demo:tests_catalog" ]
75 }
59 } 76 }
60 } 77 }
61 78
62 if (is_android) { 79 if (is_android) {
63 junit_binary("service_junit_tests") { 80 junit_binary("service_junit_tests") {
64 java_files = [ 81 java_files = [
65 "device/generic_sensor/android/junit/src/org/chromium/device/sensors/Platf ormSensorAndProviderTest.java", 82 "device/generic_sensor/android/junit/src/org/chromium/device/sensors/Platf ormSensorAndProviderTest.java",
66 "shape_detection/android/junit/src/org/chromium/shape_detection/SharedBuff erUtilsTest.java", 83 "shape_detection/android/junit/src/org/chromium/shape_detection/SharedBuff erUtilsTest.java",
67 ] 84 ]
68 deps = [ 85 deps = [
69 "$google_play_services_package:google_play_services_base_java", 86 "$google_play_services_package:google_play_services_base_java",
70 "$google_play_services_package:google_play_services_basement_java", 87 "$google_play_services_package:google_play_services_basement_java",
71 "$google_play_services_package:google_play_services_vision_java", 88 "$google_play_services_package:google_play_services_vision_java",
72 "//base:base_java", 89 "//base:base_java",
73 "//base:base_java_test_support", 90 "//base:base_java_test_support",
74 "//device/generic_sensor:java", 91 "//device/generic_sensor:java",
75 "//device/generic_sensor/public/interfaces:interfaces_java", 92 "//device/generic_sensor/public/interfaces:interfaces_java",
76 "//mojo/public/java:bindings_java", 93 "//mojo/public/java:bindings_java",
77 "//mojo/public/java:system_java", 94 "//mojo/public/java:system_java",
78 "//services/shape_detection:shape_detection_java", 95 "//services/shape_detection:shape_detection_java",
79 "//third_party/android_tools:android_support_annotations_java", 96 "//third_party/android_tools:android_support_annotations_java",
80 ] 97 ]
81 } 98 }
82 } 99 }
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | services/ui/demo/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698