Lines Matching refs:samples2
103 SampleVector samples2(2, &ranges); in TEST_F() local
104 samples2.Accumulate(1, 200); in TEST_F()
105 samples2.Accumulate(2, 200); in TEST_F()
106 samples2.Accumulate(4, 200); in TEST_F()
107 EXPECT_EQ(1400, samples2.sum()); in TEST_F()
108 EXPECT_EQ(600, samples2.TotalCount()); in TEST_F()
109 EXPECT_EQ(samples2.redundant_count(), samples2.TotalCount()); in TEST_F()
111 samples1.Add(samples2); in TEST_F()
120 samples1.Subtract(samples2); in TEST_F()
157 SampleVector samples2(2, &ranges2); in TEST_F() local
160 samples2.Accumulate(1, 1); in TEST_F()
161 samples2.Accumulate(4, 1); in TEST_F()
162 samples2.Accumulate(5, 2); in TEST_F()
163 samples2.Accumulate(9, 2); in TEST_F()
164 EXPECT_EQ(2, samples2.GetCount(1)); in TEST_F()
165 EXPECT_EQ(4, samples2.GetCount(5)); in TEST_F()
168 EXPECT_DEATH_IF_SUPPORTED(samples2.Accumulate(0, 100), ""); in TEST_F()
169 EXPECT_DEATH_IF_SUPPORTED(samples2.Accumulate(10, 100), ""); in TEST_F()
187 SampleVector samples2(2, &ranges2); in TEST_F() local
189 samples2.Accumulate(1, 100); in TEST_F()
190 samples1.Add(samples2); in TEST_F()
194 samples2.Accumulate(0, 100); in TEST_F()
195 EXPECT_DEATH_IF_SUPPORTED(samples1.Add(samples2), ""); in TEST_F()
196 EXPECT_DEATH_IF_SUPPORTED(samples1.Subtract(samples2), ""); in TEST_F()
200 samples2.Accumulate(0, -100); in TEST_F()
201 samples2.Accumulate(6, 100); in TEST_F()
202 EXPECT_DCHECK_DEATH(samples1.Add(samples2)); in TEST_F()
203 EXPECT_DCHECK_DEATH(samples1.Subtract(samples2)); in TEST_F()
207 samples2.Accumulate(6, -100); in TEST_F()
208 samples2.Accumulate(3, 100); in TEST_F()
209 EXPECT_DCHECK_DEATH(samples1.Add(samples2)); in TEST_F()
210 EXPECT_DCHECK_DEATH(samples1.Subtract(samples2)); in TEST_F()
399 PersistentSampleVector samples2(0, &ranges, &samples_meta, allocation); in TEST_F() local
400 EXPECT_EQ(200, samples2.GetCount(3)); in TEST_F()
401 EXPECT_FALSE(GetSamplesCounts(samples2)); in TEST_F()
406 std::unique_ptr<SampleCountIterator> it = samples2.Iterator(); in TEST_F()
418 EXPECT_FALSE(GetSamplesCounts(samples2)); in TEST_F()
419 EXPECT_EQ(200, samples2.GetCount(3)); in TEST_F()
420 EXPECT_EQ(100, samples2.GetCount(8)); in TEST_F()
421 EXPECT_TRUE(GetSamplesCounts(samples2)); in TEST_F()
422 EXPECT_EQ(3 * 200 + 8 * 100, samples2.sum()); in TEST_F()
423 EXPECT_EQ(300, samples2.TotalCount()); in TEST_F()
424 EXPECT_EQ(300, samples2.redundant_count()); in TEST_F()
426 it = samples2.Iterator(); in TEST_F()
442 EXPECT_TRUE(GetSamplesCounts(samples2)); in TEST_F()
512 PersistentSampleVector samples2(0, &ranges, &samples_meta, allocation); in TEST_F() local
513 EXPECT_EQ(200, samples2.GetCount(3)); in TEST_F()
518 EXPECT_EQ(250, samples2.GetCount(3)); in TEST_F()
519 samples2.Accumulate(3, 50); in TEST_F()
521 EXPECT_EQ(300, samples2.GetCount(3)); in TEST_F()
535 EXPECT_EQ(300, samples2.GetCount(3)); in TEST_F()
537 EXPECT_EQ(100, samples2.GetCount(8)); in TEST_F()
538 samples2.Accumulate(8, 100); in TEST_F()
540 EXPECT_EQ(300, samples2.GetCount(3)); in TEST_F()
542 EXPECT_EQ(200, samples2.GetCount(8)); in TEST_F()