// services/network/public/mojom/network_change_manager.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_NETWORK_PUBLIC_MOJOM_NETWORK_CHANGE_MANAGER_MOJOM_TEST_UTILS_H_
#define SERVICES_NETWORK_PUBLIC_MOJOM_NETWORK_CHANGE_MANAGER_MOJOM_TEST_UTILS_H_

#include "services/network/public/mojom/network_change_manager.mojom.h"


namespace network::mojom {


class  NetworkChangeManagerClientInterceptorForTesting : public NetworkChangeManagerClient {
  virtual NetworkChangeManagerClient* GetForwardingInterface() = 0;
  void OnInitialConnectionType(::net::NetworkChangeNotifier::ConnectionType type) override;
  void OnNetworkChanged(::net::NetworkChangeNotifier::ConnectionType type) override;
};
class  NetworkChangeManagerClientAsyncWaiter {
 public:
  explicit NetworkChangeManagerClientAsyncWaiter(NetworkChangeManagerClient* proxy);

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

  ~NetworkChangeManagerClientAsyncWaiter();

 private:
  NetworkChangeManagerClient* const proxy_;
};


class  NetworkChangeManagerInterceptorForTesting : public NetworkChangeManager {
  virtual NetworkChangeManager* GetForwardingInterface() = 0;
  void RequestNotifications(::mojo::PendingRemote<NetworkChangeManagerClient> client_remote) override;
  void OnNetworkChanged(bool dns_changed, IPAddressChangeType ip_address_change_type, bool connection_type_changed, ::net::NetworkChangeNotifier::ConnectionType new_connection_type, bool connection_subtype_changed, ConnectionSubtype new_connection_subtype) override;
};
class  NetworkChangeManagerAsyncWaiter {
 public:
  explicit NetworkChangeManagerAsyncWaiter(NetworkChangeManager* proxy);

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

  ~NetworkChangeManagerAsyncWaiter();

 private:
  NetworkChangeManager* const proxy_;
};




}  // network::mojom

#endif  // SERVICES_NETWORK_PUBLIC_MOJOM_NETWORK_CHANGE_MANAGER_MOJOM_TEST_UTILS_H_