chromium/net/socket/tls_stream_attempt_unittest.cc

// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "net/socket/tls_stream_attempt.h"

#include <memory>

#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/test/bind.h"
#include "net/base/completion_once_callback.h"
#include "net/base/host_port_pair.h"
#include "net/base/ip_endpoint.h"
#include "net/base/net_errors.h"
#include "net/cert/mock_cert_verifier.h"
#include "net/http/http_network_session.h"
#include "net/http/transport_security_state.h"
#include "net/log/net_log.h"
#include "net/proxy_resolution/configured_proxy_resolution_service.h"
#include "net/proxy_resolution/proxy_resolution_service.h"
#include "net/quic/quic_context.h"
#include "net/socket/next_proto.h"
#include "net/socket/socket_test_util.h"
#include "net/socket/tcp_stream_attempt.h"
#include "net/ssl/ssl_cert_request_info.h"
#include "net/ssl/ssl_config.h"
#include "net/ssl/test_ssl_config_service.h"
#include "net/test/gtest_util.h"
#include "net/test/test_with_task_environment.h"

namespace net {

IsError;
IsOk;

namespace {

void ValidateConnectTiming(
    const LoadTimingInfo::ConnectTiming& connect_timing) {}

class TlsStreamAttemptHelper : public TlsStreamAttempt::SSLConfigProvider {};

}  // namespace

class TlsStreamAttemptTest : public TestWithTaskEnvironment {};

TEST_F(TlsStreamAttemptTest, SuccessSync) {}

TEST_F(TlsStreamAttemptTest, SuccessAsync) {}

TEST_F(TlsStreamAttemptTest, ConnectAndConfirmDelayed) {}

TEST_F(TlsStreamAttemptTest, SSLConfigDelayed) {}

TEST_F(TlsStreamAttemptTest, TcpFail) {}

TEST_F(TlsStreamAttemptTest, TcpTimeout) {}

TEST_F(TlsStreamAttemptTest, TlsTimeout) {}

TEST_F(TlsStreamAttemptTest, CertError) {}

TEST_F(TlsStreamAttemptTest, IgnoreCertError) {}

TEST_F(TlsStreamAttemptTest, HandshakeError) {}

TEST_F(TlsStreamAttemptTest, NegotiatedHttp2) {}

TEST_F(TlsStreamAttemptTest, ClientAuthCertNeeded) {}

}  // namespace net