Lines Matching full:ranges
15 BucketRanges ranges(5); in TEST() local
16 ASSERT_EQ(5u, ranges.size()); in TEST()
17 ASSERT_EQ(4u, ranges.bucket_count()); in TEST()
20 EXPECT_EQ(0, ranges.range(i)); in TEST()
22 EXPECT_EQ(0u, ranges.checksum()); in TEST()
24 ranges.set_range(3, 100); in TEST()
25 EXPECT_EQ(100, ranges.range(3)); in TEST()
29 // Compare empty ranges. in TEST()
38 // Compare full filled ranges. in TEST()
61 BucketRanges ranges(3); in TEST() local
62 ranges.set_range(0, 0); in TEST()
63 ranges.set_range(1, 1); in TEST()
64 ranges.set_range(2, 2); in TEST()
66 ranges.ResetChecksum(); in TEST()
67 EXPECT_EQ(289217253u, ranges.checksum()); in TEST()
69 ranges.set_range(2, 3); in TEST()
70 EXPECT_FALSE(ranges.HasValidChecksum()); in TEST()
72 ranges.ResetChecksum(); in TEST()
73 EXPECT_EQ(2843835776u, ranges.checksum()); in TEST()
74 EXPECT_TRUE(ranges.HasValidChecksum()); in TEST()