chromium/third_party/boringssl/src/pki/parse_name_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 "parse_name.h"

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

BSSL_NAMESPACE_BEGIN

namespace {
// Loads test data from file. The filename is constructed from the parameters:
// |prefix| describes the type of data being tested, e.g. "ascii",
// "unicode_bmp", "unicode_supplementary", and "invalid".
// |value_type| indicates what ASN.1 type is used to encode the data.
// |suffix| indicates any additional modifications, such as caseswapping,
// whitespace adding, etc.
::testing::AssertionResult LoadTestData(const std::string &prefix,
                                        const std::string &value_type,
                                        const std::string &suffix,
                                        std::string *result) {}

}  // anonymous namespace

TEST(ParseNameTest, IA5SafeStringValue) {}

TEST(ParseNameTest, IA5UnsafeStringValue) {}

TEST(ParseNameTest, PrintableSafeStringValue) {}

TEST(ParseNameTest, PrintableUnsafeStringValue) {}

TEST(ParseNameTest, PrintableStringUnsafeOptions) {}

TEST(ParseNameTest, TeletexSafeStringValue) {}

TEST(ParseNameTest, TeletexLatin1StringValue) {}

TEST(ParseNameTest, ConvertBmpString) {}

// BmpString must encode characters in pairs of 2 bytes.
TEST(ParseNameTest, ConvertInvalidBmpString) {}

TEST(ParseNameTest, ConvertUniversalString) {}

// UniversalString must encode characters in pairs of 4 bytes.
TEST(ParseNameTest, ConvertInvalidUniversalString) {}

TEST(ParseNameTest, EmptyName) {}

TEST(ParseNameTest, ValidName) {}

TEST(ParseNameTest, InvalidNameExtraData) {}

TEST(ParseNameTest, InvalidNameEmpty) {}

TEST(ParseNameTest, InvalidNameBadType) {}

TEST(ParseNameTest, InvalidNameNotSequence) {}

TEST(ParseNameTest, InvalidNameNotSet) {}

TEST(ParseNameTest, InvalidNameEmptyRdn) {}

TEST(ParseNameTest, RFC2253FormatBasic) {}

TEST(ParseNameTest, RFC2253FormatMultiRDN) {}

TEST(ParseNameTest, RFC2253FormatQuoted) {}

TEST(ParseNameTest, RFC2253FormatNonPrintable) {}

TEST(ParseNameTest, RFC2253FormatUnknownOid) {}

TEST(ParseNameTest, RFC2253FormatLargeOid) {}

TEST(ParseNameTest, RFC2253FormatInvalidOid) {}

TEST(ParseNameTest, RFC2253FormatUTF8) {}

BSSL_NAMESPACE_END