Lines Matching refs:samples1
83 SampleVector samples1(1, &ranges); in TEST() local
84 samples1.Accumulate(0, 100); in TEST()
85 samples1.Accumulate(2, 100); in TEST()
86 samples1.Accumulate(4, 100); in TEST()
87 EXPECT_EQ(600, samples1.sum()); in TEST()
88 EXPECT_EQ(300, samples1.TotalCount()); in TEST()
89 EXPECT_EQ(samples1.redundant_count(), samples1.TotalCount()); in TEST()
99 samples1.Add(samples2); in TEST()
100 EXPECT_EQ(100, samples1.GetCountAtIndex(0)); in TEST()
101 EXPECT_EQ(200, samples1.GetCountAtIndex(1)); in TEST()
102 EXPECT_EQ(300, samples1.GetCountAtIndex(2)); in TEST()
103 EXPECT_EQ(300, samples1.GetCountAtIndex(3)); in TEST()
104 EXPECT_EQ(2000, samples1.sum()); in TEST()
105 EXPECT_EQ(900, samples1.TotalCount()); in TEST()
106 EXPECT_EQ(samples1.redundant_count(), samples1.TotalCount()); in TEST()
108 samples1.Subtract(samples2); in TEST()
109 EXPECT_EQ(100, samples1.GetCountAtIndex(0)); in TEST()
110 EXPECT_EQ(0, samples1.GetCountAtIndex(1)); in TEST()
111 EXPECT_EQ(100, samples1.GetCountAtIndex(2)); in TEST()
112 EXPECT_EQ(100, samples1.GetCountAtIndex(3)); in TEST()
113 EXPECT_EQ(600, samples1.sum()); in TEST()
114 EXPECT_EQ(300, samples1.TotalCount()); in TEST()
115 EXPECT_EQ(samples1.redundant_count(), samples1.TotalCount()); in TEST()
167 SampleVector samples1(1, &ranges1); in TEST() local
179 samples1.Add(samples2); in TEST()
180 EXPECT_EQ(100, samples1.GetCountAtIndex(0)); in TEST()
184 EXPECT_DEATH(samples1.Add(samples2), ""); in TEST()
185 EXPECT_DEATH(samples1.Subtract(samples2), ""); in TEST()
190 EXPECT_DEATH(samples1.Add(samples2), ""); in TEST()
191 EXPECT_DEATH(samples1.Subtract(samples2), ""); in TEST()
196 EXPECT_DEATH(samples1.Add(samples2), ""); in TEST()
197 EXPECT_DEATH(samples1.Subtract(samples2), ""); in TEST()