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

Unified Diff: components/mus/common/BUILD.gn

Issue 1695783002: IPC::ParamTraits for ui::Event (towards ui::Events over mojo IPC) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Explicate MUS_COMMON_EXPORT in header and impl Created 4 years, 10 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
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",
]
}

Powered by Google App Engine
This is Rietveld 408576698