// services/network/public/mojom/connection_change_observer_client.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 SERVICES_NETWORK_PUBLIC_MOJOM_CONNECTION_CHANGE_OBSERVER_CLIENT_MOJOM_BLINK_TEST_UTILS_H_
#define SERVICES_NETWORK_PUBLIC_MOJOM_CONNECTION_CHANGE_OBSERVER_CLIENT_MOJOM_BLINK_TEST_UTILS_H_

#include "services/network/public/mojom/connection_change_observer_client.mojom-blink.h"
#include "third_party/blink/public/platform/web_common.h"


namespace network::mojom::blink {


class BLINK_PLATFORM_EXPORT ConnectionChangeObserverClientInterceptorForTesting : public ConnectionChangeObserverClient {
  virtual ConnectionChangeObserverClient* GetForwardingInterface() = 0;
  void OnSessionClosed(bool was_ever_used_to_create_streams) override;
  void OnConnectionEstablished(EstablishedConnectionInfoPtr info) override;
  void OnNetworkEvent(NetworkChangeEvent event) override;
  void OnConnectionFailed() override;
};
class BLINK_PLATFORM_EXPORT ConnectionChangeObserverClientAsyncWaiter {
 public:
  explicit ConnectionChangeObserverClientAsyncWaiter(ConnectionChangeObserverClient* proxy);

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

  ~ConnectionChangeObserverClientAsyncWaiter();

 private:
  ConnectionChangeObserverClient* const proxy_;
};




}  // network::mojom::blink

#endif  // SERVICES_NETWORK_PUBLIC_MOJOM_CONNECTION_CHANGE_OBSERVER_CLIENT_MOJOM_BLINK_TEST_UTILS_H_