Home | History | Annotate | Download | only in unittests

Lines Matching full:int64_t

234   ASSERT_EQ(leb128::decode<int64_t>(buffer, size), 2);
239 ASSERT_EQ(leb128::decode<int64_t>(buffer, size), -2);
244 ASSERT_EQ(leb128::decode<int64_t>(buffer, size), 127);
249 ASSERT_EQ(leb128::decode<int64_t>(buffer, size), -127);
254 ASSERT_EQ(leb128::decode<int64_t>(buffer, size), 128);
259 ASSERT_EQ(leb128::decode<int64_t>(buffer, size), -128);
264 ASSERT_EQ(leb128::decode<int64_t>(buffer, size), 129);
269 ASSERT_EQ(leb128::decode<int64_t>(buffer, size), -129);
392 ASSERT_EQ(leb128::decode<int64_t>(p), 0);
397 ASSERT_EQ(leb128::decode<int64_t>(p), 1);
402 ASSERT_EQ(leb128::decode<int64_t>(p), -1);
407 ASSERT_EQ(leb128::decode<int64_t>(p), 0x3c);
423 size = leb128::encode<int64_t>(result, 0);
435 size = leb128::encode<int64_t>(result, 1);
447 size = leb128::encode<int64_t>(result, -1);
459 int64_t value3 = value * value;
479 encode_size = leb128::encode<int64_t>(result, value3);
481 ASSERT_EQ(leb128::decode<int64_t>(buffer, decode_size), value3);
486 encode_size = leb128::encode<int64_t>(result, -value3);
488 ASSERT_EQ(leb128::decode<int64_t>(buffer, decode_size), -value3);