#include <string>
#include <string_view>
#include <utility>
#include <vector>
#include "base/containers/span.h"
#include "base/run_loop.h"
#include "base/strings/stringprintf.h"
#include "base/test/bind.h"
#include "base/test/task_environment.h"
#include "components/webrtc/fake_ssl_client_socket.h"
#include "mojo/public/cpp/bindings/pending_receiver.h"
#include "mojo/public/cpp/bindings/pending_remote.h"
#include "mojo/public/cpp/bindings/receiver.h"
#include "mojo/public/cpp/bindings/remote.h"
#include "mojo/public/cpp/system/data_pipe_utils.h"
#include "net/base/net_errors.h"
#include "net/base/network_isolation_key.h"
#include "net/base/test_completion_callback.h"
#include "net/dns/mock_host_resolver.h"
#include "net/proxy_resolution/configured_proxy_resolution_service.h"
#include "net/socket/socket_test_util.h"
#include "net/traffic_annotation/network_traffic_annotation_test_helper.h"
#include "net/url_request/url_request_context_builder.h"
#include "net/url_request/url_request_test_util.h"
#include "services/network/mojo_socket_test_util.h"
#include "services/network/proxy_resolving_socket_factory_mojo.h"
#include "services/network/proxy_resolving_socket_mojo.h"
#include "services/network/socket_factory.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace network {
class ProxyResolvingSocketTestBase { … };
class ProxyResolvingSocketTest : public ProxyResolvingSocketTestBase,
public testing::TestWithParam<bool> { … };
INSTANTIATE_TEST_SUITE_P(…);
TEST_P(ProxyResolvingSocketTest, ConnectToProxy) { … }
TEST_P(ProxyResolvingSocketTest, ConnectError) { … }
TEST_P(ProxyResolvingSocketTest, BasicReadWrite) { … }
class ProxyResolvingSocketMojoTest : public ProxyResolvingSocketTestBase,
public testing::Test { … };
TEST_F(ProxyResolvingSocketMojoTest, ConnectWithFakeTLSHandshake) { … }
TEST_F(ProxyResolvingSocketMojoTest, SocketDestroyedBeforeConnectCompletes) { … }
TEST_F(ProxyResolvingSocketMojoTest, SocketObserver) { … }
}