| OLD | NEW |
| 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 += [ | 28 deps += [ |
| 29 "//services/ui/clipboard:tests", | 29 "//services/ui/clipboard:tests", |
| 30 "//services/ui/gpu:tests", |
| 30 "//services/ui/ime:tests", | 31 "//services/ui/ime:tests", |
| 31 "//services/ui/input_devices:tests", | 32 "//services/ui/input_devices:tests", |
| 32 "//services/ui/public/cpp/tests", | 33 "//services/ui/public/cpp/tests", |
| 33 "//services/ui/public/interfaces:tests", | 34 "//services/ui/public/interfaces:tests", |
| 34 ] | 35 ] |
| 35 | 36 |
| 36 if (is_linux && !is_chromeos) { | 37 if (is_linux && !is_chromeos) { |
| 37 deps += [ "//services/ui/demo:tests" ] | 38 deps += [ "//services/ui/demo:tests" ] |
| 38 } | 39 } |
| 39 } | 40 } |
| (...skipping 14 matching lines...) Expand all Loading... |
| 54 | 55 |
| 55 catalog = ":service_unittests_catalog" | 56 catalog = ":service_unittests_catalog" |
| 56 } | 57 } |
| 57 | 58 |
| 58 catalog("service_unittests_catalog") { | 59 catalog("service_unittests_catalog") { |
| 59 testonly = true | 60 testonly = true |
| 60 catalog_deps = [ | 61 catalog_deps = [ |
| 61 "//services/device:tests_catalog", | 62 "//services/device:tests_catalog", |
| 62 "//services/identity:tests_catalog", | 63 "//services/identity:tests_catalog", |
| 63 "//services/preferences:tests_catalog", | 64 "//services/preferences:tests_catalog", |
| 65 "//services/resource_coordinator:tests_catalog", |
| 64 "//services/video_capture:tests_catalog", | 66 "//services/video_capture:tests_catalog", |
| 65 ] | 67 ] |
| 66 | 68 |
| 67 if (use_aura) { | 69 if (use_aura) { |
| 68 catalog_deps += [ | 70 catalog_deps += [ |
| 69 "//services/ui/clipboard:tests_catalog", | 71 "//services/ui/clipboard:tests_catalog", |
| 72 "//services/ui/gpu:tests_catalog", |
| 70 "//services/ui/ime:tests_catalog", | 73 "//services/ui/ime:tests_catalog", |
| 71 ] | 74 ] |
| 72 | 75 |
| 73 if (is_linux && !is_chromeos) { | 76 if (is_linux && !is_chromeos) { |
| 74 catalog_deps += [ "//services/ui/demo:tests_catalog" ] | 77 catalog_deps += [ "//services/ui/demo:tests_catalog" ] |
| 75 } | 78 } |
| 76 } | 79 } |
| 77 } | 80 } |
| 78 | 81 |
| 79 if (is_android) { | 82 if (is_android) { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 90 "//base:base_java_test_support", | 93 "//base:base_java_test_support", |
| 91 "//device/generic_sensor:java", | 94 "//device/generic_sensor:java", |
| 92 "//device/generic_sensor/public/interfaces:interfaces_java", | 95 "//device/generic_sensor/public/interfaces:interfaces_java", |
| 93 "//mojo/public/java:bindings_java", | 96 "//mojo/public/java:bindings_java", |
| 94 "//mojo/public/java:system_java", | 97 "//mojo/public/java:system_java", |
| 95 "//services/shape_detection:shape_detection_java", | 98 "//services/shape_detection:shape_detection_java", |
| 96 "//third_party/android_tools:android_support_annotations_java", | 99 "//third_party/android_tools:android_support_annotations_java", |
| 97 ] | 100 ] |
| 98 } | 101 } |
| 99 } | 102 } |
| OLD | NEW |