chromium/net/cert/caching_cert_verifier_unittest.cc

// Copyright 2016 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/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) {}

// Tests the same server certificate with different intermediate CA
// certificates.  These should be treated as different certificate chains even
// though the two X509Certificate objects contain the same server certificate.
TEST_F(CachingCertVerifierTest, DifferentCACerts) {}

TEST_F(CachingCertVerifierTest, ObserverIsForwarded) {}

namespace {
enum class ChangeType {};
}  // namespace

class CachingCertVerifierCacheClearingTest
    : public testing::TestWithParam<ChangeType> {};

TEST_P(CachingCertVerifierCacheClearingTest, CacheClearedSyncVerification) {}

TEST_P(CachingCertVerifierCacheClearingTest, CacheClearedAsyncVerification) {}

INSTANTIATE_TEST_SUITE_P();

}  // namespace net