Lines Matching refs:result
43 leb128::ByteType* result; in TEST_F() local
46 result = buffer; in TEST_F()
47 size = leb128::encode<uint32_t>(result, 2); in TEST_F()
49 ASSERT_EQ(result, buffer + 1); in TEST_F()
52 result = buffer; in TEST_F()
53 size = leb128::encode<uint32_t>(result, 127); in TEST_F()
55 ASSERT_EQ(result, buffer + 1); in TEST_F()
58 result = buffer; in TEST_F()
59 size = leb128::encode<uint32_t>(result, 128); in TEST_F()
62 ASSERT_EQ(result, buffer + 2); in TEST_F()
65 result = buffer; in TEST_F()
66 size = leb128::encode<uint32_t>(result, 129); in TEST_F()
69 ASSERT_EQ(result, buffer + 2); in TEST_F()
72 result = buffer; in TEST_F()
73 size = leb128::encode<uint32_t>(result, 130); in TEST_F()
76 ASSERT_EQ(result, buffer + 2); in TEST_F()
79 result = buffer; in TEST_F()
80 size = leb128::encode<uint32_t>(result, 12857); in TEST_F()
83 ASSERT_EQ(result, buffer + 2); in TEST_F()
89 leb128::ByteType* result; in TEST_F() local
92 result = buffer; in TEST_F()
93 size = leb128::encode<uint64_t>(result, 2); in TEST_F()
95 ASSERT_EQ(result, buffer + 1); in TEST_F()
98 result = buffer; in TEST_F()
99 size = leb128::encode<uint64_t>(result, 127); in TEST_F()
101 ASSERT_EQ(result, buffer + 1); in TEST_F()
104 result = buffer; in TEST_F()
105 size = leb128::encode<uint64_t>(result, 128); in TEST_F()
108 ASSERT_EQ(result, buffer + 2); in TEST_F()
111 result = buffer; in TEST_F()
112 size = leb128::encode<uint64_t>(result, 129); in TEST_F()
115 ASSERT_EQ(result, buffer + 2); in TEST_F()
118 result = buffer; in TEST_F()
119 size = leb128::encode<uint64_t>(result, 130); in TEST_F()
122 ASSERT_EQ(result, buffer + 2); in TEST_F()
125 result = buffer; in TEST_F()
126 size = leb128::encode<uint64_t>(result, 12857); in TEST_F()
129 ASSERT_EQ(result, buffer + 2); in TEST_F()
135 leb128::ByteType* result; in TEST_F() local
138 result = buffer; in TEST_F()
139 size = leb128::encode<int32_t>(result, 2); in TEST_F()
141 ASSERT_EQ(result, buffer + 1); in TEST_F()
144 result = buffer; in TEST_F()
145 size = leb128::encode<int32_t>(result, -2); in TEST_F()
147 ASSERT_EQ(result, buffer + 1); in TEST_F()
150 result = buffer; in TEST_F()
151 size = leb128::encode<int32_t>(result, 127); in TEST_F()
154 ASSERT_EQ(result, buffer + 2); in TEST_F()
157 result = buffer; in TEST_F()
158 size = leb128::encode<int32_t>(result, -127); in TEST_F()
161 ASSERT_EQ(result, buffer + 2); in TEST_F()
164 result = buffer; in TEST_F()
165 size = leb128::encode<int32_t>(result, 128); in TEST_F()
168 ASSERT_EQ(result, buffer + 2); in TEST_F()
171 result = buffer; in TEST_F()
172 size = leb128::encode<int32_t>(result, -128); in TEST_F()
175 ASSERT_EQ(result, buffer + 2); in TEST_F()
178 result = buffer; in TEST_F()
179 size = leb128::encode<int32_t>(result, 129); in TEST_F()
182 ASSERT_EQ(result, buffer + 2); in TEST_F()
185 result = buffer; in TEST_F()
186 size = leb128::encode<int32_t>(result, -129); in TEST_F()
189 ASSERT_EQ(result, buffer + 2); in TEST_F()
296 leb128::ByteType* result; in TEST_F() local
299 result = buffer; in TEST_F()
300 size = leb128::encode<uint32_t>(result, 0); in TEST_F()
302 ASSERT_EQ(result, buffer + 1); in TEST_F()
305 result = buffer; in TEST_F()
306 size = leb128::encode<uint64_t>(result, 0); in TEST_F()
308 ASSERT_EQ(result, buffer + 1); in TEST_F()
311 result = buffer; in TEST_F()
312 size = leb128::encode<uint32_t>(result, 1); in TEST_F()
314 ASSERT_EQ(result, buffer + 1); in TEST_F()
317 result = buffer; in TEST_F()
318 size = leb128::encode<uint64_t>(result, 1); in TEST_F()
320 ASSERT_EQ(result, buffer + 1); in TEST_F()
323 result = buffer; in TEST_F()
324 size = leb128::encode<uint32_t>(result, 16256); in TEST_F()
327 ASSERT_EQ(result, buffer + 2); in TEST_F()
330 result = buffer; in TEST_F()
331 size = leb128::encode<uint64_t>(result, 16256); in TEST_F()
334 ASSERT_EQ(result, buffer + 2); in TEST_F()
337 result = buffer; in TEST_F()
338 size = leb128::encode<uint32_t>(result, 0x3b4); in TEST_F()
341 ASSERT_EQ(result, buffer + 2); in TEST_F()
344 result = buffer; in TEST_F()
345 size = leb128::encode<uint64_t>(result, 0x3b4); in TEST_F()
348 ASSERT_EQ(result, buffer + 2); in TEST_F()
351 result = buffer; in TEST_F()
352 size = leb128::encode<uint32_t>(result, 0x40c); in TEST_F()
355 ASSERT_EQ(result, buffer + 2); in TEST_F()
358 result = buffer; in TEST_F()
359 size = leb128::encode<uint64_t>(result, 0x40c); in TEST_F()
362 ASSERT_EQ(result, buffer + 2); in TEST_F()
365 result = buffer; in TEST_F()
366 size = leb128::encode<uint32_t>(result, 0xffffffff); in TEST_F()
372 ASSERT_EQ(result, buffer + 5); in TEST_F()
375 result = buffer; in TEST_F()
376 size = leb128::encode<uint64_t>(result, 0xffffffff); in TEST_F()
382 ASSERT_EQ(result, buffer + 5); in TEST_F()
413 leb128::ByteType* result; in TEST_F() local
416 result = buffer; in TEST_F()
417 size = leb128::encode<int32_t>(result, 0); in TEST_F()
419 ASSERT_EQ(result, buffer + 1); in TEST_F()
422 result = buffer; in TEST_F()
423 size = leb128::encode<int64_t>(result, 0); in TEST_F()
425 ASSERT_EQ(result, buffer + 1); in TEST_F()
428 result = buffer; in TEST_F()
429 size = leb128::encode<int32_t>(result, 1); in TEST_F()
431 ASSERT_EQ(result, buffer + 1); in TEST_F()
434 result = buffer; in TEST_F()
435 size = leb128::encode<int64_t>(result, 1); in TEST_F()
437 ASSERT_EQ(result, buffer + 1); in TEST_F()
440 result = buffer; in TEST_F()
441 size = leb128::encode<int32_t>(result, -1); in TEST_F()
443 ASSERT_EQ(result, buffer + 1); in TEST_F()
446 result = buffer; in TEST_F()
447 size = leb128::encode<int64_t>(result, -1); in TEST_F()
449 ASSERT_EQ(result, buffer + 1); in TEST_F()
460 leb128::ByteType* result; in TEST_F() local
464 result = buffer; in TEST_F()
465 encode_size = leb128::encode<uint32_t>(result, value); in TEST_F()
466 ASSERT_EQ(result, buffer + encode_size); in TEST_F()
471 result = buffer; in TEST_F()
472 encode_size = leb128::encode<uint64_t>(result, value2); in TEST_F()
473 ASSERT_EQ(result, buffer + encode_size); in TEST_F()
478 result = buffer; in TEST_F()
479 encode_size = leb128::encode<int64_t>(result, value3); in TEST_F()
480 ASSERT_EQ(result, buffer + encode_size); in TEST_F()
485 result = buffer; in TEST_F()
486 encode_size = leb128::encode<int64_t>(result, -value3); in TEST_F()
487 ASSERT_EQ(result, buffer + encode_size); in TEST_F()
495 leb128::ByteType* result; in TEST_F() local
498 result = buffer; in TEST_F()
499 leb128::encode<uint64_t>(result, 154452); in TEST_F()
500 ASSERT_EQ(result, buffer + 3); in TEST_F()
511 char* result; in TEST_F() local
514 result = buffer; in TEST_F()
515 leb128::encode<uint64_t>(result, 154452); in TEST_F()
516 ASSERT_EQ(result, buffer + 3); in TEST_F()