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

Unified Diff: extensions/browser/api/usb/usb_apitest.cc

Issue 463493006: Add chrome.usbPrivate API for use by USB device WEBUI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change "Google Inc." to "Test Manufacturer". Created 6 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 | « device/usb/usb_service_unittest.cc ('k') | extensions/browser/api/usb_private/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/api/usb/usb_apitest.cc
diff --git a/extensions/browser/api/usb/usb_apitest.cc b/extensions/browser/api/usb/usb_apitest.cc
index 215475f4e4f6e22a9d64e61e48534b836b450ab9..ee2fc6d1f4a0bb4ef65ddeac61376a67aed5d2ff 100644
--- a/extensions/browser/api/usb/usb_apitest.cc
+++ b/extensions/browser/api/usb/usb_apitest.cc
@@ -90,6 +90,8 @@ class MockUsbDeviceHandle : public UsbDeviceHandle {
MOCK_METHOD1(ReleaseInterface, bool(const int interface_number));
MOCK_METHOD2(SetInterfaceAlternateSetting,
bool(const int interface_number, const int alternate_setting));
+ MOCK_METHOD1(GetManufacturer, bool(base::string16* manufacturer));
+ MOCK_METHOD1(GetProduct, bool(base::string16* product));
MOCK_METHOD1(GetSerial, bool(base::string16* serial));
virtual scoped_refptr<UsbDevice> GetDevice() const OVERRIDE {
« no previous file with comments | « device/usb/usb_service_unittest.cc ('k') | extensions/browser/api/usb_private/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698