| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 const std::vector<uint32_t>& packet_lengths, | 57 const std::vector<uint32_t>& packet_lengths, |
| 58 unsigned int timeout, | 58 unsigned int timeout, |
| 59 const IsochronousTransferCallback& callback)); | 59 const IsochronousTransferCallback& callback)); |
| 60 MOCK_METHOD6(GenericTransfer, | 60 MOCK_METHOD6(GenericTransfer, |
| 61 void(UsbEndpointDirection direction, | 61 void(UsbEndpointDirection direction, |
| 62 uint8_t endpoint, | 62 uint8_t endpoint, |
| 63 scoped_refptr<net::IOBuffer> buffer, | 63 scoped_refptr<net::IOBuffer> buffer, |
| 64 size_t length, | 64 size_t length, |
| 65 unsigned int timeout, | 65 unsigned int timeout, |
| 66 const TransferCallback& callback)); | 66 const TransferCallback& callback)); |
| 67 MOCK_METHOD2(FindInterfaceByEndpoint, | 67 MOCK_METHOD1(FindInterfaceByEndpoint, |
| 68 bool(uint8_t endpoint_address, uint8_t* interface_number)); | 68 const UsbInterfaceDescriptor*(uint8_t endpoint_address)); |
| 69 | 69 |
| 70 private: | 70 private: |
| 71 ~MockUsbDeviceHandle() override; | 71 ~MockUsbDeviceHandle() override; |
| 72 | 72 |
| 73 UsbDevice* device_; | 73 UsbDevice* device_; |
| 74 }; | 74 }; |
| 75 | 75 |
| 76 } // namespace device | 76 } // namespace device |
| 77 | 77 |
| 78 #endif // DEVICE_USB_MOCK_USB_DEVICE_HANDLE_H_ | 78 #endif // DEVICE_USB_MOCK_USB_DEVICE_HANDLE_H_ |
| OLD | NEW |