Lines Matching refs:constructed
98 scoped_ptr<ConDecLogger> TestReturnOfType(int* constructed) { in TestReturnOfType() argument
99 return scoped_ptr<ConDecLogger>(new ConDecLogger(constructed)); in TestReturnOfType()
105 int constructed = 0; in TEST() local
112 scoped_ptr<ConDecLogger> scoper(new ConDecLogger(&constructed)); in TEST()
113 EXPECT_EQ(1, constructed); in TEST()
120 EXPECT_EQ(0, constructed); in TEST()
124 scoped_ptr<ConDecLogger> scoper(new ConDecLogger(&constructed)); in TEST()
125 EXPECT_EQ(1, constructed); in TEST()
128 scoper.reset(new ConDecLogger(&constructed)); in TEST()
129 EXPECT_EQ(1, constructed); in TEST()
133 EXPECT_EQ(0, constructed); in TEST()
136 scoper.reset(new ConDecLogger(&constructed)); in TEST()
137 EXPECT_EQ(1, constructed); in TEST()
141 EXPECT_EQ(1, constructed); in TEST()
144 EXPECT_EQ(0, constructed); in TEST()
146 scoper.reset(new ConDecLogger(&constructed)); in TEST()
147 EXPECT_EQ(1, constructed); in TEST()
150 EXPECT_EQ(0, constructed); in TEST()
159 ConDecLogger* logger = new ConDecLogger(&constructed); in TEST()
172 EXPECT_EQ(0, constructed); in TEST()
176 int constructed = 0; in TEST() local
180 scoped_ptr<ConDecLogger> scoper(new ConDecLogger(&constructed)); in TEST()
181 EXPECT_EQ(1, constructed); in TEST()
185 EXPECT_EQ(1, constructed); in TEST()
193 EXPECT_EQ(0, constructed); in TEST()
197 scoped_ptr<ConDecLogger> scoper(new ConDecLogger(&constructed)); in TEST()
198 EXPECT_EQ(1, constructed); in TEST()
203 EXPECT_EQ(1, constructed); in TEST()
207 EXPECT_EQ(0, constructed); in TEST()
211 scoped_ptr<ConDecLogger> scoper(new ConDecLogger(&constructed)); in TEST()
212 EXPECT_EQ(1, constructed); in TEST()
216 EXPECT_EQ(1, constructed); in TEST()
224 EXPECT_EQ(0, constructed); in TEST()
228 scoped_ptr<ConDecLogger> scoper(new ConDecLogger(&constructed)); in TEST()
229 EXPECT_EQ(1, constructed); in TEST()
234 EXPECT_EQ(1, constructed); in TEST()
238 EXPECT_EQ(0, constructed); in TEST()
289 int constructed = 0; in TEST() local
296 scoper[i].SetPtr(&constructed); in TEST()
298 EXPECT_EQ(12, constructed); in TEST()
303 EXPECT_EQ(0, constructed); in TEST()
316 scoper[i].SetPtr(&constructed); in TEST()
318 EXPECT_EQ(12, constructed); in TEST()
320 EXPECT_EQ(0, constructed); in TEST()
324 scoper[i].SetPtr(&constructed); in TEST()
326 EXPECT_EQ(12, constructed); in TEST()
328 EXPECT_EQ(12, constructed); in TEST()
330 EXPECT_EQ(0, constructed); in TEST()
332 EXPECT_EQ(0, constructed); in TEST()
343 loggers[i].SetPtr(&constructed); in TEST()
359 EXPECT_EQ(0, constructed); in TEST()
366 scoper[i].SetPtr(&constructed); in TEST()
368 EXPECT_EQ(kNumLoggers, constructed); in TEST()
372 EXPECT_EQ(kNumLoggers, constructed); in TEST()
377 EXPECT_EQ(kNumLoggers, constructed); in TEST()
382 EXPECT_EQ(0, constructed); in TEST()
386 int constructed = 0; in TEST() local
388 ConDecLogger* logger = new ConDecLogger(&constructed); in TEST()
390 EXPECT_EQ(1, constructed); in TEST()
394 EXPECT_EQ(1, constructed); in TEST()
399 EXPECT_EQ(1, constructed); in TEST()
410 ConDecLogger* logger = new ConDecLogger(&constructed); in TEST()
412 EXPECT_EQ(1, constructed); in TEST()
420 EXPECT_EQ(0, constructed); in TEST()
425 ConDecLogger* logger = new ConDecLogger(&constructed); in TEST()
427 EXPECT_EQ(1, constructed); in TEST()
433 EXPECT_EQ(0, constructed); in TEST()
437 int constructed = 0; in TEST() local
441 ConDecLogger* logger = new ConDecLogger(&constructed); in TEST()
443 EXPECT_EQ(1, constructed); in TEST()
448 EXPECT_EQ(0, constructed); in TEST()
452 ConDecLogger* logger = new ConDecLogger(&constructed); in TEST()
454 EXPECT_EQ(1, constructed); in TEST()
460 EXPECT_EQ(0, constructed); in TEST()
465 TestReturnOfType(&constructed); in TEST()
467 EXPECT_EQ(0, constructed); in TEST()