Lines Matching refs:range
94 EXPECT_EQ(0, ranges.range(0)); in TEST_F()
97 EXPECT_EQ(power_of_2, ranges.range(i)); in TEST_F()
100 EXPECT_EQ(HistogramBase::kSampleType_MAX, ranges.range(8)); in TEST_F()
112 EXPECT_EQ(0, ranges2.range(0)); in TEST_F()
113 EXPECT_EQ(1, ranges2.range(1)); in TEST_F()
114 EXPECT_EQ(2, ranges2.range(2)); in TEST_F()
115 EXPECT_EQ(3, ranges2.range(3)); in TEST_F()
116 EXPECT_EQ(4, ranges2.range(4)); in TEST_F()
117 EXPECT_EQ(5, ranges2.range(5)); in TEST_F()
118 EXPECT_EQ(6, ranges2.range(6)); in TEST_F()
119 EXPECT_EQ(7, ranges2.range(7)); in TEST_F()
120 EXPECT_EQ(9, ranges2.range(8)); in TEST_F()
121 EXPECT_EQ(11, ranges2.range(9)); in TEST_F()
122 EXPECT_EQ(14, ranges2.range(10)); in TEST_F()
123 EXPECT_EQ(17, ranges2.range(11)); in TEST_F()
124 EXPECT_EQ(21, ranges2.range(12)); in TEST_F()
125 EXPECT_EQ(26, ranges2.range(13)); in TEST_F()
126 EXPECT_EQ(32, ranges2.range(14)); in TEST_F()
127 EXPECT_EQ(HistogramBase::kSampleType_MAX, ranges2.range(15)); in TEST_F()
140 EXPECT_EQ(i, ranges.range(i)); in TEST_F()
141 EXPECT_EQ(HistogramBase::kSampleType_MAX, ranges.range(8)); in TEST_F()
151 EXPECT_EQ(0, ranges2.range(0)); in TEST_F()
152 EXPECT_EQ(1, ranges2.range(1)); in TEST_F()
153 EXPECT_EQ(3, ranges2.range(2)); in TEST_F()
154 EXPECT_EQ(4, ranges2.range(3)); in TEST_F()
155 EXPECT_EQ(6, ranges2.range(4)); in TEST_F()
156 EXPECT_EQ(HistogramBase::kSampleType_MAX, ranges2.range(5)); in TEST_F()
187 EXPECT_EQ(0, ranges->range(0)); // Auto added. in TEST_F()
188 EXPECT_EQ(1, ranges->range(1)); in TEST_F()
189 EXPECT_EQ(2, ranges->range(2)); in TEST_F()
190 EXPECT_EQ(HistogramBase::kSampleType_MAX, ranges->range(3)); // Auto added. in TEST_F()
201 EXPECT_EQ(0, ranges->range(0)); in TEST_F()
202 EXPECT_EQ(1, ranges->range(1)); in TEST_F()
203 EXPECT_EQ(2, ranges->range(2)); in TEST_F()
204 EXPECT_EQ(HistogramBase::kSampleType_MAX, ranges->range(3)); in TEST_F()
216 EXPECT_EQ(0, ranges->range(0)); in TEST_F()
217 EXPECT_EQ(1, ranges->range(1)); in TEST_F()
218 EXPECT_EQ(4, ranges->range(2)); in TEST_F()
219 EXPECT_EQ(HistogramBase::kSampleType_MAX, ranges->range(3)); in TEST_F()
236 EXPECT_EQ(0, ranges->range(0)); in TEST_F()
237 EXPECT_EQ(4, ranges->range(1)); in TEST_F()
238 EXPECT_EQ(HistogramBase::kSampleType_MAX, ranges->range(2)); in TEST_F()
346 HistogramBase::Sample tmp = bucket_ranges->range(1); in TEST_F()
347 bucket_ranges->set_range(1, bucket_ranges->range(2)); in TEST_F()
353 bucket_ranges->set_range(2, bucket_ranges->range(1)); in TEST_F()
358 bucket_ranges->set_range(3, bucket_ranges->range(3) + 1); in TEST_F()
362 bucket_ranges->set_range(4, bucket_ranges->range(4) - 1); in TEST_F()
367 bucket_ranges->set_range(3, bucket_ranges->range(3) - 1); in TEST_F()
368 bucket_ranges->set_range(4, bucket_ranges->range(4) + 1); in TEST_F()
436 int range; in TEST_F() local
437 EXPECT_TRUE(iter.ReadInt(&range)); in TEST_F()
438 EXPECT_EQ(10, range); in TEST_F()
439 EXPECT_TRUE(iter.ReadInt(&range)); in TEST_F()
440 EXPECT_EQ(100, range); in TEST_F()
474 EXPECT_EQ(0, ranges->range(0)); in TEST()
475 EXPECT_EQ(5, ranges->range(1)); in TEST()
476 EXPECT_EQ(HistogramBase::kSampleType_MAX, ranges->range(2)); in TEST()