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

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

Issue 2901623002: Move more tests suites to services_unittests. (Closed)
Patch Set: Oh, it was never run on android previously... 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/resource_coordinator/BUILD.gn ('k') | services/ui/gpu/mus_gpu_unittests_app_manifest.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/gpu/BUILD.gn
diff --git a/services/ui/gpu/BUILD.gn b/services/ui/gpu/BUILD.gn
index c365a80363febdfdce405ebf8fb98d0ffcb8ced0..629c619cf13cc0a81425b6c52068685782c65d84 100644
--- a/services/ui/gpu/BUILD.gn
+++ b/services/ui/gpu/BUILD.gn
@@ -3,6 +3,7 @@
# found in the LICENSE file.
import("//build/config/ui.gni")
+import("//services/catalog/public/tools/catalog.gni")
import("//services/service_manager/public/service_manifest.gni")
import("//testing/test.gni")
@@ -41,32 +42,37 @@ source_set("gpu") {
}
}
-group("tests") {
- testonly = true
- deps = [
- ":mus_gpu_unittests",
- ]
-}
+if (use_aura) {
+ source_set("tests") {
+ testonly = true
-test("mus_gpu_unittests") {
- deps = [
- ":gpu",
- "//base",
- "//gpu",
- "//ipc",
- "//services/ui/common:run_all_service_tests",
- "//services/ui/gpu/interfaces",
- "//testing/gtest",
- "//ui/gfx:memory_buffer",
- "//ui/gfx/geometry",
- ]
+ sources = [
+ "gpu_service_unittest.cc",
+ ]
- sources = [
- "gpu_service_unittest.cc",
- ]
-}
+ deps = [
+ ":gpu",
+ "//base",
+ "//gpu",
+ "//ipc",
+ "//services/ui/gpu/interfaces",
+ "//testing/gtest",
+ "//ui/gfx:memory_buffer",
+ "//ui/gfx/geometry",
+ ]
+
+ data_deps = [
+ "//services/ui",
+ ]
+ }
+
+ service_manifest("unittest_manifest") {
+ name = "mus_gpu_unittests"
+ source = "test_manifest.json"
+ }
-service_manifest("mus_gpu_unittests_app_manifest") {
- name = "mus_gpu_unittests_app"
- source = "mus_gpu_unittests_app_manifest.json"
+ catalog("tests_catalog") {
+ testonly = true
+ embedded_services = [ ":unittest_manifest" ]
+ }
}
« no previous file with comments | « services/resource_coordinator/BUILD.gn ('k') | services/ui/gpu/mus_gpu_unittests_app_manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698