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

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

Issue 270323003: Extracted UsbConfigDescriptor, UsbInterfaceDescriptor and helper classes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
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 335258de1349ac24735eb00d5f44c1c3cc73e2e6..785031768a053688c78cb46d9358eee2b0b74eba 100644
--- a/extensions/browser/api/usb/usb_apitest.cc
+++ b/extensions/browser/api/usb/usb_apitest.cc
@@ -19,6 +19,7 @@ using usb_service::UsbConfigDescriptor;
using usb_service::UsbDevice;
using usb_service::UsbDeviceHandle;
using usb_service::UsbEndpointDirection;
+using usb_service::UsbInterfaceDescriptor;
using usb_service::UsbService;
using usb_service::UsbTransferCallback;
@@ -93,6 +94,8 @@ class MockUsbDeviceHandle : public UsbDeviceHandle {
class MockUsbConfigDescriptor : public UsbConfigDescriptor {
public:
MOCK_CONST_METHOD0(GetNumInterfaces, size_t());
+ MOCK_CONST_METHOD1(GetInterface,
+ scoped_refptr<const UsbInterfaceDescriptor>(size_t index));
protected:
virtual ~MockUsbConfigDescriptor() {}
« components/usb_service/usb_interface.h ('K') | « components/usb_service/usb_interface_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698