| 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",
|
| + ]
|
| +}
|
|
|