Index: components/mus/example/wm/BUILD.gn |
diff --git a/components/mus/example/wm/BUILD.gn b/components/mus/example/wm/BUILD.gn |
index 8a7269044312b88e273e9d72fd7cec533857c919..81dc305b2de5762af5ac68ab51783ee8f4876a1c 100644 |
--- a/components/mus/example/wm/BUILD.gn |
+++ b/components/mus/example/wm/BUILD.gn |
@@ -14,13 +14,12 @@ group("wm") { |
] |
} |
-mojo_native_application("example_wm") { |
+source_set("example_wm_lib") { |
sources = [ |
"background_layout.cc", |
"background_layout.h", |
"layout_manager.cc", |
"layout_manager.h", |
- "main.cc", |
"move_loop.cc", |
"move_loop.h", |
"property_util.cc", |
@@ -44,6 +43,17 @@ mojo_native_application("example_wm") { |
"//mojo/common:common_base", |
"//mojo/converters/geometry", |
] |
+} |
+ |
+mojo_native_application("example_wm") { |
+ sources = [ |
+ "main.cc", |
+ ] |
+ |
+ deps = [ |
+ ":example_wm_lib", |
+ "//mojo/application/public/cpp", |
+ ] |
data_deps = [ |
"//components/mus", |
@@ -76,3 +86,29 @@ mojo_native_application("apptests") { |
":example_wm", |
] |
} |
+ |
+source_set("unittests") { |
+ testonly = true |
+ |
+ sources = [ |
+ "move_loop_unittest.cc", |
+ ] |
+ |
+ deps = [ |
+ ":example_wm_lib", |
+ "//base", |
+ "//base/test:test_config", |
+ "//components/mus/public/cpp", |
+ "//components/mus/public/cpp/tests:unittest_support", |
+ "//mojo/converters/geometry", |
+ "//mojo/converters/input_events", |
+ "//testing/gtest", |
+ "//third_party/mojo/src/mojo/public/cpp/system", |
+ "//third_party/mojo/src/mojo/edk/system", |
+ "//ui/events", |
+ "//ui/gfx/geometry", |
+ "//ui/gfx:test_support", |
+ "//ui/mojo/geometry:interfaces", |
+ "//ui/mojo/geometry:util", |
+ ] |
+} |