#include "components/cbor/reader.h"
#include <limits>
#include <utility>
#include "base/containers/span.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace cbor {
namespace {
std::vector<uint8_t> WithExtraneousData(base::span<const uint8_t> original) { … }
}
TEST(CBORReaderTest, TestReadUint) { … }
TEST(CBORReaderTest, TestUintEncodedWithNonMinimumByteLength) { … }
TEST(CBORReaderTest, TestReadNegativeInt) { … }
TEST(CBORReaderTest, TestReadBytes) { … }
TEST(CBORReaderTest, TestReadString) { … }
TEST(CBORReaderTest, TestReadStringWithNUL) { … }
TEST(CBORReaderTest, TestReadStringWithInvalidByteSequenceAfterNUL) { … }
TEST(CBORReaderTest, TestReadArray) { … }
TEST(CBORReaderTest, TestReadMapWithMapValue) { … }
TEST(CBORReaderTest, TestReadMapWithIntegerKeys) { … }
TEST(CBORReaderTest, TestReadMapWithNegativeIntegersKeys) { … }
TEST(CBORReaderTest, TestReadMapWithArray) { … }
TEST(CBORReaderTest, TestReadMapWithTextStringKeys) { … }
TEST(CBORReaderTest, TestReadMapWithByteStringKeys) { … }
TEST(CBORReaderTest, TestReadMapWithMixedKeys) { … }
TEST(CBORReaderTest, TestReadNestedMap) { … }
TEST(CBORReaderTest, TestIntegerRange) { … }
TEST(CBORReaderTest, TestIntegerOutOfRangeError) { … }
TEST(CBORReaderTest, TestReadSimpleValue) { … }
TEST(CBORReaderTest, TestReadFloatingPointNumbers) { … }
TEST(CBORReaderTest, TestReadNonMinimalFloatingPointNumbers) { … }
TEST(CBORReaderTest, TestReadUnsupportedFloatingPointNumbers) { … }
TEST(CBORReaderTest, TestIncompleteCBORDataError) { … }
TEST(CBORReaderTest, TestUnsupportedMapKeyFormatError) { … }
TEST(CBORReaderTest, TestUnknownAdditionalInfoError) { … }
TEST(CBORReaderTest, TestTooMuchNestingError) { … }
TEST(CBORReaderTest, TestOutOfOrderKeyError) { … }
TEST(CBORReaderTest, TestOutOfOrderKeyErrorWithDuplicateKeys) { … }
TEST(CBORReaderTest, TestDuplicateKeyError) { … }
TEST(CBORReaderTest, TestIncorrectStringEncodingError) { … }
TEST(CBORReaderTest, TestExtraneousCBORDataError) { … }
TEST(CBORReaderTest, TestUnsupportedSimpleValue) { … }
TEST(CBORReaderTest, TestSuperLongContentDontCrash) { … }
TEST(CBORReaderTest, AllowInvalidUTF8) { … }
}