Lines Matching refs:MaxValueInBytes
1065 TEST(Varint, MaxValueInBytes) { in TEST() argument
1066 static_assert(MaxValueInBytes(0) == 0); in TEST()
1067 static_assert(MaxValueInBytes(1) == 0x7f); in TEST()
1068 static_assert(MaxValueInBytes(2) == 0x3fff); in TEST()
1069 static_assert(MaxValueInBytes(3) == 0x1fffff); in TEST()
1070 static_assert(MaxValueInBytes(4) == 0x0fffffff); in TEST()
1071 static_assert(MaxValueInBytes(5) == CalculateMaxValueInBytes(5)); in TEST()
1072 static_assert(MaxValueInBytes(6) == CalculateMaxValueInBytes(6)); in TEST()
1073 static_assert(MaxValueInBytes(7) == CalculateMaxValueInBytes(7)); in TEST()
1074 static_assert(MaxValueInBytes(8) == CalculateMaxValueInBytes(8)); in TEST()
1075 static_assert(MaxValueInBytes(9) == CalculateMaxValueInBytes(9)); in TEST()
1076 static_assert(MaxValueInBytes(10) == std::numeric_limits<uint64_t>::max()); in TEST()
1077 static_assert(MaxValueInBytes(11) == std::numeric_limits<uint64_t>::max()); in TEST()
1078 static_assert(MaxValueInBytes(100) == std::numeric_limits<uint64_t>::max()); in TEST()