Lines Matching refs:samples2
77 PersistentSampleMap samples2(2, allocator2.get(), &meta2); in TEST() local
78 samples2.Accumulate(1, 200); in TEST()
79 samples2.Accumulate(2, 200); in TEST()
80 samples2.Accumulate(4, 200); in TEST()
82 samples1.Add(samples2); in TEST()
91 samples1.Subtract(samples2); in TEST()
119 PersistentSampleMap samples2(12, allocator2.get(), &meta12); in TEST() local
120 EXPECT_EQ(samples1.id(), samples2.id()); in TEST()
121 EXPECT_EQ(samples1.sum(), samples2.sum()); in TEST()
122 EXPECT_EQ(samples1.redundant_count(), samples2.redundant_count()); in TEST()
123 EXPECT_EQ(samples1.TotalCount(), samples2.TotalCount()); in TEST()
124 EXPECT_EQ(-100, samples2.GetCount(1)); in TEST()
125 EXPECT_EQ(200, samples2.GetCount(2)); in TEST()
126 EXPECT_EQ(1, samples2.GetCount(-1)); in TEST()
127 EXPECT_EQ(299, samples2.sum()); in TEST()
128 EXPECT_EQ(101, samples2.TotalCount()); in TEST()
129 EXPECT_EQ(samples2.redundant_count(), samples2.TotalCount()); in TEST()
132 EXPECT_EQ(0, samples2.GetCount(3)); in TEST()
134 samples2.Accumulate(3, 300); in TEST()
135 EXPECT_EQ(300, samples2.GetCount(3)); in TEST()
137 EXPECT_EQ(samples1.sum(), samples2.sum()); in TEST()
138 EXPECT_EQ(samples1.redundant_count(), samples2.redundant_count()); in TEST()
139 EXPECT_EQ(samples1.TotalCount(), samples2.TotalCount()); in TEST()
141 EXPECT_EQ(0, samples2.GetCount(4)); in TEST()
144 EXPECT_EQ(400, samples2.GetCount(4)); in TEST()
146 samples2.Accumulate(4, 4000); in TEST()
147 EXPECT_EQ(4400, samples2.GetCount(4)); in TEST()
149 EXPECT_EQ(samples1.sum(), samples2.sum()); in TEST()
150 EXPECT_EQ(samples1.redundant_count(), samples2.redundant_count()); in TEST()
151 EXPECT_EQ(samples1.TotalCount(), samples2.TotalCount()); in TEST()
206 PersistentSampleMap samples2(2, allocator2.get(), &meta2); in TEST() local
207 samples2.Accumulate(5, 1); in TEST()
208 samples2.Accumulate(20, 4); in TEST()
209 samples2.Accumulate(25, 5); in TEST()
211 samples1.Subtract(samples2); in TEST()