Index: services/ui/demo/BUILD.gn |
diff --git a/services/ui/demo/BUILD.gn b/services/ui/demo/BUILD.gn |
index cb1cf52e2fed8e653127a852aba58807622f651e..c7fe671692ba13b98f714cecffeb254627ec0e29 100644 |
--- a/services/ui/demo/BUILD.gn |
+++ b/services/ui/demo/BUILD.gn |
@@ -4,6 +4,7 @@ |
import("//mojo/public/mojo_application.gni") |
import("//mojo/public/mojo_application_manifest.gni") |
+import("//testing/test.gni") |
mojo_native_application("mus_demo") { |
sources = [ |
@@ -35,6 +36,34 @@ mojo_application_manifest("manifest") { |
source = "manifest.json" |
} |
+mojo_application_manifest("test_manifest") { |
+ type = "exe" |
+ application_name = "mus_demo_unittests" |
+ source = "test_manifest.json" |
+} |
+ |
+test("mus_demo_unittests") { |
+ testonly = true |
+ |
+ sources = [ |
+ "mus_demo_unittests.cc", |
+ ] |
+ |
+ deps = [ |
+ ":demo", |
+ "//base", |
+ "//services/shell/public/cpp", |
+ "//services/shell/public/cpp:service_test_support", |
+ "//services/ui/common:run_all_shelltests", |
+ "//services/ui/public/interfaces", |
+ "//testing/gtest", |
+ ] |
+ |
+ data_deps = [ |
+ ":test_manifest", |
+ ] |
+} |
+ |
group("demo") { |
deps = [ |
":mus_demo", |