Lines Matching defs:call_count
19 void NullaryVoid() { ++call_count; }
20 int NullaryInt() { ++call_count; return 1; }
21 int NullaryConst() const { ++call_count; return 2; }
22 void UnaryVoid(int dummy) { ++call_count; }
23 template <class T> T Identity(T value) { ++call_count; return value; }
24 int UnaryByRef(int& value) const { ++call_count; return ++value; } // NOLINT
25 int Multiply(int a, int b) const { ++call_count; return a * b; }
26 mutable int call_count;
37 EXPECT_EQ(0, object.call_count);
39 EXPECT_EQ(1, object.call_count);
41 EXPECT_EQ(2, object.call_count);
44 EXPECT_EQ(3, object.call_count);
46 EXPECT_EQ(4, object.call_count);
48 EXPECT_EQ(5, object.call_count);
52 EXPECT_EQ(6, object.call_count);
56 EXPECT_EQ(7, object.call_count);
58 EXPECT_EQ(8, object.call_count);