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

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

Issue 1949233002: Create a RegisterViewAssociate method in ViewManager (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: add tests to mojo tests Created 4 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/ui/launcher/launcher_app.cc ('k') | services/ui/view_manager/tests/mock_view_associate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/view_manager/BUILD.gn
diff --git a/services/ui/view_manager/BUILD.gn b/services/ui/view_manager/BUILD.gn
index b55b4292e4d0a11e449226da39d985bae2700956..6b892ceb44ed7420fd4e2aa9110471d90f900550 100644
--- a/services/ui/view_manager/BUILD.gn
+++ b/services/ui/view_manager/BUILD.gn
@@ -5,11 +5,8 @@
import("//mojo/public/mojo_application.gni")
import("//testing/test.gni")
-mojo_native_application("view_manager") {
- output_name = "view_manager_service"
-
+source_set("common") {
sources = [
- "main.cc",
"view_associate_table.cc",
"view_associate_table.h",
"view_container_state.cc",
@@ -32,13 +29,12 @@ mojo_native_application("view_manager") {
"view_tree_state.h",
]
- deps = [
+ public_deps = [
"//base",
"//mojo/application",
"//mojo/common",
"//mojo/common:tracing_impl",
"//mojo/converters/geometry",
- "//mojo/environment:chromium",
"//mojo/public/cpp/bindings:bindings",
"//mojo/services/geometry/cpp",
"//mojo/services/gfx/composition/cpp",
@@ -47,3 +43,40 @@ mojo_native_application("view_manager") {
"//mojo/services/ui/views/interfaces",
]
}
+
+mojo_native_application("view_manager") {
+ output_name = "view_manager_service"
+
+ sources = [
+ "main.cc",
+ ]
+
+ deps = [
+ ":common",
+ "//mojo/environment:chromium",
+ ]
+}
+
+mojo_native_application("view_manager_apptests") {
+ output_name = "view_manager_apptests"
+
+ testonly = true
+
+ sources = [
+ "tests/mock_view_associate.cc",
+ "tests/mock_view_associate.h",
+ "tests/view_associate_table_test.cc",
+ "tests/view_manager_test.cc",
+ "tests/view_manager_test_base.cc",
+ "tests/view_manager_test_base.h",
+ ]
+
+ deps = [
+ ":common",
+ "//base",
+ "//mojo/application:test_support",
+ "//mojo/public/cpp/bindings",
+ "//mojo/public/cpp/bindings:bindings",
+ "//mojo/ui/associates:mocks",
+ ]
+}
« no previous file with comments | « services/ui/launcher/launcher_app.cc ('k') | services/ui/view_manager/tests/mock_view_associate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698