Lines Matching refs:value
28 uint32_t value) { in CheckBits() argument
30 uint8_t expected = (offset <= i && i < offset + length) ? value >> (i - offset) : init; in CheckBits()
39 for (uint32_t value : values) { in TEST() local
42 writer.WriteVarint(value); in TEST()
46 uint32_t upper_bound = RoundUp(MinimumBitsToStore(value), kBitsPerByte) + kVarintBits; in TEST()
48 EXPECT_EQ(value, result); in TEST()
58 for (uint32_t value = 0; value <= 1; value++) { in TEST() local
62 bmr1.StoreBit(0, value); in TEST()
63 EXPECT_EQ(bmr1.LoadBit(0), value); in TEST()
64 CheckBits(data, sizeof(data), initial_value, bit_offset, 1, value); in TEST()
68 bmr2.StoreBit(bit_offset, value); in TEST()
69 EXPECT_EQ(bmr2.LoadBit(bit_offset), value); in TEST()
70 CheckBits(data, sizeof(data), initial_value, bit_offset, 1, value); in TEST()
81 const uint32_t value = 0xDEADBEEF & mask; in TEST() local
86 bmr1.StoreBits(0, value, bit_length); in TEST()
87 EXPECT_EQ(bmr1.LoadBits(0, bit_length), value); in TEST()
88 CheckBits(data, sizeof(data), initial_value, bit_offset, bit_length, value); in TEST()
92 bmr2.StoreBits(bit_offset, value, bit_length); in TEST()
93 EXPECT_EQ(bmr2.LoadBits(bit_offset, bit_length), value); in TEST()
94 CheckBits(data, sizeof(data), initial_value, bit_offset, bit_length, value); in TEST()