// services/device/public/mojom/input_service.mojom-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 SERVICES_DEVICE_PUBLIC_MOJOM_INPUT_SERVICE_MOJOM_TEST_UTILS_H_
#define SERVICES_DEVICE_PUBLIC_MOJOM_INPUT_SERVICE_MOJOM_TEST_UTILS_H_

#include "services/device/public/mojom/input_service.mojom.h"


namespace device::mojom {


class  InputDeviceManagerClientInterceptorForTesting : public InputDeviceManagerClient {
  virtual InputDeviceManagerClient* GetForwardingInterface() = 0;
  void InputDeviceAdded(InputDeviceInfoPtr device_info) override;
  void InputDeviceRemoved(const std::string& id) override;
};
class  InputDeviceManagerClientAsyncWaiter {
 public:
  explicit InputDeviceManagerClientAsyncWaiter(InputDeviceManagerClient* proxy);

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

  ~InputDeviceManagerClientAsyncWaiter();

 private:
  InputDeviceManagerClient* const proxy_;
};


class  InputDeviceManagerInterceptorForTesting : public InputDeviceManager {
  virtual InputDeviceManager* GetForwardingInterface() = 0;
  void GetDevicesAndSetClient(::mojo::PendingAssociatedRemote<InputDeviceManagerClient> client, GetDevicesAndSetClientCallback callback) override;
  void GetDevices(GetDevicesCallback callback) override;
};
class  InputDeviceManagerAsyncWaiter {
 public:
  explicit InputDeviceManagerAsyncWaiter(InputDeviceManager* proxy);

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

  ~InputDeviceManagerAsyncWaiter();
  void GetDevicesAndSetClient(
      ::mojo::PendingAssociatedRemote<InputDeviceManagerClient> client, std::vector<InputDeviceInfoPtr>* out_devices);
  std::vector<InputDeviceInfoPtr> GetDevicesAndSetClient(::mojo::PendingAssociatedRemote<InputDeviceManagerClient> client);
  void GetDevices(
      std::vector<InputDeviceInfoPtr>* out_devices);
  std::vector<InputDeviceInfoPtr> GetDevices();

 private:
  InputDeviceManager* const proxy_;
};




}  // device::mojom

#endif  // SERVICES_DEVICE_PUBLIC_MOJOM_INPUT_SERVICE_MOJOM_TEST_UTILS_H_