Home | History | Annotate | Download | only in debug

Lines Matching refs:ClassA

16 class ClassA {
18 LeakTracker<ClassA> leak_tracker_;
30 EXPECT_EQ(-1, LeakTracker<ClassA>::NumLiveInstances());
34 std::unique_ptr<ClassA> a1(new ClassA);
38 EXPECT_EQ(-1, LeakTracker<ClassA>::NumLiveInstances());
46 ClassA a1;
48 EXPECT_EQ(1, LeakTracker<ClassA>::NumLiveInstances());
54 EXPECT_EQ(1, LeakTracker<ClassA>::NumLiveInstances());
57 std::unique_ptr<ClassA> a2(new ClassA);
59 EXPECT_EQ(2, LeakTracker<ClassA>::NumLiveInstances());
64 EXPECT_EQ(1, LeakTracker<ClassA>::NumLiveInstances());
68 EXPECT_EQ(0, LeakTracker<ClassA>::NumLiveInstances());
77 std::unique_ptr<ClassA> a1(new ClassA);
78 std::unique_ptr<ClassA> a2(new ClassA);
79 std::unique_ptr<ClassA> a3(new ClassA);
80 std::unique_ptr<ClassA> a4(new ClassA);
82 EXPECT_EQ(4, LeakTracker<ClassA>::NumLiveInstances());
86 EXPECT_EQ(3, LeakTracker<ClassA>::NumLiveInstances());
90 EXPECT_EQ(2, LeakTracker<ClassA>::NumLiveInstances());
93 std::unique_ptr<ClassA> a5(new ClassA);
94 EXPECT_EQ(3, LeakTracker<ClassA>::NumLiveInstances());
99 EXPECT_EQ(1, LeakTracker<ClassA>::NumLiveInstances());
102 EXPECT_EQ(0, LeakTracker<ClassA>::NumLiveInstances());
106 // There are no live instances of ClassA, so this should do nothing.
107 LeakTracker<ClassA>::CheckForLeaks();