• Home
  • Raw
  • Download

Lines Matching refs:HistogramBase

119   HistogramBase* histogram = Histogram::FactoryGet(  in TEST_P()
120 "TestHistogram", 1, 1000, 10, HistogramBase::kNoFlags); in TEST_P()
123 HistogramBase* linear_histogram = LinearHistogram::FactoryGet( in TEST_P()
124 "TestLinearHistogram", 1, 1000, 10, HistogramBase::kNoFlags); in TEST_P()
130 HistogramBase* custom_histogram = CustomHistogram::FactoryGet( in TEST_P()
131 "TestCustomHistogram", custom_ranges, HistogramBase::kNoFlags); in TEST_P()
162 HistogramBase* histogram = LinearHistogram::FactoryGet( in TEST_P()
163 "DuplicatedHistogram", 1, 101, 102, HistogramBase::kNoFlags); in TEST_P()
172 HistogramBase* histogram = in TEST_P()
174 HistogramBase::kNoFlags); in TEST_P()
201 HistogramBase* histogram = in TEST_P()
203 HistogramBase::kNoFlags); in TEST_P()
235 EXPECT_EQ(HistogramBase::kSampleType_MAX, ranges.range(8)); in TEST_P()
239 Histogram::FactoryGet("Histogram", 1, 64, 8, HistogramBase::kNoFlags)); in TEST_P()
262 EXPECT_EQ(HistogramBase::kSampleType_MAX, ranges2.range(15)); in TEST_P()
266 Histogram::FactoryGet("Histogram2", 1, 32, 15, HistogramBase::kNoFlags)); in TEST_P()
276 EXPECT_EQ(HistogramBase::kSampleType_MAX, ranges.range(8)); in TEST_P()
280 LinearHistogram::FactoryGet("Linear", 1, 7, 8, HistogramBase::kNoFlags)); in TEST_P()
291 EXPECT_EQ(HistogramBase::kSampleType_MAX, ranges2.range(5)); in TEST_P()
294 LinearHistogram::FactoryGet("Linear2", 1, 6, 5, HistogramBase::kNoFlags)); in TEST_P()
299 const HistogramBase::Sample ranges[3] = {5, 10, 20}; in TEST_P()
300 std::vector<HistogramBase::Sample> ranges_vec = in TEST_P()
313 std::vector<HistogramBase::Sample> custom_ranges; in TEST_P()
319 HistogramBase::kNoFlags)); in TEST_P()
325 EXPECT_EQ(HistogramBase::kSampleType_MAX, ranges->range(3)); // Auto added. in TEST_P()
333 HistogramBase::kNoFlags)); in TEST_P()
339 EXPECT_EQ(HistogramBase::kSampleType_MAX, ranges->range(3)); in TEST_P()
348 HistogramBase::kNoFlags)); in TEST_P()
354 EXPECT_EQ(HistogramBase::kSampleType_MAX, ranges->range(3)); in TEST_P()
363 std::vector<HistogramBase::Sample> custom_ranges; in TEST_P()
368 HistogramBase::kNoFlags)); in TEST_P()
373 EXPECT_EQ(HistogramBase::kSampleType_MAX, ranges->range(2)); in TEST_P()
380 HistogramBase::kNoFlags)); in TEST_P()
403 HistogramBase::kNoFlags)); in TEST_P()
430 "AddCountHistogram", 10, 50, kBucketCount, HistogramBase::kNoFlags)); in TEST_P()
448 HistogramBase::kNoFlags)); in TEST_P()
472 custom_ranges, HistogramBase::kNoFlags)); in TEST_P()
494 Histogram::FactoryGet("Histogram", 1, 64, 8, HistogramBase::kNoFlags)); in TEST_P()
520 Histogram::FactoryGet("Histogram", 1, 64, 8, HistogramBase::kNoFlags)); in TEST_P()
527 EXPECT_EQ(HistogramBase::NO_INCONSISTENCIES, in TEST_P()
533 EXPECT_EQ(HistogramBase::COUNT_LOW_ERROR, in TEST_P()
536 EXPECT_EQ(HistogramBase::COUNT_HIGH_ERROR, in TEST_P()
541 EXPECT_EQ(HistogramBase::NO_INCONSISTENCIES, in TEST_P()
547 Histogram::FactoryGet("Histogram", 1, 64, 8, HistogramBase::kNoFlags)); in TEST_P()
550 EXPECT_EQ(HistogramBase::NO_INCONSISTENCIES, in TEST_P()
555 HistogramBase::Sample tmp = bucket_ranges->range(1); in TEST_P()
559 HistogramBase::BUCKET_ORDER_ERROR | HistogramBase::RANGE_CHECKSUM_ERROR, in TEST_P()
568 EXPECT_EQ(HistogramBase::RANGE_CHECKSUM_ERROR, in TEST_P()
572 EXPECT_EQ(HistogramBase::RANGE_CHECKSUM_ERROR, in TEST_P()
583 HistogramBase::kIPCSerializationSourceFlag)); in TEST_P()
599 EXPECT_EQ(HistogramBase::kIPCSerializationSourceFlag, in TEST_P()
600 flag & ~HistogramBase::kIsPersistent); in TEST_P()
627 HistogramBase* custom_histogram = CustomHistogram::FactoryGet( in TEST_P()
630 HistogramBase::kNoFlags); in TEST_P()
657 HistogramBase* histogram = Histogram::FactoryGet( in TEST_P()
658 "BadConstruction", 0, 100, 8, HistogramBase::kNoFlags); in TEST_P()
662 HistogramBase* bad_histogram = Histogram::FactoryGet( in TEST_P()
663 "BadConstruction", 0, 100, 7, HistogramBase::kNoFlags); in TEST_P()
666 "BadConstruction", 0, 99, 8, HistogramBase::kNoFlags); in TEST_P()
669 HistogramBase* linear_histogram = LinearHistogram::FactoryGet( in TEST_P()
670 "BadConstructionLinear", 0, 100, 8, HistogramBase::kNoFlags); in TEST_P()
675 "BadConstructionLinear", 0, 100, 7, HistogramBase::kNoFlags); in TEST_P()
678 "BadConstructionLinear", 10, 100, 8, HistogramBase::kNoFlags); in TEST_P()
698 HistogramBase::kNoFlags); in TEST_P()
718 HistogramBase::kNoFlags); in TEST_P()
729 HistogramBase* histogram = Histogram::FactoryGet( in TEST_P()
730 histogram_names[0], 1, 100, 10, HistogramBase::kNoFlags); in TEST_P()
745 ScaledLinearHistogram scaled("SLH", 1, 5, 6, 100, HistogramBase::kNoFlags); in TEST_P()
784 HistogramBase* histogram = Histogram::FactoryGet( in TEST()
785 "BadRanges", 0, HistogramBase::kSampleType_MAX, 8, in TEST()
786 HistogramBase::kNoFlags); in TEST()
789 1, HistogramBase::kSampleType_MAX - 1, 8)); in TEST()
791 HistogramBase* linear_histogram = LinearHistogram::FactoryGet( in TEST()
792 "BadRangesLinear", 0, HistogramBase::kSampleType_MAX, 8, in TEST()
793 HistogramBase::kNoFlags); in TEST()
796 1, HistogramBase::kSampleType_MAX - 1, 8)); in TEST()
803 "BadRangesCustom", custom_ranges, HistogramBase::kNoFlags)); in TEST()
808 EXPECT_EQ(HistogramBase::kSampleType_MAX, ranges->range(2)); in TEST()
811 custom_ranges.push_back(HistogramBase::kSampleType_MAX); in TEST()
814 HistogramBase::kNoFlags), in TEST()
822 HistogramBase::kNoFlags), in TEST()
830 HistogramBase* expired = Histogram::FactoryGet(kExpiredHistogramName, 1, 1000, in TEST_P()
831 10, HistogramBase::kNoFlags); in TEST_P()
838 HistogramBase* linear_expired = LinearHistogram::FactoryGet( in TEST_P()
839 kExpiredHistogramName, 1, 1000, 10, HistogramBase::kNoFlags); in TEST_P()
849 HistogramBase* custom_expired = CustomHistogram::FactoryGet( in TEST_P()
850 kExpiredHistogramName, custom_ranges, HistogramBase::kNoFlags); in TEST_P()
857 HistogramBase* valid = Histogram::FactoryGet("ValidHistogram", 1, 1000, 10, in TEST_P()
858 HistogramBase::kNoFlags); in TEST_P()
865 HistogramBase* linear_valid = LinearHistogram::FactoryGet( in TEST_P()
866 "LinearHistogram", 1, 1000, 10, HistogramBase::kNoFlags); in TEST_P()
873 HistogramBase* custom_valid = CustomHistogram::FactoryGet( in TEST_P()
874 "CustomHistogram", custom_ranges, HistogramBase::kNoFlags); in TEST_P()