Lines Matching refs:snapshot
338 scoped_ptr<SampleVector> snapshot = histogram->SnapshotSampleVector(); in TEST_F() local
340 histogram->FindCorruption(*snapshot)); in TEST_F()
341 EXPECT_EQ(2, snapshot->redundant_count()); in TEST_F()
342 EXPECT_EQ(2, snapshot->TotalCount()); in TEST_F()
344 snapshot->counts_[3] += 100; // Sample count won't match redundant count. in TEST_F()
346 histogram->FindCorruption(*snapshot)); in TEST_F()
347 snapshot->counts_[2] -= 200; in TEST_F()
349 histogram->FindCorruption(*snapshot)); in TEST_F()
352 snapshot->counts_[1] += 100; in TEST_F()
354 histogram->FindCorruption(*snapshot)); in TEST_F()
361 scoped_ptr<SampleVector> snapshot = histogram->SnapshotSampleVector(); in TEST_F() local
363 histogram->FindCorruption(*snapshot)); in TEST_F()
372 histogram->FindCorruption(*snapshot)); in TEST_F()
376 EXPECT_EQ(0, histogram->FindCorruption(*snapshot)); in TEST_F()
381 histogram->FindCorruption(*snapshot)); in TEST_F()
385 histogram->FindCorruption(*snapshot)); in TEST_F()