Lines Matching refs:ScopedRefPtrCountDerived
85 class ScopedRefPtrCountDerived : public ScopedRefPtrCountBase { class
87 ScopedRefPtrCountDerived() { ++constructor_count_; } in ScopedRefPtrCountDerived() function in __anon091b83080111::ScopedRefPtrCountDerived
99 ~ScopedRefPtrCountDerived() override { ++destructor_count_; } in ~ScopedRefPtrCountDerived()
102 friend class base::RefCounted<ScopedRefPtrCountDerived>;
108 int ScopedRefPtrCountDerived::constructor_count_ = 0;
109 int ScopedRefPtrCountDerived::destructor_count_ = 0;
455 ScopedRefPtrCountDerived::reset_count(); in TEST()
462 EXPECT_EQ(0, ScopedRefPtrCountDerived::constructor_count()); in TEST()
463 EXPECT_EQ(0, ScopedRefPtrCountDerived::destructor_count()); in TEST()
466 ScopedRefPtrCountDerived *raw2 = new ScopedRefPtrCountDerived(); in TEST()
467 scoped_refptr<ScopedRefPtrCountDerived> p2(raw2); in TEST()
470 EXPECT_EQ(1, ScopedRefPtrCountDerived::constructor_count()); in TEST()
471 EXPECT_EQ(0, ScopedRefPtrCountDerived::destructor_count()); in TEST()
476 EXPECT_EQ(1, ScopedRefPtrCountDerived::constructor_count()); in TEST()
477 EXPECT_EQ(0, ScopedRefPtrCountDerived::destructor_count()); in TEST()
485 EXPECT_EQ(1, ScopedRefPtrCountDerived::constructor_count()); in TEST()
486 EXPECT_EQ(0, ScopedRefPtrCountDerived::destructor_count()); in TEST()
492 EXPECT_EQ(1, ScopedRefPtrCountDerived::constructor_count()); in TEST()
493 EXPECT_EQ(1, ScopedRefPtrCountDerived::destructor_count()); in TEST()
525 ScopedRefPtrCountDerived::reset_count(); in TEST()
528 ScopedRefPtrCountDerived *raw1 = new ScopedRefPtrCountDerived(); in TEST()
529 scoped_refptr<ScopedRefPtrCountDerived> p1(raw1); in TEST()
532 EXPECT_EQ(1, ScopedRefPtrCountDerived::constructor_count()); in TEST()
533 EXPECT_EQ(0, ScopedRefPtrCountDerived::destructor_count()); in TEST()
539 EXPECT_EQ(1, ScopedRefPtrCountDerived::constructor_count()); in TEST()
540 EXPECT_EQ(0, ScopedRefPtrCountDerived::destructor_count()); in TEST()
548 EXPECT_EQ(1, ScopedRefPtrCountDerived::constructor_count()); in TEST()
549 EXPECT_EQ(1, ScopedRefPtrCountDerived::destructor_count()); in TEST()
555 EXPECT_EQ(1, ScopedRefPtrCountDerived::constructor_count()); in TEST()
556 EXPECT_EQ(1, ScopedRefPtrCountDerived::destructor_count()); in TEST()