#include "content/browser/usb/usb_test_utils.h"
#include "base/functional/callback.h"
#include "services/device/public/mojom/usb_device.mojom.h"
#include "services/device/public/mojom/usb_enumeration_options.mojom.h"
namespace content {
MockDeviceManagerClient::MockDeviceManagerClient() = default;
MockDeviceManagerClient::~MockDeviceManagerClient() = default;
MockUsbDelegate::MockUsbDelegate() = default;
MockUsbDelegate::~MockUsbDelegate() = default;
std::unique_ptr<UsbChooser> MockUsbDelegate::RunChooser(
RenderFrameHost& frame,
blink::mojom::WebUsbRequestDeviceOptionsPtr options,
blink::mojom::WebUsbService::GetPermissionCallback callback) { … }
void MockUsbDelegate::AddObserver(BrowserContext* browser_context,
Observer* observer) { … }
void MockUsbDelegate::RemoveObserver(BrowserContext* browser_context,
Observer* observer) { … }
void MockUsbDelegate::OnDeviceAdded(
const device::mojom::UsbDeviceInfo& device) { … }
void MockUsbDelegate::OnDeviceRemoved(
const device::mojom::UsbDeviceInfo& device) { … }
void MockUsbDelegate::OnPermissionRevoked(const url::Origin& origin) { … }
void MockUsbDelegate::OnDeviceManagerConnectionError() { … }
void MockUsbDelegate::SetAssertBrowserContext(bool assert_browser_context) { … }
}