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

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

Issue 2138433002: Add unit test for mus_demo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 5 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 | « no previous file | services/ui/demo/main.cc » ('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 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",
« no previous file with comments | « no previous file | services/ui/demo/main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698