Lines Matching refs:uleb128_tests
30 static const DecodeUnsignedLeb128TestCase uleb128_tests[] = { variable
154 for (size_t i = 0; i < arraysize(uleb128_tests); ++i) { in TEST()
156 builder.PushBackUnsigned(uleb128_tests[i].decoded); in TEST()
157 EXPECT_EQ(UnsignedLeb128Size(uleb128_tests[i].decoded), builder.GetData().size()); in TEST()
158 const uint8_t* data_ptr = &uleb128_tests[i].leb128_data[0]; in TEST()
167 EXPECT_EQ(DecodeUnsignedLeb128(&data_ptr), uleb128_tests[i].decoded) << " i = " << i; in TEST()
173 for (size_t i = 0; i < arraysize(uleb128_tests); ++i) { in TEST()
175 uint8_t* end = EncodeUnsignedLeb128(encoded_data, uleb128_tests[i].decoded); in TEST()
177 EXPECT_EQ(UnsignedLeb128Size(uleb128_tests[i].decoded), data_size); in TEST()
178 const uint8_t* data_ptr = &uleb128_tests[i].leb128_data[0]; in TEST()
186 EXPECT_EQ(DecodeUnsignedLeb128(&data_ptr), uleb128_tests[i].decoded) << " i = " << i; in TEST()
213 for (size_t i = 0; i < arraysize(uleb128_tests); ++i) { in TEST()
214 builder.PushBackUnsigned(uleb128_tests[i].decoded); in TEST()
217 for (size_t i = 0; i < arraysize(uleb128_tests); ++i) { in TEST()
218 const uint8_t* data_ptr = &uleb128_tests[i].leb128_data[0]; in TEST()
219 for (size_t j = 0; j < UnsignedLeb128Size(uleb128_tests[i].decoded); ++j) { in TEST()
222 for (size_t j = UnsignedLeb128Size(uleb128_tests[i].decoded); j < 5; ++j) { in TEST()
225 EXPECT_EQ(DecodeUnsignedLeb128(&encoded_data_ptr), uleb128_tests[i].decoded) << " i = " << i; in TEST()
233 uint8_t encoded_data[5 * arraysize(uleb128_tests)]; in TEST()
235 for (size_t i = 0; i < arraysize(uleb128_tests); ++i) { in TEST()
236 end = EncodeUnsignedLeb128(end, uleb128_tests[i].decoded); in TEST()
240 for (size_t i = 0; i < arraysize(uleb128_tests); ++i) { in TEST()
241 const uint8_t* data_ptr = &uleb128_tests[i].leb128_data[0]; in TEST()
242 for (size_t j = 0; j < UnsignedLeb128Size(uleb128_tests[i].decoded); ++j) { in TEST()
245 for (size_t j = UnsignedLeb128Size(uleb128_tests[i].decoded); j < 5; ++j) { in TEST()
248 EXPECT_EQ(DecodeUnsignedLeb128(&encoded_data_ptr), uleb128_tests[i].decoded) << " i = " << i; in TEST()
401 for (size_t i = 0; i < arraysize(uleb128_tests); ++i) { in TEST()
402 for (size_t j = 0; j < arraysize(uleb128_tests); ++j) { in TEST()
403 uint32_t old_value = uleb128_tests[i].decoded; in TEST()
404 uint32_t new_value = uleb128_tests[j].decoded; in TEST()