Home | History | Annotate | Download | only in metrics

Lines Matching refs:ranges2

106   BucketRanges ranges2(16);
107 Histogram::InitializeBucketRanges(1, 32, &ranges2);
109 EXPECT_EQ(0, ranges2.range(0));
110 EXPECT_EQ(1, ranges2.range(1));
111 EXPECT_EQ(2, ranges2.range(2));
112 EXPECT_EQ(3, ranges2.range(3));
113 EXPECT_EQ(4, ranges2.range(4));
114 EXPECT_EQ(5, ranges2.range(5));
115 EXPECT_EQ(6, ranges2.range(6));
116 EXPECT_EQ(7, ranges2.range(7));
117 EXPECT_EQ(9, ranges2.range(8));
118 EXPECT_EQ(11, ranges2.range(9));
119 EXPECT_EQ(14, ranges2.range(10));
120 EXPECT_EQ(17, ranges2.range(11));
121 EXPECT_EQ(21, ranges2.range(12));
122 EXPECT_EQ(26, ranges2.range(13));
123 EXPECT_EQ(32, ranges2.range(14));
124 EXPECT_EQ(HistogramBase::kSampleType_MAX, ranges2.range(15));
129 EXPECT_TRUE(ranges2.Equals(histogram2->bucket_ranges()));
146 BucketRanges ranges2(6);
147 LinearHistogram::InitializeBucketRanges(1, 6, &ranges2);
148 EXPECT_EQ(0, ranges2.range(0));
149 EXPECT_EQ(1, ranges2.range(1));
150 EXPECT_EQ(3, ranges2.range(2));
151 EXPECT_EQ(4, ranges2.range(3));
152 EXPECT_EQ(6, ranges2.range(4));
153 EXPECT_EQ(HistogramBase::kSampleType_MAX, ranges2.range(5));
157 EXPECT_TRUE(ranges2.Equals(histogram2->bucket_ranges()));