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

#include <gtest/gtest.h>
#include "input.h"
#include "parse_values.h"

BSSL_NAMESPACE_BEGIN
namespace der::test {

TEST(ParserTest, ConsumesAllBytesOfTLV) {}

TEST(ParserTest, CanReadRawTLV) {}

TEST(ParserTest, IgnoresContentsOfInnerValues) {}

TEST(ParserTest, FailsIfLengthOverlapsAnotherTLV) {}

TEST(ParserTest, ReadOptionalTagPresent) {}

TEST(ParserTest, ReadOptionalTag2Present) {}

TEST(ParserTest, ReadOptionalTagNotPresent) {}

TEST(ParserTest, ReadOptionalTag2NotPresent) {}

TEST(ParserTest, CanSkipOptionalTagAtEndOfInput) {}

TEST(ParserTest, SkipOptionalTagDoesntConsumePresentNonMatchingTLVs) {}

TEST(ParserTest, TagNumbersAboveThirtySupported) {}

TEST(ParserTest, ParseTags) {}

TEST(ParserTest, IncompleteEncodingTagOnly) {}

TEST(ParserTest, IncompleteEncodingLengthTruncated) {}

TEST(ParserTest, IncompleteEncodingValueShorterThanLength) {}

TEST(ParserTest, LengthMustBeEncodedWithMinimumNumberOfOctets) {}

TEST(ParserTest, LengthMustNotHaveLeadingZeroes) {}

TEST(ParserTest, ReadConstructedFailsForNonConstructedTags) {}

TEST(ParserTest, CannotAdvanceAfterReadOptionalTag) {}

// Reads a valid BIT STRING with 1 unused bit.
TEST(ParserTest, ReadBitString) {}

// Tries reading a BIT STRING. This should fail because the tag is not for a
// BIT STRING.
TEST(ParserTest, ReadBitStringBadTag) {}

}  // namespace der::test
BSSL_NAMESPACE_END