Home | History | Annotate | Download | only in tests

Lines Matching refs:CtorDtorCounter

250         vector<CtorDtorCounter> vec1;
251 CtorDtorCounter c;
319 CtorDtorCounter instance;
320 vector<CtorDtorCounter> vec2(10, instance);
322 CtorDtorCounter::reset();
328 EXPECT_TRUE(CtorDtorCounter::mDtorCount == 10);
366 vector<CtorDtorCounter> vec;
367 CtorDtorCounter::reset();
369 EXPECT_TRUE(CtorDtorCounter::mCtorCount == 1); // default arg.
370 EXPECT_TRUE(CtorDtorCounter::mCopyCtorCount == 10); // copied 10 times.
372 CtorDtorCounter::reset();
374 EXPECT_TRUE(CtorDtorCounter::mCtorCount == 1); // default arg.
375 EXPECT_TRUE(CtorDtorCounter::mCopyCtorCount == 200);
377 CtorDtorCounter::reset();
381 EXPECT_TRUE(CtorDtorCounter::mCtorCount == 1); // default arg.
382 EXPECT_TRUE(CtorDtorCounter::mDtorCount == 2);
384 CtorDtorCounter::reset();
388 EXPECT_TRUE(CtorDtorCounter::mCtorCount == 1); // default arg.
389 EXPECT_TRUE(CtorDtorCounter::mDtorCount == 200);
463 CtorDtorCounter::reset();
464 vector<CtorDtorCounter> vec1;
466 EXPECT_TRUE(CtorDtorCounter::mCtorCount == 0);
467 EXPECT_TRUE(CtorDtorCounter::mCopyCtorCount == 0);
469 EXPECT_TRUE(CtorDtorCounter::mDtorCount == 0);
472 CtorDtorCounter instance;
473 EXPECT_TRUE(CtorDtorCounter::mCtorCount == 1);
474 CtorDtorCounter::reset();
476 vector<CtorDtorCounter> vec2(200, instance);
479 EXPECT_TRUE(CtorDtorCounter::mAssignCount == 0);
480 EXPECT_TRUE(CtorDtorCounter::mCtorCount == 0);
481 EXPECT_TRUE(CtorDtorCounter::mCopyCtorCount == 200);
482 EXPECT_TRUE(CtorDtorCounter::mDtorCount == 0);
484 CtorDtorCounter::reset();
488 EXPECT_TRUE(CtorDtorCounter::mCopyCtorCount == 200);
489 EXPECT_TRUE(CtorDtorCounter::mDtorCount == 200);
490 EXPECT_TRUE(CtorDtorCounter::mCtorCount == 0);
491 EXPECT_TRUE(CtorDtorCounter::mAssignCount == 0);
493 CtorDtorCounter::reset();
496 EXPECT_TRUE(CtorDtorCounter::mDtorCount == 201);