Lines Matching refs:snapshot
486 std::unique_ptr<SampleVector> snapshot = histogram->SnapshotSampleVector();
488 histogram->FindCorruption(*snapshot));
489 EXPECT_EQ(2, snapshot->redundant_count());
490 EXPECT_EQ(2, snapshot->TotalCount());
492 snapshot->counts_[3] += 100; // Sample count won't match redundant count.
494 histogram->FindCorruption(*snapshot));
495 snapshot->counts_[2] -= 200;
497 histogram->FindCorruption(*snapshot));
500 snapshot->counts_[1] += 100;
502 histogram->FindCorruption(*snapshot));
509 std::unique_ptr<HistogramSamples> snapshot = histogram->SnapshotSamples();
511 histogram->FindCorruption(*snapshot));
520 histogram->FindCorruption(*snapshot));
524 EXPECT_EQ(0U, histogram->FindCorruption(*snapshot));
529 histogram->FindCorruption(*snapshot));
533 histogram->FindCorruption(*snapshot));