Lines Matching refs:ranges
89 BucketRanges ranges(9); in TEST_F() local
90 Histogram::InitializeBucketRanges(1, 64, &ranges); in TEST_F()
91 EXPECT_EQ(0, ranges.range(0)); in TEST_F()
94 EXPECT_EQ(power_of_2, ranges.range(i)); in TEST_F()
97 EXPECT_EQ(HistogramBase::kSampleType_MAX, ranges.range(8)); in TEST_F()
102 EXPECT_TRUE(ranges.Equals(histogram->bucket_ranges())); in TEST_F()
133 BucketRanges ranges(9); in TEST_F() local
134 LinearHistogram::InitializeBucketRanges(1, 7, &ranges); in TEST_F()
137 EXPECT_EQ(i, ranges.range(i)); in TEST_F()
138 EXPECT_EQ(HistogramBase::kSampleType_MAX, ranges.range(8)); in TEST_F()
143 EXPECT_TRUE(ranges.Equals(histogram->bucket_ranges())); in TEST_F()
161 const HistogramBase::Sample ranges[3] = {5, 10, 20}; in TEST_F() local
163 CustomHistogram::ArrayToCustomRanges(ranges, 3); in TEST_F()
182 const BucketRanges* ranges = histogram->bucket_ranges(); in TEST_F() local
183 ASSERT_EQ(4u, ranges->size()); in TEST_F()
184 EXPECT_EQ(0, ranges->range(0)); // Auto added. in TEST_F()
185 EXPECT_EQ(1, ranges->range(1)); in TEST_F()
186 EXPECT_EQ(2, ranges->range(2)); in TEST_F()
187 EXPECT_EQ(HistogramBase::kSampleType_MAX, ranges->range(3)); // Auto added. in TEST_F()
196 ranges = histogram->bucket_ranges(); in TEST_F()
197 ASSERT_EQ(4u, ranges->size()); in TEST_F()
198 EXPECT_EQ(0, ranges->range(0)); in TEST_F()
199 EXPECT_EQ(1, ranges->range(1)); in TEST_F()
200 EXPECT_EQ(2, ranges->range(2)); in TEST_F()
201 EXPECT_EQ(HistogramBase::kSampleType_MAX, ranges->range(3)); in TEST_F()
211 ranges = histogram->bucket_ranges(); in TEST_F()
212 ASSERT_EQ(4u, ranges->size()); in TEST_F()
213 EXPECT_EQ(0, ranges->range(0)); in TEST_F()
214 EXPECT_EQ(1, ranges->range(1)); in TEST_F()
215 EXPECT_EQ(4, ranges->range(2)); in TEST_F()
216 EXPECT_EQ(HistogramBase::kSampleType_MAX, ranges->range(3)); in TEST_F()
231 const BucketRanges* ranges = histogram->bucket_ranges(); in TEST_F() local
232 ASSERT_EQ(3u, ranges->size()); in TEST_F()
233 EXPECT_EQ(0, ranges->range(0)); in TEST_F()
234 EXPECT_EQ(4, ranges->range(1)); in TEST_F()
235 EXPECT_EQ(HistogramBase::kSampleType_MAX, ranges->range(2)); in TEST_F()
519 const BucketRanges* ranges = custom_histogram->bucket_ranges(); in TEST() local
520 ASSERT_EQ(3u, ranges->size()); in TEST()
521 EXPECT_EQ(0, ranges->range(0)); in TEST()
522 EXPECT_EQ(5, ranges->range(1)); in TEST()
523 EXPECT_EQ(HistogramBase::kSampleType_MAX, ranges->range(2)); in TEST()