• Home
  • Raw
  • Download

Lines Matching refs:result

48   leb128::ByteType *result;  in TEST_F()  local
51 result = buffer; in TEST_F()
52 size = leb128::encode<uint32_t>(result, 2); in TEST_F()
54 ASSERT_EQ(result, buffer + 1); in TEST_F()
57 result = buffer; in TEST_F()
58 size = leb128::encode<uint32_t>(result, 127); in TEST_F()
60 ASSERT_EQ(result, buffer + 1); in TEST_F()
63 result = buffer; in TEST_F()
64 size = leb128::encode<uint32_t>(result, 128); in TEST_F()
67 ASSERT_EQ(result, buffer + 2); in TEST_F()
70 result = buffer; in TEST_F()
71 size = leb128::encode<uint32_t>(result, 129); in TEST_F()
74 ASSERT_EQ(result, buffer + 2); in TEST_F()
77 result = buffer; in TEST_F()
78 size = leb128::encode<uint32_t>(result, 130); in TEST_F()
81 ASSERT_EQ(result, buffer + 2); in TEST_F()
84 result = buffer; in TEST_F()
85 size = leb128::encode<uint32_t>(result, 12857); in TEST_F()
88 ASSERT_EQ(result, buffer + 2); in TEST_F()
94 leb128::ByteType *result; in TEST_F() local
97 result = buffer; in TEST_F()
98 size = leb128::encode<uint64_t>(result, 2); in TEST_F()
100 ASSERT_EQ(result, buffer + 1); in TEST_F()
103 result = buffer; in TEST_F()
104 size = leb128::encode<uint64_t>(result, 127); in TEST_F()
106 ASSERT_EQ(result, buffer + 1); in TEST_F()
109 result = buffer; in TEST_F()
110 size = leb128::encode<uint64_t>(result, 128); in TEST_F()
113 ASSERT_EQ(result, buffer + 2); in TEST_F()
116 result = buffer; in TEST_F()
117 size = leb128::encode<uint64_t>(result, 129); in TEST_F()
120 ASSERT_EQ(result, buffer + 2); in TEST_F()
123 result = buffer; in TEST_F()
124 size = leb128::encode<uint64_t>(result, 130); in TEST_F()
127 ASSERT_EQ(result, buffer + 2); in TEST_F()
130 result = buffer; in TEST_F()
131 size = leb128::encode<uint64_t>(result, 12857); in TEST_F()
134 ASSERT_EQ(result, buffer + 2); in TEST_F()
140 leb128::ByteType *result; in TEST_F() local
143 result = buffer; in TEST_F()
144 size = leb128::encode<int32_t>(result, 2); in TEST_F()
146 ASSERT_EQ(result, buffer + 1); in TEST_F()
149 result = buffer; in TEST_F()
150 size = leb128::encode<int32_t>(result, -2); in TEST_F()
152 ASSERT_EQ(result, buffer + 1); in TEST_F()
155 result = buffer; in TEST_F()
156 size = leb128::encode<int32_t>(result, 127); in TEST_F()
159 ASSERT_EQ(result, buffer + 2); in TEST_F()
162 result = buffer; in TEST_F()
163 size = leb128::encode<int32_t>(result, -127); in TEST_F()
166 ASSERT_EQ(result, buffer + 2); in TEST_F()
169 result = buffer; in TEST_F()
170 size = leb128::encode<int32_t>(result, 128); in TEST_F()
173 ASSERT_EQ(result, buffer + 2); in TEST_F()
176 result = buffer; in TEST_F()
177 size = leb128::encode<int32_t>(result, -128); in TEST_F()
180 ASSERT_EQ(result, buffer + 2); in TEST_F()
183 result = buffer; in TEST_F()
184 size = leb128::encode<int32_t>(result, 129); in TEST_F()
187 ASSERT_EQ(result, buffer + 2); in TEST_F()
190 result = buffer; in TEST_F()
191 size = leb128::encode<int32_t>(result, -129); in TEST_F()
194 ASSERT_EQ(result, buffer + 2); in TEST_F()
302 leb128::ByteType *result; in TEST_F() local
305 result = buffer; in TEST_F()
306 size = leb128::encode<uint32_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<uint64_t>(result, 0); in TEST_F()
314 ASSERT_EQ(result, buffer + 1); in TEST_F()
317 result = buffer; in TEST_F()
318 size = leb128::encode<uint32_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<uint64_t>(result, 1); in TEST_F()
326 ASSERT_EQ(result, buffer + 1); in TEST_F()
329 result = buffer; in TEST_F()
330 size = leb128::encode<uint32_t>(result, 16256); in TEST_F()
333 ASSERT_EQ(result, buffer + 2); in TEST_F()
336 result = buffer; in TEST_F()
337 size = leb128::encode<uint64_t>(result, 16256); in TEST_F()
340 ASSERT_EQ(result, buffer + 2); in TEST_F()
343 result = buffer; in TEST_F()
344 size = leb128::encode<uint32_t>(result, 0x3b4); in TEST_F()
347 ASSERT_EQ(result, buffer + 2); in TEST_F()
350 result = buffer; in TEST_F()
351 size = leb128::encode<uint64_t>(result, 0x3b4); in TEST_F()
354 ASSERT_EQ(result, buffer + 2); in TEST_F()
357 result = buffer; in TEST_F()
358 size = leb128::encode<uint32_t>(result, 0x40c); in TEST_F()
361 ASSERT_EQ(result, buffer + 2); in TEST_F()
364 result = buffer; in TEST_F()
365 size = leb128::encode<uint64_t>(result, 0x40c); in TEST_F()
368 ASSERT_EQ(result, buffer + 2); in TEST_F()
371 result = buffer; in TEST_F()
372 size = leb128::encode<uint32_t>(result, 0xffffffff); in TEST_F()
378 ASSERT_EQ(result, buffer + 5); in TEST_F()
381 result = buffer; in TEST_F()
382 size = leb128::encode<uint64_t>(result, 0xffffffff); in TEST_F()
388 ASSERT_EQ(result, buffer + 5); in TEST_F()
419 leb128::ByteType *result; in TEST_F() local
422 result = buffer; in TEST_F()
423 size = leb128::encode<int32_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<int64_t>(result, 0); in TEST_F()
431 ASSERT_EQ(result, buffer + 1); in TEST_F()
434 result = buffer; in TEST_F()
435 size = leb128::encode<int32_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<int64_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<int32_t>(result, -1); in TEST_F()
449 ASSERT_EQ(result, buffer + 1); in TEST_F()
452 result = buffer; in TEST_F()
453 size = leb128::encode<int64_t>(result, -1); in TEST_F()
455 ASSERT_EQ(result, buffer + 1); in TEST_F()
466 leb128::ByteType *result; in TEST_F() local
470 result = buffer; in TEST_F()
471 encode_size = leb128::encode<uint32_t>(result, value); in TEST_F()
472 ASSERT_EQ(result, buffer + encode_size); in TEST_F()
477 result = buffer; in TEST_F()
478 encode_size = leb128::encode<uint64_t>(result, value2); in TEST_F()
479 ASSERT_EQ(result, buffer + encode_size); in TEST_F()
484 result = buffer; in TEST_F()
485 encode_size = leb128::encode<int64_t>(result, value3); in TEST_F()
486 ASSERT_EQ(result, buffer + encode_size); in TEST_F()
491 result = buffer; in TEST_F()
492 encode_size = leb128::encode<int64_t>(result, -value3); in TEST_F()
493 ASSERT_EQ(result, buffer + encode_size); in TEST_F()
501 leb128::ByteType *result; in TEST_F() local
504 result = buffer; in TEST_F()
505 leb128::encode<uint64_t>(result, 154452); in TEST_F()
506 ASSERT_EQ(result, buffer + 3); in TEST_F()
517 char *result; in TEST_F() local
520 result = buffer; in TEST_F()
521 leb128::encode<uint64_t>(result, 154452); in TEST_F()
522 ASSERT_EQ(result, buffer + 3); in TEST_F()