| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef DEVICE_USB_MOCK_USB_DEVICE_HANDLE_H_ | 5 #ifndef DEVICE_USB_MOCK_USB_DEVICE_HANDLE_H_ |
| 6 #define DEVICE_USB_MOCK_USB_DEVICE_HANDLE_H_ | 6 #define DEVICE_USB_MOCK_USB_DEVICE_HANDLE_H_ |
| 7 | 7 |
| 8 #include "device/usb/usb_device_handle.h" | 8 #include "device/usb/usb_device_handle.h" |
| 9 | 9 |
| 10 #include <stddef.h> | 10 #include <stddef.h> |
| 11 #include <stdint.h> | 11 #include <stdint.h> |
| 12 | 12 |
| 13 #include "net/base/io_buffer.h" |
| 13 #include "testing/gmock/include/gmock/gmock.h" | 14 #include "testing/gmock/include/gmock/gmock.h" |
| 14 | 15 |
| 15 namespace device { | 16 namespace device { |
| 16 | 17 |
| 17 class MockUsbDeviceHandle : public UsbDeviceHandle { | 18 class MockUsbDeviceHandle : public UsbDeviceHandle { |
| 18 public: | 19 public: |
| 19 MockUsbDeviceHandle(UsbDevice* device); | 20 MockUsbDeviceHandle(UsbDevice* device); |
| 20 | 21 |
| 21 scoped_refptr<UsbDevice> GetDevice() const override; | 22 scoped_refptr<UsbDevice> GetDevice() const override; |
| 22 MOCK_METHOD0(Close, void()); | 23 MOCK_METHOD0(Close, void()); |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 | 65 |
| 65 private: | 66 private: |
| 66 ~MockUsbDeviceHandle() override; | 67 ~MockUsbDeviceHandle() override; |
| 67 | 68 |
| 68 UsbDevice* device_; | 69 UsbDevice* device_; |
| 69 }; | 70 }; |
| 70 | 71 |
| 71 } // namespace device | 72 } // namespace device |
| 72 | 73 |
| 73 #endif // DEVICE_USB_MOCK_USB_DEVICE_HANDLE_H_ | 74 #endif // DEVICE_USB_MOCK_USB_DEVICE_HANDLE_H_ |
| OLD | NEW |