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

Unified Diff: services/ui/input_devices/BUILD.gn

Issue 2196563004: Add tests for InputDeviceServer/InputDeviceClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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: services/ui/input_devices/BUILD.gn
diff --git a/services/ui/input_devices/BUILD.gn b/services/ui/input_devices/BUILD.gn
index cb5ab9d4d359636ad11ddb8dfc573aeec0427acc..e1da947c507ce84a05ad38bee419cc5eb1eda65a 100644
--- a/services/ui/input_devices/BUILD.gn
+++ b/services/ui/input_devices/BUILD.gn
@@ -2,6 +2,9 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+import("//services/shell/public/service_manifest.gni")
+import("//testing/test.gni")
+
source_set("input_devices") {
sources = [
"input_device_server.cc",
@@ -19,3 +22,25 @@ source_set("input_devices") {
"//services/ui/public/interfaces/input_devices",
]
}
+
+test("input_device_unittests") {
+ testonly = true
+
+ sources = [
+ "input_device_unittests.cc",
+ ]
+
+ deps = [
+ ":input_devices",
+ "//base",
+ "//base/test:test_support",
+ "//services/shell/public/cpp",
+ "//services/shell/public/cpp:service_test_support",
+ "//services/ui/common:run_all_shelltests",
sadrul 2016/08/02 15:16:14 You should use //base/test:run_all_unittests inste
kylechar 2016/08/02 17:46:57 The Mojo binding stuff doesn't work with //base/te
sadrul 2016/08/03 16:02:53 Because this is not a shell-test, you shouldn't ne
+ "//services/ui/public/cpp/input_devices",
+ "//services/ui/public/interfaces/input_devices",
+ "//skia",
+ "//testing/gtest",
+ "//ui/events/devices",
+ ]
+}
« no previous file with comments | « no previous file | services/ui/input_devices/input_device_server.cc » ('j') | services/ui/input_devices/input_device_unittests.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698