Lines Matching refs:ScopedRefPtrCountDerived
82 class ScopedRefPtrCountDerived : public ScopedRefPtrCountBase { class
84 ScopedRefPtrCountDerived() { ++constructor_count_; } in ScopedRefPtrCountDerived() function in __anon091b83080111::ScopedRefPtrCountDerived
96 ~ScopedRefPtrCountDerived() override { ++destructor_count_; } in ~ScopedRefPtrCountDerived()
99 friend class base::RefCounted<ScopedRefPtrCountDerived>;
105 int ScopedRefPtrCountDerived::constructor_count_ = 0;
106 int ScopedRefPtrCountDerived::destructor_count_ = 0;
339 ScopedRefPtrCountDerived::reset_count(); in TEST()
346 EXPECT_EQ(0, ScopedRefPtrCountDerived::constructor_count()); in TEST()
347 EXPECT_EQ(0, ScopedRefPtrCountDerived::destructor_count()); in TEST()
350 ScopedRefPtrCountDerived *raw2 = new ScopedRefPtrCountDerived(); in TEST()
351 scoped_refptr<ScopedRefPtrCountDerived> p2(raw2); in TEST()
354 EXPECT_EQ(1, ScopedRefPtrCountDerived::constructor_count()); in TEST()
355 EXPECT_EQ(0, ScopedRefPtrCountDerived::destructor_count()); in TEST()
360 EXPECT_EQ(1, ScopedRefPtrCountDerived::constructor_count()); in TEST()
361 EXPECT_EQ(0, ScopedRefPtrCountDerived::destructor_count()); in TEST()
369 EXPECT_EQ(1, ScopedRefPtrCountDerived::constructor_count()); in TEST()
370 EXPECT_EQ(0, ScopedRefPtrCountDerived::destructor_count()); in TEST()
376 EXPECT_EQ(1, ScopedRefPtrCountDerived::constructor_count()); in TEST()
377 EXPECT_EQ(1, ScopedRefPtrCountDerived::destructor_count()); in TEST()
409 ScopedRefPtrCountDerived::reset_count(); in TEST()
412 ScopedRefPtrCountDerived *raw1 = new ScopedRefPtrCountDerived(); in TEST()
413 scoped_refptr<ScopedRefPtrCountDerived> p1(raw1); in TEST()
416 EXPECT_EQ(1, ScopedRefPtrCountDerived::constructor_count()); in TEST()
417 EXPECT_EQ(0, ScopedRefPtrCountDerived::destructor_count()); in TEST()
423 EXPECT_EQ(1, ScopedRefPtrCountDerived::constructor_count()); in TEST()
424 EXPECT_EQ(0, ScopedRefPtrCountDerived::destructor_count()); in TEST()
432 EXPECT_EQ(1, ScopedRefPtrCountDerived::constructor_count()); in TEST()
433 EXPECT_EQ(1, ScopedRefPtrCountDerived::destructor_count()); in TEST()
439 EXPECT_EQ(1, ScopedRefPtrCountDerived::constructor_count()); in TEST()
440 EXPECT_EQ(1, ScopedRefPtrCountDerived::destructor_count()); in TEST()