Index: components/mus/common/BUILD.gn |
diff --git a/components/mus/common/BUILD.gn b/components/mus/common/BUILD.gn |
index d0cc5d7152c9284f9d0b169e5c9a37aa093e101a..6f765c1e7c599405c280450db5fc7fa201e3bec9 100644 |
--- a/components/mus/common/BUILD.gn |
+++ b/components/mus/common/BUILD.gn |
@@ -2,16 +2,49 @@ |
# Use of this source code is governed by a BSD-style license that can be |
# found in the LICENSE file. |
-source_set("common") { |
+import("//testing/test.gni") |
+ |
+component("mus_common") { |
sources = [ |
"args.cc", |
"args.h", |
+ "event_param_traits.cc", |
+ "event_param_traits.h", |
+ "event_param_traits_macros.h", |
+ "mus_common_export.h", |
"transient_window_utils.h", |
"types.h", |
"util.h", |
"window_tracker.h", |
] |
+ |
+ defines = [ "MUS_IPC_IMPLEMENTATION" ] |
+ |
deps = [ |
"//components/mus/public/interfaces", |
+ "//ipc:ipc", |
+ "//mojo/public/c/system:for_component", |
+ "//ui/events:events", |
+ "//ui/gfx/ipc", |
+ ] |
+} |
+ |
+test("mus_common_unittests") { |
+ sources = [ |
+ "event_param_traits_unittest.cc", |
+ ] |
+ public_deps = [ |
+ ":mus_common", |
+ ] |
+ deps = [ |
+ "//base", |
+ "//base/test:run_all_unittests", |
+ "//base/test:test_config", |
+ "//ipc:ipc", |
+ "//mojo/edk/test:test_support", |
+ "//testing/gtest", |
+ "//ui/events:events", |
+ "//ui/gfx:test_support", |
+ "//ui/gfx/ipc", |
] |
} |