Home | History | Annotate | Download | only in debug

Lines Matching refs:ClassA

14 class ClassA {
16 LeakTracker<ClassA> leak_tracker_;
28 EXPECT_EQ(-1, LeakTracker<ClassA>::NumLiveInstances());
32 scoped_ptr<ClassA> a1(new ClassA);
36 EXPECT_EQ(-1, LeakTracker<ClassA>::NumLiveInstances());
44 ClassA a1;
46 EXPECT_EQ(1, LeakTracker<ClassA>::NumLiveInstances());
52 EXPECT_EQ(1, LeakTracker<ClassA>::NumLiveInstances());
55 scoped_ptr<ClassA> a2(new ClassA);
57 EXPECT_EQ(2, LeakTracker<ClassA>::NumLiveInstances());
62 EXPECT_EQ(1, LeakTracker<ClassA>::NumLiveInstances());
66 EXPECT_EQ(0, LeakTracker<ClassA>::NumLiveInstances());
75 scoped_ptr<ClassA> a1(new ClassA);
76 scoped_ptr<ClassA> a2(new ClassA);
77 scoped_ptr<ClassA> a3(new ClassA);
78 scoped_ptr<ClassA> a4(new ClassA);
80 EXPECT_EQ(4, LeakTracker<ClassA>::NumLiveInstances());
84 EXPECT_EQ(3, LeakTracker<ClassA>::NumLiveInstances());
88 EXPECT_EQ(2, LeakTracker<ClassA>::NumLiveInstances());
91 scoped_ptr<ClassA> a5(new ClassA);
92 EXPECT_EQ(3, LeakTracker<ClassA>::NumLiveInstances());
97 EXPECT_EQ(1, LeakTracker<ClassA>::NumLiveInstances());
100 EXPECT_EQ(0, LeakTracker<ClassA>::NumLiveInstances());
104 // There are no live instances of ClassA, so this should do nothing.
105 LeakTracker<ClassA>::CheckForLeaks();