Lines Matching refs:CtorDtorCounter

79 struct CtorDtorCounter {  struct
80 CtorDtorCounter() { ctor_count++; } in CtorDtorCounter() argument
81 ~CtorDtorCounter() { dtor_count++; } in ~CtorDtorCounter() argument
90 int CtorDtorCounter::ctor_count = -1; argument
91 int CtorDtorCounter::dtor_count = -1;
94 CtorDtorCounter::reset(); in TEST_P()
95 marl::UnboundedPool<CtorDtorCounter, marl::PoolPolicy::Reconstruct> pool; in TEST_P()
96 ASSERT_EQ(CtorDtorCounter::ctor_count, 0); in TEST_P()
97 ASSERT_EQ(CtorDtorCounter::dtor_count, 0); in TEST_P()
100 ASSERT_EQ(CtorDtorCounter::ctor_count, 1); in TEST_P()
101 ASSERT_EQ(CtorDtorCounter::dtor_count, 0); in TEST_P()
103 ASSERT_EQ(CtorDtorCounter::ctor_count, 1); in TEST_P()
104 ASSERT_EQ(CtorDtorCounter::dtor_count, 1); in TEST_P()
107 ASSERT_EQ(CtorDtorCounter::ctor_count, 2); in TEST_P()
108 ASSERT_EQ(CtorDtorCounter::dtor_count, 1); in TEST_P()
110 ASSERT_EQ(CtorDtorCounter::ctor_count, 2); in TEST_P()
111 ASSERT_EQ(CtorDtorCounter::dtor_count, 2); in TEST_P()
115 CtorDtorCounter::reset(); in TEST_P()
116 marl::BoundedPool<CtorDtorCounter, 10, marl::PoolPolicy::Reconstruct> pool; in TEST_P()
117 ASSERT_EQ(CtorDtorCounter::ctor_count, 0); in TEST_P()
118 ASSERT_EQ(CtorDtorCounter::dtor_count, 0); in TEST_P()
121 ASSERT_EQ(CtorDtorCounter::ctor_count, 1); in TEST_P()
122 ASSERT_EQ(CtorDtorCounter::dtor_count, 0); in TEST_P()
124 ASSERT_EQ(CtorDtorCounter::ctor_count, 1); in TEST_P()
125 ASSERT_EQ(CtorDtorCounter::dtor_count, 1); in TEST_P()
128 ASSERT_EQ(CtorDtorCounter::ctor_count, 2); in TEST_P()
129 ASSERT_EQ(CtorDtorCounter::dtor_count, 1); in TEST_P()
131 ASSERT_EQ(CtorDtorCounter::ctor_count, 2); in TEST_P()
132 ASSERT_EQ(CtorDtorCounter::dtor_count, 2); in TEST_P()
136 CtorDtorCounter::reset(); in TEST_P()
138 marl::UnboundedPool<CtorDtorCounter, marl::PoolPolicy::Preserve> pool; in TEST_P()
142 ASSERT_NE(CtorDtorCounter::ctor_count, 0); in TEST_P()
143 ASSERT_EQ(CtorDtorCounter::dtor_count, 0); in TEST_P()
144 ctor_count = CtorDtorCounter::ctor_count; in TEST_P()
146 ASSERT_EQ(CtorDtorCounter::ctor_count, ctor_count); in TEST_P()
147 ASSERT_EQ(CtorDtorCounter::dtor_count, 0); in TEST_P()
150 ASSERT_EQ(CtorDtorCounter::ctor_count, ctor_count); in TEST_P()
151 ASSERT_EQ(CtorDtorCounter::dtor_count, 0); in TEST_P()
153 ASSERT_EQ(CtorDtorCounter::ctor_count, ctor_count); in TEST_P()
154 ASSERT_EQ(CtorDtorCounter::dtor_count, 0); in TEST_P()
156 ASSERT_EQ(CtorDtorCounter::ctor_count, CtorDtorCounter::dtor_count); in TEST_P()
160 CtorDtorCounter::reset(); in TEST_P()
162 marl::BoundedPool<CtorDtorCounter, 10, marl::PoolPolicy::Preserve> pool; in TEST_P()
166 ASSERT_NE(CtorDtorCounter::ctor_count, 0); in TEST_P()
167 ASSERT_EQ(CtorDtorCounter::dtor_count, 0); in TEST_P()
168 ctor_count = CtorDtorCounter::ctor_count; in TEST_P()
170 ASSERT_EQ(CtorDtorCounter::ctor_count, ctor_count); in TEST_P()
171 ASSERT_EQ(CtorDtorCounter::dtor_count, 0); in TEST_P()
174 ASSERT_EQ(CtorDtorCounter::ctor_count, ctor_count); in TEST_P()
175 ASSERT_EQ(CtorDtorCounter::dtor_count, 0); in TEST_P()
177 ASSERT_EQ(CtorDtorCounter::ctor_count, ctor_count); in TEST_P()
178 ASSERT_EQ(CtorDtorCounter::dtor_count, 0); in TEST_P()
180 ASSERT_EQ(CtorDtorCounter::ctor_count, CtorDtorCounter::dtor_count); in TEST_P()