Searched refs:CtorDtorCounter (Results 1 - 4 of 4) sorted by relevance

/external/astl/tests/
H A Dtest_memory.cpp58 const CtorDtorCounter kSrc[10];
59 const CtorDtorCounter *begin = kSrc;
60 const CtorDtorCounter *end = begin + kLen;
61 CtorDtorCounter *dest = new CtorDtorCounter[kLen];
62 CtorDtorCounter *const kDest = dest;
63 CtorDtorCounter *res;
65 CtorDtorCounter::reset();
68 EXPECT_TRUE(kLen == CtorDtorCounter::mCopyCtorCount);
69 EXPECT_TRUE(0 == CtorDtorCounter
[all...]
H A Dtest_uninitialized.cpp78 CtorDtorCounter::reset();
80 CtorDtorCounter src[kSize];
81 CtorDtorCounter *dest = static_cast<CtorDtorCounter*>(
82 malloc(kSize * sizeof(CtorDtorCounter)));
84 EXPECT_TRUE(CtorDtorCounter::mCtorCount == kSize);
85 EXPECT_TRUE(CtorDtorCounter::mCopyCtorCount == 0);
86 EXPECT_TRUE(CtorDtorCounter::mDtorCount == 0);
88 CtorDtorCounter::reset();
92 EXPECT_TRUE(CtorDtorCounter
[all...]
H A Dcommon.h70 class CtorDtorCounter { class in namespace:__anon313
77 CtorDtorCounter() {++mCtorCount;} function in class:__anon313::CtorDtorCounter
78 CtorDtorCounter(const CtorDtorCounter& nc) {++mCopyCtorCount;} function in class:__anon313::CtorDtorCounter
79 CtorDtorCounter& operator=(const CtorDtorCounter& nc) {++mAssignCount; return *this;}
80 ~CtorDtorCounter() {++mDtorCount;}
83 std::fprintf(stderr, "CtorDtorCounter: %d %d %d %d\n",
90 size_t CtorDtorCounter::mCtorCount;
91 size_t CtorDtorCounter
[all...]
H A Dtest_vector.cpp250 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
[all...]

Completed in 537 milliseconds