blob: 2c0f5abf169dd047e34e52a0080596ecfb039917 [file] [log] [blame]
// services/network/public/mojom/proxy_lookup_client.mojom-test-utils.h is auto generated by mojom_bindings_generator.py, do not edit
// Copyright 2019 The Chromium Authors. All rights reserved.
// 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_PROXY_LOOKUP_CLIENT_MOJOM_TEST_UTILS_H_
#define SERVICES_NETWORK_PUBLIC_MOJOM_PROXY_LOOKUP_CLIENT_MOJOM_TEST_UTILS_H_
#include "services/network/public/mojom/proxy_lookup_client.mojom.h"
namespace network {
namespace mojom {
class ProxyLookupClientInterceptorForTesting : public ProxyLookupClient {
virtual ProxyLookupClient* GetForwardingInterface() = 0;
void OnProxyLookupComplete(int32_t net_error, const absl::optional<::net::ProxyInfo>& proxy_info) override;
};
class ProxyLookupClientAsyncWaiter {
public:
explicit ProxyLookupClientAsyncWaiter(ProxyLookupClient* proxy);
ProxyLookupClientAsyncWaiter(const ProxyLookupClientAsyncWaiter&) = delete;
ProxyLookupClientAsyncWaiter& operator=(const ProxyLookupClientAsyncWaiter&) = delete;
~ProxyLookupClientAsyncWaiter();
private:
ProxyLookupClient* const proxy_;
};
} // namespace mojom
} // namespace network
#endif // SERVICES_NETWORK_PUBLIC_MOJOM_PROXY_LOOKUP_CLIENT_MOJOM_TEST_UTILS_H_