Lines Matching refs:i

95   for (size_t i = 0; i < arraysize(uleb128_tests); ++i) {  in TEST()  local
97 builder.PushBackUnsigned(uleb128_tests[i].decoded); in TEST()
98 EXPECT_EQ(UnsignedLeb128Size(uleb128_tests[i].decoded), builder.GetData().size()); in TEST()
99 const uint8_t* data_ptr = &uleb128_tests[i].leb128_data[0]; in TEST()
103 EXPECT_EQ(data_ptr[j], encoded_data_ptr[j]) << " i = " << i << " j = " << j; in TEST()
105 EXPECT_EQ(data_ptr[j], 0U) << " i = " << i << " j = " << j; in TEST()
108 EXPECT_EQ(DecodeUnsignedLeb128(&data_ptr), uleb128_tests[i].decoded) << " i = " << i; in TEST()
114 for (size_t i = 0; i < arraysize(uleb128_tests); ++i) { in TEST() local
116 uint8_t* end = EncodeUnsignedLeb128(encoded_data, uleb128_tests[i].decoded); in TEST()
118 EXPECT_EQ(UnsignedLeb128Size(uleb128_tests[i].decoded), data_size); in TEST()
119 const uint8_t* data_ptr = &uleb128_tests[i].leb128_data[0]; in TEST()
122 EXPECT_EQ(data_ptr[j], encoded_data[j]) << " i = " << i << " j = " << j; in TEST()
124 EXPECT_EQ(data_ptr[j], 0U) << " i = " << i << " j = " << j; in TEST()
127 EXPECT_EQ(DecodeUnsignedLeb128(&data_ptr), uleb128_tests[i].decoded) << " i = " << i; in TEST()
134 for (size_t i = 0; i < arraysize(uleb128_tests); ++i) { in TEST() local
135 builder.PushBackUnsigned(uleb128_tests[i].decoded); in TEST()
138 for (size_t i = 0; i < arraysize(uleb128_tests); ++i) { in TEST() local
139 const uint8_t* data_ptr = &uleb128_tests[i].leb128_data[0]; in TEST()
140 for (size_t j = 0; j < UnsignedLeb128Size(uleb128_tests[i].decoded); ++j) { in TEST()
141 EXPECT_EQ(data_ptr[j], encoded_data_ptr[j]) << " i = " << i << " j = " << j; in TEST()
143 for (size_t j = UnsignedLeb128Size(uleb128_tests[i].decoded); j < 5; ++j) { in TEST()
144 EXPECT_EQ(data_ptr[j], 0) << " i = " << i << " j = " << j; in TEST()
146 EXPECT_EQ(DecodeUnsignedLeb128(&encoded_data_ptr), uleb128_tests[i].decoded) << " i = " << i; in TEST()
156 for (size_t i = 0; i < arraysize(uleb128_tests); ++i) { in TEST() local
157 end = EncodeUnsignedLeb128(end, uleb128_tests[i].decoded); in TEST()
161 for (size_t i = 0; i < arraysize(uleb128_tests); ++i) { in TEST() local
162 const uint8_t* data_ptr = &uleb128_tests[i].leb128_data[0]; in TEST()
163 for (size_t j = 0; j < UnsignedLeb128Size(uleb128_tests[i].decoded); ++j) { in TEST()
164 EXPECT_EQ(data_ptr[j], encoded_data_ptr[j]) << " i = " << i << " j = " << j; in TEST()
166 for (size_t j = UnsignedLeb128Size(uleb128_tests[i].decoded); j < 5; ++j) { in TEST()
167 EXPECT_EQ(data_ptr[j], 0) << " i = " << i << " j = " << j; in TEST()
169 EXPECT_EQ(DecodeUnsignedLeb128(&encoded_data_ptr), uleb128_tests[i].decoded) << " i = " << i; in TEST()
176 for (size_t i = 0; i < arraysize(sleb128_tests); ++i) { in TEST() local
178 builder.PushBackSigned(sleb128_tests[i].decoded); in TEST()
179 EXPECT_EQ(SignedLeb128Size(sleb128_tests[i].decoded), builder.GetData().size()); in TEST()
180 const uint8_t* data_ptr = &sleb128_tests[i].leb128_data[0]; in TEST()
184 EXPECT_EQ(data_ptr[j], encoded_data_ptr[j]) << " i = " << i << " j = " << j; in TEST()
186 EXPECT_EQ(data_ptr[j], 0U) << " i = " << i << " j = " << j; in TEST()
189 EXPECT_EQ(DecodeSignedLeb128(&data_ptr), sleb128_tests[i].decoded) << " i = " << i; in TEST()
195 for (size_t i = 0; i < arraysize(sleb128_tests); ++i) { in TEST() local
197 uint8_t* end = EncodeSignedLeb128(encoded_data, sleb128_tests[i].decoded); in TEST()
199 EXPECT_EQ(SignedLeb128Size(sleb128_tests[i].decoded), data_size); in TEST()
200 const uint8_t* data_ptr = &sleb128_tests[i].leb128_data[0]; in TEST()
203 EXPECT_EQ(data_ptr[j], encoded_data[j]) << " i = " << i << " j = " << j; in TEST()
205 EXPECT_EQ(data_ptr[j], 0U) << " i = " << i << " j = " << j; in TEST()
208 EXPECT_EQ(DecodeSignedLeb128(&data_ptr), sleb128_tests[i].decoded) << " i = " << i; in TEST()
215 for (size_t i = 0; i < arraysize(sleb128_tests); ++i) { in TEST() local
216 builder.PushBackSigned(sleb128_tests[i].decoded); in TEST()
219 for (size_t i = 0; i < arraysize(sleb128_tests); ++i) { in TEST() local
220 const uint8_t* data_ptr = &sleb128_tests[i].leb128_data[0]; in TEST()
221 for (size_t j = 0; j < SignedLeb128Size(sleb128_tests[i].decoded); ++j) { in TEST()
222 EXPECT_EQ(data_ptr[j], encoded_data_ptr[j]) << " i = " << i << " j = " << j; in TEST()
224 for (size_t j = SignedLeb128Size(sleb128_tests[i].decoded); j < 5; ++j) { in TEST()
225 EXPECT_EQ(data_ptr[j], 0) << " i = " << i << " j = " << j; in TEST()
227 EXPECT_EQ(DecodeSignedLeb128(&encoded_data_ptr), sleb128_tests[i].decoded) << " i = " << i; in TEST()
237 for (size_t i = 0; i < arraysize(sleb128_tests); ++i) { in TEST() local
238 end = EncodeSignedLeb128(end, sleb128_tests[i].decoded); in TEST()
242 for (size_t i = 0; i < arraysize(sleb128_tests); ++i) { in TEST() local
243 const uint8_t* data_ptr = &sleb128_tests[i].leb128_data[0]; in TEST()
244 for (size_t j = 0; j < SignedLeb128Size(sleb128_tests[i].decoded); ++j) { in TEST()
245 EXPECT_EQ(data_ptr[j], encoded_data_ptr[j]) << " i = " << i << " j = " << j; in TEST()
247 for (size_t j = SignedLeb128Size(sleb128_tests[i].decoded); j < 5; ++j) { in TEST()
248 EXPECT_EQ(data_ptr[j], 0) << " i = " << i << " j = " << j; in TEST()
250 EXPECT_EQ(DecodeSignedLeb128(&encoded_data_ptr), sleb128_tests[i].decoded) << " i = " << i; in TEST()
261 for (size_t i = 0; i < 1024; i++) { in TEST() local
263 builder.PushBackUnsigned((i * 1024) + j); in TEST()
272 for (size_t i = 0; i < 1024; i++) { in TEST() local
274 EXPECT_EQ(DecodeUnsignedLeb128(&encoded_data_ptr), (i * 1024) + j); in TEST()