Lines Matching refs:uleb128_64bit_tests
49 static const Decode64bitUnsignedLeb128TestCase uleb128_64bit_tests[] = { variable
192 for (size_t i = 0; i < arraysize(uleb128_64bit_tests); ++i) { in TEST()
194 uint8_t* end = EncodeUnsignedLeb128(encoded_data, uleb128_64bit_tests[i].decoded); in TEST()
196 EXPECT_EQ(UnsignedLeb128Size(uleb128_64bit_tests[i].decoded), data_size); in TEST()
197 const uint8_t* data_ptr = &uleb128_64bit_tests[i].leb128_data[0]; in TEST()
205 EXPECT_EQ(DecodeUnsignedLeb128<uint64_t>(&data_ptr), uleb128_64bit_tests[i].decoded) in TEST()
255 uint8_t encoded_data[10 * arraysize(uleb128_64bit_tests)]; in TEST()
257 for (size_t i = 0; i < arraysize(uleb128_64bit_tests); ++i) { in TEST()
258 end = EncodeUnsignedLeb128(end, uleb128_64bit_tests[i].decoded); in TEST()
262 for (size_t i = 0; i < arraysize(uleb128_64bit_tests); ++i) { in TEST()
263 const uint8_t* data_ptr = &uleb128_64bit_tests[i].leb128_data[0]; in TEST()
264 for (size_t j = 0; j < UnsignedLeb128Size(uleb128_64bit_tests[i].decoded); ++j) { in TEST()
267 for (size_t j = UnsignedLeb128Size(uleb128_64bit_tests[i].decoded); j < 10; ++j) { in TEST()
270 EXPECT_EQ(DecodeUnsignedLeb128<uint64_t>(&encoded_data_ptr), uleb128_64bit_tests[i].decoded) in TEST()