chromium/net/cert/internal/revocation_checker_unittest.cc

// Copyright 2017 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/internal/revocation_checker.h"

#include <string_view>

#include "base/time/time.h"
#include "net/cert/mock_cert_net_fetcher.h"
#include "net/test/cert_builder.h"
#include "net/test/revocation_builder.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/boringssl/src/pki/cert_errors.h"
#include "third_party/boringssl/src/pki/common_cert_errors.h"
#include "third_party/boringssl/src/pki/parse_certificate.h"
#include "third_party/boringssl/src/pki/parsed_certificate.h"
#include "url/gurl.h"

namespace net {

namespace {

_;
ByMove;
Mock;
Return;
StrictMock;

bool AddCertsToList(std::vector<CertBuilder*> builders,
                    bssl::ParsedCertificateList* out_certs) {}

TEST(RevocationChecker, NoRevocationMechanism) {}

TEST(RevocationChecker, ValidCRL) {}

TEST(RevocationChecker, RevokedCRL) {}

TEST(RevocationChecker, CRLRequestFails) {}

TEST(RevocationChecker, CRLNonHttpUrl) {}

TEST(RevocationChecker, SkipEntireInvalidCRLDistributionPoints) {}

TEST(RevocationChecker, SkipUnsupportedCRLDistPointWithNonUriFullname) {}

TEST(RevocationChecker, SkipUnsupportedCRLDistPointWithReasons) {}

TEST(RevocationChecker, SkipUnsupportedCRLDistPointWithCrlIssuer) {}

// TODO(mattm): Add more unittests (deadlines, OCSP, stapled OCSP, CRLSets).
// Currently those features are exercised indirectly through tests in
// url_request_unittest.cc, cert_verify_proc_unittest.cc, etc.

}  // namespace

}  // namespace net