#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "services/network/ssl_config_service_mojo.h"
#include "base/feature_list.h"
#include "base/files/file_util.h"
#include "base/memory/raw_ptr.h"
#include "base/run_loop.h"
#include "base/test/task_environment.h"
#include "base/test/test_future.h"
#include "build/build_config.h"
#include "crypto/sha2.h"
#include "mojo/public/cpp/bindings/remote.h"
#include "net/base/test_completion_callback.h"
#include "net/cert/asn1_util.h"
#include "net/cert/cert_verifier.h"
#include "net/cert/cert_verify_result.h"
#include "net/cert/crl_set.h"
#include "net/cert/test_root_certs.h"
#include "net/cert/x509_certificate.h"
#include "net/cert/x509_util.h"
#include "net/log/net_log_with_source.h"
#include "net/ssl/ssl_config.h"
#include "net/ssl/ssl_config_service.h"
#include "net/test/cert_test_util.h"
#include "net/test/gtest_util.h"
#include "net/test/test_data_directory.h"
#include "net/url_request/url_request_context.h"
#include "services/network/network_context.h"
#include "services/network/network_service.h"
#include "services/network/public/cpp/features.h"
#include "services/network/public/mojom/network_service.mojom.h"
#include "services/network/public/mojom/ssl_config.mojom.h"
#include "services/network/test/fake_test_cert_verifier_params_factory.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace network {
namespace {
class TestSSLConfigServiceObserver : public net::SSLConfigService::Observer { … };
class TestCertVerifierConfigObserver : public net::CertVerifier { … };
class NetworkServiceSSLConfigServiceTest : public testing::Test { … };
TEST_F(NetworkServiceSSLConfigServiceTest, NoSSLConfig) { … }
TEST_F(NetworkServiceSSLConfigServiceTest, Default) { … }
TEST_F(NetworkServiceSSLConfigServiceTest, DefaultCertConfig) { … }
TEST_F(NetworkServiceSSLConfigServiceTest, RevCheckingEnabled) { … }
TEST_F(NetworkServiceSSLConfigServiceTest,
RevCheckingRequiredLocalTrustAnchors) { … }
TEST_F(NetworkServiceSSLConfigServiceTest, Sha1LocalAnchorsEnabled) { … }
TEST_F(NetworkServiceSSLConfigServiceTest, SymantecEnforcementDisabled) { … }
TEST_F(NetworkServiceSSLConfigServiceTest, SSLVersion) { … }
TEST_F(NetworkServiceSSLConfigServiceTest, InitialConfigDisableCipherSuite) { … }
TEST_F(NetworkServiceSSLConfigServiceTest,
InitialConfigDisableTwoCipherSuites) { … }
TEST_F(NetworkServiceSSLConfigServiceTest, CanShareConnectionWithClientCerts) { … }
}
}