chromium/third_party/boringssl/src/pki/crl_unittest.cc

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "crl.h"

#include <string_view>

#include <gtest/gtest.h>
#include <openssl/pool.h>
#include "cert_errors.h"
#include "parsed_certificate.h"
#include "string_util.h"
#include "test_helpers.h"

BSSL_NAMESPACE_BEGIN

namespace {

constexpr int64_t kAgeOneWeek =;

std::string GetFilePath(std::string_view file_name) {}

std::shared_ptr<const ParsedCertificate> ParseCertificate(
    std::string_view data) {}

class CheckCRLTest : public ::testing::TestWithParam<const char *> {};

// Test prefix naming scheme:
//   good = valid CRL, cert affirmatively not revoked
//   revoked = valid CRL, cert affirmatively revoked
//   bad = valid CRL, but cert status is unknown (cases like unhandled features,
//           mismatching issuer or signature, etc)
//   invalid = corrupt or violates some spec requirement
constexpr char const *kTestParams[] =;

struct PrintTestName {};

INSTANTIATE_TEST_SUITE_P();

TEST_P(CheckCRLTest, FromFile) {}

}  // namespace

BSSL_NAMESPACE_END