Lines Matching refs:HistogramBase
99 HistogramBase* histogram = Histogram::FactoryGet( in TEST_P()
100 "TestHistogram", 1, 1000, 10, HistogramBase::kNoFlags); in TEST_P()
103 HistogramBase* linear_histogram = LinearHistogram::FactoryGet( in TEST_P()
104 "TestLinearHistogram", 1, 1000, 10, HistogramBase::kNoFlags); in TEST_P()
110 HistogramBase* custom_histogram = CustomHistogram::FactoryGet( in TEST_P()
111 "TestCustomHistogram", custom_ranges, HistogramBase::kNoFlags); in TEST_P()
142 HistogramBase* histogram = LinearHistogram::FactoryGet( in TEST_P()
143 "DuplicatedHistogram", 1, 101, 102, HistogramBase::kNoFlags); in TEST_P()
152 HistogramBase* histogram = in TEST_P()
154 HistogramBase::kNoFlags); in TEST_P()
181 HistogramBase* histogram = in TEST_P()
183 HistogramBase::kNoFlags); in TEST_P()
215 EXPECT_EQ(HistogramBase::kSampleType_MAX, ranges.range(8)); in TEST_P()
219 Histogram::FactoryGet("Histogram", 1, 64, 8, HistogramBase::kNoFlags)); in TEST_P()
242 EXPECT_EQ(HistogramBase::kSampleType_MAX, ranges2.range(15)); in TEST_P()
246 Histogram::FactoryGet("Histogram2", 1, 32, 15, HistogramBase::kNoFlags)); in TEST_P()
256 EXPECT_EQ(HistogramBase::kSampleType_MAX, ranges.range(8)); in TEST_P()
260 LinearHistogram::FactoryGet("Linear", 1, 7, 8, HistogramBase::kNoFlags)); in TEST_P()
271 EXPECT_EQ(HistogramBase::kSampleType_MAX, ranges2.range(5)); in TEST_P()
274 LinearHistogram::FactoryGet("Linear2", 1, 6, 5, HistogramBase::kNoFlags)); in TEST_P()
279 const HistogramBase::Sample ranges[3] = {5, 10, 20}; in TEST_P()
280 std::vector<HistogramBase::Sample> ranges_vec = in TEST_P()
293 std::vector<HistogramBase::Sample> custom_ranges; in TEST_P()
299 HistogramBase::kNoFlags)); in TEST_P()
305 EXPECT_EQ(HistogramBase::kSampleType_MAX, ranges->range(3)); // Auto added. in TEST_P()
313 HistogramBase::kNoFlags)); in TEST_P()
319 EXPECT_EQ(HistogramBase::kSampleType_MAX, ranges->range(3)); in TEST_P()
328 HistogramBase::kNoFlags)); in TEST_P()
334 EXPECT_EQ(HistogramBase::kSampleType_MAX, ranges->range(3)); in TEST_P()
343 std::vector<HistogramBase::Sample> custom_ranges; in TEST_P()
348 HistogramBase::kNoFlags)); in TEST_P()
353 EXPECT_EQ(HistogramBase::kSampleType_MAX, ranges->range(2)); in TEST_P()
360 HistogramBase::kNoFlags)); in TEST_P()
383 HistogramBase::kNoFlags)); in TEST_P()
408 HistogramBase::kNoFlags)); in TEST_P()
432 custom_ranges, HistogramBase::kNoFlags)); in TEST_P()
454 Histogram::FactoryGet("Histogram", 1, 64, 8, HistogramBase::kNoFlags)); in TEST_P()
480 Histogram::FactoryGet("Histogram", 1, 64, 8, HistogramBase::kNoFlags)); in TEST_P()
487 EXPECT_EQ(HistogramBase::NO_INCONSISTENCIES, in TEST_P()
493 EXPECT_EQ(HistogramBase::COUNT_LOW_ERROR, in TEST_P()
496 EXPECT_EQ(HistogramBase::COUNT_HIGH_ERROR, in TEST_P()
501 EXPECT_EQ(HistogramBase::NO_INCONSISTENCIES, in TEST_P()
507 Histogram::FactoryGet("Histogram", 1, 64, 8, HistogramBase::kNoFlags)); in TEST_P()
510 EXPECT_EQ(HistogramBase::NO_INCONSISTENCIES, in TEST_P()
515 HistogramBase::Sample tmp = bucket_ranges->range(1); in TEST_P()
519 HistogramBase::BUCKET_ORDER_ERROR | HistogramBase::RANGE_CHECKSUM_ERROR, in TEST_P()
528 EXPECT_EQ(HistogramBase::RANGE_CHECKSUM_ERROR, in TEST_P()
532 EXPECT_EQ(HistogramBase::RANGE_CHECKSUM_ERROR, in TEST_P()
543 HistogramBase::kIPCSerializationSourceFlag)); in TEST_P()
559 EXPECT_EQ(HistogramBase::kIPCSerializationSourceFlag, in TEST_P()
560 flag & ~HistogramBase::kIsPersistent); in TEST_P()
587 HistogramBase* custom_histogram = CustomHistogram::FactoryGet( in TEST_P()
590 HistogramBase::kNoFlags); in TEST_P()
617 HistogramBase* histogram = Histogram::FactoryGet( in TEST_P()
618 "BadConstruction", 0, 100, 8, HistogramBase::kNoFlags); in TEST_P()
622 HistogramBase* bad_histogram = Histogram::FactoryGet( in TEST_P()
623 "BadConstruction", 0, 100, 7, HistogramBase::kNoFlags); in TEST_P()
626 "BadConstruction", 0, 99, 8, HistogramBase::kNoFlags); in TEST_P()
629 HistogramBase* linear_histogram = LinearHistogram::FactoryGet( in TEST_P()
630 "BadConstructionLinear", 0, 100, 8, HistogramBase::kNoFlags); in TEST_P()
635 "BadConstructionLinear", 0, 100, 7, HistogramBase::kNoFlags); in TEST_P()
638 "BadConstructionLinear", 10, 100, 8, HistogramBase::kNoFlags); in TEST_P()
658 HistogramBase::kNoFlags); in TEST_P()
678 HistogramBase::kNoFlags); in TEST_P()
689 HistogramBase* histogram = Histogram::FactoryGet( in TEST_P()
690 histogram_names[0], 1, 100, 10, HistogramBase::kNoFlags); in TEST_P()
710 HistogramBase* histogram = Histogram::FactoryGet( in TEST()
711 "BadRanges", 0, HistogramBase::kSampleType_MAX, 8, in TEST()
712 HistogramBase::kNoFlags); in TEST()
715 1, HistogramBase::kSampleType_MAX - 1, 8)); in TEST()
717 HistogramBase* linear_histogram = LinearHistogram::FactoryGet( in TEST()
718 "BadRangesLinear", 0, HistogramBase::kSampleType_MAX, 8, in TEST()
719 HistogramBase::kNoFlags); in TEST()
722 1, HistogramBase::kSampleType_MAX - 1, 8)); in TEST()
729 "BadRangesCustom", custom_ranges, HistogramBase::kNoFlags)); in TEST()
734 EXPECT_EQ(HistogramBase::kSampleType_MAX, ranges->range(2)); in TEST()
737 custom_ranges.push_back(HistogramBase::kSampleType_MAX); in TEST()
739 HistogramBase::kNoFlags), in TEST()
746 HistogramBase::kNoFlags), in TEST()