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

Unified Diff: services/BUILD.gn

Issue 2660743002: Merge video_capture tests into service_unittests (Closed)
Patch Set: . Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « BUILD.gn ('k') | services/test/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/BUILD.gn
diff --git a/services/BUILD.gn b/services/BUILD.gn
index abb7af6ed7c534ff3f42bcd66cd4c3b72176b091..ddb175f1d835294d06d5ae55d7825c2b53e7efc0 100644
--- a/services/BUILD.gn
+++ b/services/BUILD.gn
@@ -2,21 +2,35 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+import("//services/catalog/public/tools/catalog.gni")
+import("//services/service_manager/public/tools/test/service_test.gni")
import("//testing/test.gni")
# One Big Target for services to register their unit test sources. This exists
# to avoid having to maintain a separate test binary for every service.
#
# To add tests for a new service, please define a "tests" source_set in the
-# service subdirectory and add it as a dependency here.
-test("service_unittests") {
+# service subdirectory and add it as a dependency here. If your unit tests
+# use the ServiceTest framework, you must also include corresponding catalog
+# entries in the "service_unittests_catalog" target below.
+service_test("service_unittests") {
deps = [
"//services/image_decoder:tests",
- "//services/test:run_all_unittests",
]
if (is_android) {
# Some tests need to initialize V8.
deps += [ "//v8:v8_external_startup_data_assets" ]
+ } else {
+ # NOTE: We do not currently support standalone service binaries on Android,
+ # so any tests which use the ServiceTest framework to connect to standalone
+ # services must be added here.
+ deps += [ "//services/video_capture:tests" ]
}
+
+ catalog = ":service_unittests_catalog"
+}
+
+catalog("service_unittests_catalog") {
+ catalog_deps = [ "//services/video_capture:tests_catalog" ]
}
« no previous file with comments | « BUILD.gn ('k') | services/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698