Chromium Code Reviews| 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..8c3e87475a6e8aed999d4aa15eed72d81332fb84 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,41 @@ 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", |
|
jeffbrown
2016/05/11 23:44:16
I don't think this target exits, or isn't in this
mikejurka
2016/05/16 23:35:18
i'm re-using a pre-existing mock, it was in the tr
|
| + "//services/ui/view_manager", |
|
jeffbrown
2016/05/11 23:44:16
Do you need this dependency given that you have :c
mikejurka
2016/05/16 23:35:18
Done.
|
| + ] |
| +} |