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

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: Switch test runner. Created 4 years, 4 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
« no previous file with comments | « no previous file | services/ui/input_devices/input_device_server.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..bd9e5a2a55dbc79dabd138a91516c99cb26bbbc1 100644
--- a/services/ui/input_devices/BUILD.gn
+++ b/services/ui/input_devices/BUILD.gn
@@ -2,6 +2,8 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+import("//testing/test.gni")
+
source_set("input_devices") {
sources = [
"input_device_server.cc",
@@ -10,8 +12,7 @@ source_set("input_devices") {
deps = [
"//base",
- "//services/shell/public/cpp:sources",
- "//skia",
+ "//services/shell/public/cpp",
"//ui/events/devices",
]
@@ -19,3 +20,24 @@ 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",
+ "//mojo/edk/test:run_all_unittests",
+ "//services/shell/public/cpp",
+ "//services/shell/public/cpp:service_test_support",
+ "//services/ui/public/cpp/input_devices",
+ "//services/ui/public/interfaces/input_devices",
+ "//testing/gtest",
+ "//ui/events/devices",
+ ]
+}
« no previous file with comments | « no previous file | services/ui/input_devices/input_device_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698