Index: device/usb/mock_usb_device_handle.cc |
diff --git a/device/usb/mock_usb_device_handle.cc b/device/usb/mock_usb_device_handle.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..61bdf9436c2aeb6fead91aa76c73af5a72884649 |
--- /dev/null |
+++ b/device/usb/mock_usb_device_handle.cc |
@@ -0,0 +1,21 @@ |
+// Copyright 2015 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "device/usb/mock_usb_device_handle.h" |
+ |
+#include "device/usb/usb_device.h" |
+ |
+namespace device { |
+ |
+MockUsbDeviceHandle::MockUsbDeviceHandle(UsbDevice* device) : device_(device) { |
+} |
+ |
+scoped_refptr<UsbDevice> MockUsbDeviceHandle::GetDevice() const { |
+ return device_; |
+} |
+ |
+MockUsbDeviceHandle::~MockUsbDeviceHandle() { |
+} |
+ |
+} // namespace device |