Index: device/usb/mock_usb_device_handle.h |
diff --git a/device/usb/mock_usb_device_handle.h b/device/usb/mock_usb_device_handle.h |
index dfa798ea381ba4cc123e1248685b1334b538488f..a1e32f981b9388dff3fdfc2357ab371d3f2905ad 100644 |
--- a/device/usb/mock_usb_device_handle.h |
+++ b/device/usb/mock_usb_device_handle.h |
@@ -5,18 +5,19 @@ |
#ifndef DEVICE_USB_MOCK_USB_DEVICE_HANDLE_H_ |
#define DEVICE_USB_MOCK_USB_DEVICE_HANDLE_H_ |
-#include "device/usb/usb_device_handle.h" |
- |
#include <stddef.h> |
#include <stdint.h> |
+#include <vector> |
+ |
+#include "device/usb/usb_device_handle.h" |
#include "testing/gmock/include/gmock/gmock.h" |
namespace device { |
class MockUsbDeviceHandle : public UsbDeviceHandle { |
public: |
- MockUsbDeviceHandle(UsbDevice* device); |
+ explicit MockUsbDeviceHandle(UsbDevice* device); |
scoped_refptr<UsbDevice> GetDevice() const override; |
MOCK_METHOD0(Close, void()); |
@@ -43,15 +44,17 @@ class MockUsbDeviceHandle : public UsbDeviceHandle { |
size_t length, |
unsigned int timeout, |
const TransferCallback& callback)); |
- MOCK_METHOD8(IsochronousTransfer, |
- void(UsbEndpointDirection direction, |
- uint8_t endpoint, |
+ MOCK_METHOD4(IsochronousTransferIn, |
+ void(uint8_t endpoint, |
+ const std::vector<uint32_t>& packet_lengths, |
+ unsigned int timeout, |
+ const IsochronousTransferCallback& callback)); |
+ MOCK_METHOD5(IsochronousTransferOut, |
+ void(uint8_t endpoint, |
scoped_refptr<net::IOBuffer> buffer, |
- size_t length, |
- unsigned int packets, |
- unsigned int packet_length, |
+ const std::vector<uint32_t>& packet_lengths, |
unsigned int timeout, |
- const TransferCallback& callback)); |
+ const IsochronousTransferCallback& callback)); |
MOCK_METHOD6(GenericTransfer, |
void(UsbEndpointDirection direction, |
uint8_t endpoint, |