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

Unified Diff: services/ui/ws/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/ime/run_all_unittests.cc ('k') | services/ui/ws/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/BUILD.gn
diff --git a/services/ui/ws/BUILD.gn b/services/ui/ws/BUILD.gn
index a8d8e199ac04047fdac9b75ea6d392e20ebb8841..123544a7a9bc4ebdad7b7858eb62bb2e163ab7dd 100644
--- a/services/ui/ws/BUILD.gn
+++ b/services/ui/ws/BUILD.gn
@@ -7,6 +7,7 @@ import("//testing/test.gni")
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")
static_library("lib") {
sources = [
@@ -201,7 +202,7 @@ group("tests") {
}
}
-test("mus_ws_unittests") {
+service_test("mus_ws_unittests") {
sources = [
"cursor_unittest.cc",
"display_unittest.cc",
@@ -210,7 +211,6 @@ test("mus_ws_unittests") {
"event_matcher_unittest.cc",
"focus_controller_unittest.cc",
"frame_generator_unittest.cc",
- "run_all_unittests.cc",
"server_window_compositor_frame_sink_manager_test_api.cc",
"server_window_compositor_frame_sink_manager_test_api.h",
"server_window_drawn_tracker_unittest.cc",
@@ -229,6 +229,8 @@ test("mus_ws_unittests") {
"window_tree_unittest.cc",
]
+ catalog = ":mus_ws_unittests_catalog"
+
deps = [
":lib",
":test_support",
@@ -237,9 +239,7 @@ test("mus_ws_unittests") {
"//base/test:test_support",
"//cc:cc",
"//gpu/ipc/client",
- "//mojo/edk/system",
"//mojo/public/cpp/bindings:bindings",
- "//services/catalog:lib",
"//services/service_manager/public/cpp:service_test_support",
"//services/service_manager/public/cpp:sources",
"//services/service_manager/public/interfaces",
@@ -258,10 +258,6 @@ test("mus_ws_unittests") {
"//ui/gfx/geometry/mojo",
"//ui/gl",
]
-
- data_deps = [
- ":mus_ws_unittests_catalog_copy",
- ]
}
service_manifest("mus_ws_unittests_app_manifest") {
@@ -274,13 +270,3 @@ catalog("mus_ws_unittests_catalog") {
standalone_services = [ "//services/ui:manifest" ]
}
-
-copy("mus_ws_unittests_catalog_copy") {
- sources = get_target_outputs(":mus_ws_unittests_catalog")
- outputs = [
- "${root_out_dir}/mus_ws_unittests_catalog.json",
- ]
- deps = [
- ":mus_ws_unittests_catalog",
- ]
-}
« no previous file with comments | « services/ui/ime/run_all_unittests.cc ('k') | services/ui/ws/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698