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

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

#include "certificate_policies.h"

#include <gtest/gtest.h>
#include "input.h"
#include "parser.h"
#include "test_helpers.h"

BSSL_NAMESPACE_BEGIN
namespace {

::testing::AssertionResult LoadTestData(const std::string &name,
                                        std::string *result) {}

const uint8_t policy_1_2_3_der[] =;
const uint8_t policy_1_2_4_der[] =;

class ParseCertificatePoliciesExtensionOidsTest
    : public testing::TestWithParam<bool> {};

// Run the tests with all possible values for
// |fail_parsing_unknown_qualifier_oids|.
INSTANTIATE_TEST_SUITE_P();

TEST_P(ParseCertificatePoliciesExtensionOidsTest, InvalidEmpty) {}

TEST_P(ParseCertificatePoliciesExtensionOidsTest, InvalidIdentifierNotOid) {}

TEST_P(ParseCertificatePoliciesExtensionOidsTest, AnyPolicy) {}

TEST_P(ParseCertificatePoliciesExtensionOidsTest, AnyPolicyWithQualifier) {}

TEST_P(ParseCertificatePoliciesExtensionOidsTest,
       InvalidAnyPolicyWithCustomQualifier) {}

TEST_P(ParseCertificatePoliciesExtensionOidsTest, OnePolicy) {}

TEST_P(ParseCertificatePoliciesExtensionOidsTest, OnePolicyWithQualifier) {}

TEST_P(ParseCertificatePoliciesExtensionOidsTest,
       OnePolicyWithCustomQualifier) {}

TEST_P(ParseCertificatePoliciesExtensionOidsTest,
       InvalidPolicyWithDuplicatePolicyOid) {}

TEST_P(ParseCertificatePoliciesExtensionOidsTest,
       InvalidPolicyWithEmptyQualifiersSequence) {}

TEST_P(ParseCertificatePoliciesExtensionOidsTest,
       InvalidPolicyInformationHasUnconsumedData) {}

TEST_P(ParseCertificatePoliciesExtensionOidsTest,
       InvalidPolicyQualifierInfoHasUnconsumedData) {}

TEST_P(ParseCertificatePoliciesExtensionOidsTest, TwoPolicies) {}

TEST_P(ParseCertificatePoliciesExtensionOidsTest, TwoPoliciesWithQualifiers) {}

TEST(ParseCertificatePoliciesExtensionTest, InvalidEmpty) {}

TEST(ParseCertificatePoliciesExtensionTest,
     InvalidPolicyWithDuplicatePolicyOid) {}

TEST(ParseCertificatePoliciesExtensionTest, OnePolicyWithCustomQualifier) {}

TEST(ParseCertificatePoliciesExtensionTest, TwoPolicies) {}

TEST(ParseCertificatePoliciesExtensionTest, TwoPoliciesWithQualifiers) {}

// NOTE: The tests for ParseInhibitAnyPolicy() are part of
// parsed_certificate_unittest.cc

}  // namespace
BSSL_NAMESPACE_END