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

Unified Diff: services/ui/demo/BUILD.gn

Issue 2653713004: Add service_test GN template (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 | « services/ui/clipboard/run_all_unittests.cc ('k') | services/ui/demo/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/demo/BUILD.gn
diff --git a/services/ui/demo/BUILD.gn b/services/ui/demo/BUILD.gn
index 88278a3301c32080c97127a7cfb521480ddb5e0b..43e89cf6a25b8ef1a08ed1cb32146fb7130ba37f 100644
--- a/services/ui/demo/BUILD.gn
+++ b/services/ui/demo/BUILD.gn
@@ -5,6 +5,7 @@
import("//services/catalog/public/tools/catalog.gni")
import("//services/service_manager/public/cpp/service.gni")
import("//services/service_manager/public/service_manifest.gni")
+import("//services/service_manager/public/tools/test/service_test.gni")
import("//testing/test.gni")
source_set("lib") {
@@ -57,20 +58,18 @@ service_manifest("test_manifest") {
source = "test_manifest.json"
}
-test("mus_demo_unittests") {
+service_test("mus_demo_unittests") {
testonly = true
sources = [
"mus_demo_unittests.cc",
- "run_all_unittests.cc",
]
+ catalog = ":mus_demo_unittests_catalog"
+
deps = [
":demo",
"//base",
- "//base/test:test_support",
- "//mojo/edk/system",
- "//services/catalog:lib",
"//services/service_manager/public/cpp",
"//services/service_manager/public/cpp:service_test_support",
"//services/ui/public/interfaces",
@@ -79,7 +78,6 @@ test("mus_demo_unittests") {
data_deps = [
":mus_demo",
- ":mus_demo_unittests_catalog_copy",
]
}
@@ -97,13 +95,3 @@ catalog("mus_demo_unittests_catalog") {
"//services/ui:manifest",
]
}
-
-copy("mus_demo_unittests_catalog_copy") {
- sources = get_target_outputs(":mus_demo_unittests_catalog")
- outputs = [
- "${root_out_dir}/mus_demo_unittests_catalog.json",
- ]
- deps = [
- ":mus_demo_unittests_catalog",
- ]
-}
« no previous file with comments | « services/ui/clipboard/run_all_unittests.cc ('k') | services/ui/demo/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698