Lines Matching refs:Length64
33 TEST(VarintTest, Length64) { in TEST() argument
34 ASSERT_EQ(Varint::Length64(0), 1); in TEST()
35 ASSERT_EQ(Varint::Length64(1), 1); in TEST()
36 ASSERT_EQ(Varint::Length64(127), 1); in TEST()
37 ASSERT_EQ(Varint::Length64(128), 2); in TEST()
38 ASSERT_EQ(Varint::Length64(16383), 2); in TEST()
39 ASSERT_EQ(Varint::Length64(16384), 3); in TEST()
43 ASSERT_EQ(Varint::Length64(v - 1), Varint_Length64Old(v - 1)); in TEST()
44 ASSERT_EQ(Varint::Length64(v), Varint_Length64Old(v)); in TEST()
45 ASSERT_EQ(Varint::Length64(v + 1), Varint_Length64Old(v + 1)); in TEST()
47 ASSERT_EQ(Varint::Length64(((uint64_t)1 << 21) - 1), 3); in TEST()
48 ASSERT_EQ(Varint::Length64((uint64_t)1 << 21), 4); in TEST()
49 ASSERT_EQ(Varint::Length64((uint64_t)1 << 63), Varint::kMax64); in TEST()
50 ASSERT_EQ(Varint::Length64(~0ull), Varint::kMax64); in TEST()
64 ASSERT_EQ(end_s - s, Varint::Length64(n)); in TEST()
83 ASSERT_EQ(end_s - s, Varint::Length64(n)); in TEST()