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

Unified Diff: device/usb/BUILD.gn

Issue 1144493003: Extract //device/usb mocks so that they can be shared. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Android and GN builds for real. Created 5 years, 7 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 | « device/device_tests.gyp ('k') | device/usb/mock_usb_device.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/usb/BUILD.gn
diff --git a/device/usb/BUILD.gn b/device/usb/BUILD.gn
index d989ecbeeeafc0631cdb33bce91f1bc5aaa0039c..aa74a10638df3019d48935907bfacfb732442a57 100644
--- a/device/usb/BUILD.gn
+++ b/device/usb/BUILD.gn
@@ -51,6 +51,25 @@ source_set("usb") {
}
}
+source_set("mocks") {
+ testonly = true
+
+ sources = [
+ "mock_usb_device.cc",
+ "mock_usb_device.h",
+ "mock_usb_device_handle.cc",
+ "mock_usb_device_handle.h",
+ "mock_usb_service.cc",
+ "mock_usb_service.h",
+ ]
+
+ deps = [
+ "//base",
+ "//testing/gmock",
+ ":usb",
+ ]
+}
+
action("usb_device_ids") {
script = "//device/usb/tools/usb_ids.py"
inputs = [
« no previous file with comments | « device/device_tests.gyp ('k') | device/usb/mock_usb_device.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698