summaryrefslogtreecommitdiffstats
path: root/device/core/BUILD.gn
diff options
context:
space:
mode:
authorreillyg <reillyg@chromium.org>2015-11-24 11:57:01 -0800
committerCommit bot <commit-bot@chromium.org>2015-11-24 19:58:16 +0000
commitbcc08e21cc608fb91eb7f6549a4f9752521c9bf5 (patch)
tree8f4fb6d51eb56eb60a469a1f60cf7db0a6109e67 /device/core/BUILD.gn
parent5ab80a80e0ba46888f173a1a019b1dcb64bb016a (diff)
downloadchromium_src-bcc08e21cc608fb91eb7f6549a4f9752521c9bf5.zip
chromium_src-bcc08e21cc608fb91eb7f6549a4f9752521c9bf5.tar.gz
chromium_src-bcc08e21cc608fb91eb7f6549a4f9752521c9bf5.tar.bz2
Create shared MockDeviceClient and MockHidService classes.
Both of these classes are redefined in multiple tests (and more tests I have out for review) so this change unifies the definitions. BUG=None Review URL: https://codereview.chromium.org/1462793003 Cr-Commit-Position: refs/heads/master@{#361419}
Diffstat (limited to 'device/core/BUILD.gn')
-rw-r--r--device/core/BUILD.gn15
1 files changed, 15 insertions, 0 deletions
diff --git a/device/core/BUILD.gn b/device/core/BUILD.gn
index b7e6ac2..9aaf280 100644
--- a/device/core/BUILD.gn
+++ b/device/core/BUILD.gn
@@ -24,3 +24,18 @@ component("core") {
libs = [ "setupapi.lib" ]
}
}
+
+source_set("mocks") {
+ testonly = true
+
+ sources = [
+ "mock_device_client.cc",
+ "mock_device_client.h",
+ ]
+
+ deps = [
+ ":core",
+ "//device/hid:mocks",
+ "//device/usb:mocks",
+ ]
+}