Lines Matching refs:total
29 explicit Adder(int scaler) : total(0), scaler_(scaler) {} in Adder()
30 void Observe(int x) override { total += x * scaler_; } in Observe()
32 int total; member in base::__anonea3212f50111::Adder
201 EXPECT_EQ(20, a.total); in TEST()
202 EXPECT_EQ(-20, b.total); in TEST()
203 EXPECT_EQ(0, c.total); in TEST()
204 EXPECT_EQ(-10, d.total); in TEST()
205 EXPECT_EQ(0, e.total); in TEST()
232 EXPECT_EQ(20, a.total); in TEST()
233 EXPECT_EQ(-20, b.total); in TEST()
234 EXPECT_EQ(0, c.total); in TEST()
235 EXPECT_EQ(-10, d.total); in TEST()
255 EXPECT_EQ(0, a.total); in TEST()
256 EXPECT_EQ(0, b.total); in TEST()
266 EXPECT_EQ(10, a.total); in TEST()
267 EXPECT_EQ(0, b.total); in TEST()
288 EXPECT_EQ(0, a.total); in TEST()
289 EXPECT_EQ(0, b.total); in TEST()
290 EXPECT_EQ(10, c.total); in TEST()
302 EXPECT_EQ(20, a.total); in TEST()
303 EXPECT_EQ(0, b.total); in TEST()
304 EXPECT_EQ(10, c.total); in TEST()
316 EXPECT_EQ(20, a.total); in TEST()
317 EXPECT_EQ(30, b.total); in TEST()
318 EXPECT_EQ(10, c.total); in TEST()
445 EXPECT_EQ(0, b.adder.total); in TEST()
449 EXPECT_EQ(1, b.adder.total); in TEST()
469 EXPECT_EQ(0, b.adder.total); in TEST()
474 EXPECT_EQ(1, b.adder.total); in TEST()
506 EXPECT_EQ(1, a.adder().total) in TEST()
518 EXPECT_EQ(0, a.adder().total) in TEST()