Lines Matching refs:sleb128_tests
73 static const DecodeSignedLeb128TestCase sleb128_tests[] = { variable
278 for (size_t i = 0; i < arraysize(sleb128_tests); ++i) { in TEST()
280 builder.PushBackSigned(sleb128_tests[i].decoded); in TEST()
281 EXPECT_EQ(SignedLeb128Size(sleb128_tests[i].decoded), builder.GetData().size()); in TEST()
282 const uint8_t* data_ptr = &sleb128_tests[i].leb128_data[0]; in TEST()
291 EXPECT_EQ(DecodeSignedLeb128(&data_ptr), sleb128_tests[i].decoded) << " i = " << i; in TEST()
297 for (size_t i = 0; i < arraysize(sleb128_tests); ++i) { in TEST()
299 uint8_t* end = EncodeSignedLeb128(encoded_data, sleb128_tests[i].decoded); in TEST()
301 EXPECT_EQ(SignedLeb128Size(sleb128_tests[i].decoded), data_size); in TEST()
302 const uint8_t* data_ptr = &sleb128_tests[i].leb128_data[0]; in TEST()
310 EXPECT_EQ(DecodeSignedLeb128(&data_ptr), sleb128_tests[i].decoded) << " i = " << i; in TEST()
337 for (size_t i = 0; i < arraysize(sleb128_tests); ++i) { in TEST()
338 builder.PushBackSigned(sleb128_tests[i].decoded); in TEST()
341 for (size_t i = 0; i < arraysize(sleb128_tests); ++i) { in TEST()
342 const uint8_t* data_ptr = &sleb128_tests[i].leb128_data[0]; in TEST()
343 for (size_t j = 0; j < SignedLeb128Size(sleb128_tests[i].decoded); ++j) { in TEST()
346 for (size_t j = SignedLeb128Size(sleb128_tests[i].decoded); j < 5; ++j) { in TEST()
349 EXPECT_EQ(DecodeSignedLeb128(&encoded_data_ptr), sleb128_tests[i].decoded) << " i = " << i; in TEST()
357 uint8_t encoded_data[5 * arraysize(sleb128_tests)]; in TEST()
359 for (size_t i = 0; i < arraysize(sleb128_tests); ++i) { in TEST()
360 end = EncodeSignedLeb128(end, sleb128_tests[i].decoded); in TEST()
364 for (size_t i = 0; i < arraysize(sleb128_tests); ++i) { in TEST()
365 const uint8_t* data_ptr = &sleb128_tests[i].leb128_data[0]; in TEST()
366 for (size_t j = 0; j < SignedLeb128Size(sleb128_tests[i].decoded); ++j) { in TEST()
369 for (size_t j = SignedLeb128Size(sleb128_tests[i].decoded); j < 5; ++j) { in TEST()
372 EXPECT_EQ(DecodeSignedLeb128(&encoded_data_ptr), sleb128_tests[i].decoded) << " i = " << i; in TEST()