#include "net/cert/caching_cert_verifier.h"
#include <memory>
#include "base/files/file_path.h"
#include "base/memory/ref_counted.h"
#include "base/test/task_environment.h"
#include "net/base/net_errors.h"
#include "net/base/test_completion_callback.h"
#include "net/cert/cert_database.h"
#include "net/cert/cert_verifier.h"
#include "net/cert/cert_verify_result.h"
#include "net/cert/mock_cert_verifier.h"
#include "net/cert/x509_certificate.h"
#include "net/cert/x509_util.h"
#include "net/log/net_log_with_source.h"
#include "net/test/cert_test_util.h"
#include "net/test/ct_test_util.h"
#include "net/test/gtest_util.h"
#include "net/test/test_data_directory.h"
#include "net/test/test_with_task_environment.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
IsError;
IsOk;
_;
Mock;
Return;
ReturnRef;
namespace net {
class CachingCertVerifierTest : public TestWithTaskEnvironment { … };
TEST_F(CachingCertVerifierTest, CacheHit) { … }
TEST_F(CachingCertVerifierTest, CacheHitCTResultsCached) { … }
TEST_F(CachingCertVerifierTest, DifferentCACerts) { … }
TEST_F(CachingCertVerifierTest, ObserverIsForwarded) { … }
namespace {
enum class ChangeType { … };
}
class CachingCertVerifierCacheClearingTest
: public testing::TestWithParam<ChangeType> { … };
TEST_P(CachingCertVerifierCacheClearingTest, CacheClearedSyncVerification) { … }
TEST_P(CachingCertVerifierCacheClearingTest, CacheClearedAsyncVerification) { … }
INSTANTIATE_TEST_SUITE_P(…);
}