// Copyright 2018 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CONTENT_PUBLIC_TEST_CONTENT_MOCK_CERT_VERIFIER_H_ #define CONTENT_PUBLIC_TEST_CONTENT_MOCK_CERT_VERIFIER_H_ #include <memory> #include "base/memory/raw_ptr.h" #include "mojo/public/cpp/bindings/remote.h" #include "net/cert/mock_cert_verifier.h" #include "services/network/public/mojom/network_service_test.mojom.h" namespace base { class CommandLine; } namespace net { class MockCertVerifier; } namespace content { // ContentMockCertVerifier allows tests to force certificate verification // results for requests made with any BrowserContext's main request context // (such as navigations). To do so, tests can use the MockCertVerifier exposed // via ContentMockCertVerifier::mock_cert_verifier(). This class ensures the // mocking works correctly regardless of whether the network service is enabled // or disabled, or running in-process. class ContentMockCertVerifier { … }; } // namespace content #endif // CONTENT_PUBLIC_TEST_CONTENT_MOCK_CERT_VERIFIER_H_