| Index: device/usb/mock_usb_device.h
|
| diff --git a/device/usb/mock_usb_device.h b/device/usb/mock_usb_device.h
|
| index 6c6241a5ad0ca9d04a220eb8ab4a87861cd5d437..a9a6cd0ca6f32fa5234d5e85f8891c5df7784968 100644
|
| --- a/device/usb/mock_usb_device.h
|
| +++ b/device/usb/mock_usb_device.h
|
| @@ -7,11 +7,13 @@
|
|
|
| #include <stdint.h>
|
|
|
| +#include <memory>
|
| #include <string>
|
| #include <vector>
|
|
|
| #include "device/usb/usb_device.h"
|
| #include "device/usb/usb_device_handle.h"
|
| +#include "device/usb/webusb_descriptors.h"
|
| #include "testing/gmock/include/gmock/gmock.h"
|
|
|
| namespace device {
|
| @@ -44,6 +46,11 @@ class MockUsbDevice : public UsbDevice {
|
|
|
| void AddMockConfig(const UsbConfigDescriptor& config);
|
|
|
| + void set_webusb_allowed_origins(
|
| + std::unique_ptr<WebUsbAllowedOrigins> webusb_allowed_origins) {
|
| + webusb_allowed_origins_ = std::move(webusb_allowed_origins);
|
| + }
|
| +
|
| // Public wrappers around protected functions.
|
| void ActiveConfigurationChanged(int configuration_value);
|
| void NotifyDeviceRemoved();
|
|
|