// third_party/blink/public/mojom/usb/web_usb_service.mojom-blink-test-utils.h is auto generated by mojom_bindings_generator.py, do not edit

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef THIRD_PARTY_BLINK_PUBLIC_MOJOM_USB_WEB_USB_SERVICE_MOJOM_BLINK_TEST_UTILS_H_
#define THIRD_PARTY_BLINK_PUBLIC_MOJOM_USB_WEB_USB_SERVICE_MOJOM_BLINK_TEST_UTILS_H_

#include "third_party/blink/public/mojom/usb/web_usb_service.mojom-blink.h"
#include "third_party/blink/renderer/platform/platform_export.h"


namespace blink::mojom::blink {


class PLATFORM_EXPORT WebUsbServiceInterceptorForTesting : public WebUsbService {
  virtual WebUsbService* GetForwardingInterface() = 0;
  void GetDevices(GetDevicesCallback callback) override;
  void GetDevice(const ::blink::String& guid, ::mojo::PendingReceiver<::device::mojom::blink::UsbDevice> device_receiver) override;
  void GetPermission(WebUsbRequestDeviceOptionsPtr options, GetPermissionCallback callback) override;
  void ForgetDevice(const ::blink::String& guid, ForgetDeviceCallback callback) override;
  void SetClient(::mojo::PendingAssociatedRemote<::device::mojom::blink::UsbDeviceManagerClient> client) override;
};
class PLATFORM_EXPORT WebUsbServiceAsyncWaiter {
 public:
  explicit WebUsbServiceAsyncWaiter(WebUsbService* proxy);

  WebUsbServiceAsyncWaiter(const WebUsbServiceAsyncWaiter&) = delete;
  WebUsbServiceAsyncWaiter& operator=(const WebUsbServiceAsyncWaiter&) = delete;

  ~WebUsbServiceAsyncWaiter();
  void GetDevices(
      ::blink::Vector<::device::mojom::blink::UsbDeviceInfoPtr>* out_results);
  ::blink::Vector<::device::mojom::blink::UsbDeviceInfoPtr> GetDevices();
  void GetPermission(
      WebUsbRequestDeviceOptionsPtr options, ::device::mojom::blink::UsbDeviceInfoPtr* out_result);
  ::device::mojom::blink::UsbDeviceInfoPtr GetPermission(WebUsbRequestDeviceOptionsPtr options);
  void ForgetDevice(
      const ::blink::String& guid);
  

 private:
  WebUsbService* const proxy_;
};




}  // blink::mojom::blink

#endif  // THIRD_PARTY_BLINK_PUBLIC_MOJOM_USB_WEB_USB_SERVICE_MOJOM_BLINK_TEST_UTILS_H_