ScopedRefPtrToSelf 25 base/memory/ref_counted_unittest.cc class ScopedRefPtrToSelf : public base::RefCounted<ScopedRefPtrToSelf> { ScopedRefPtrToSelf 34 base/memory/ref_counted_unittest.cc friend class base::RefCounted<ScopedRefPtrToSelf>; ScopedRefPtrToSelf 35 base/memory/ref_counted_unittest.cc ~ScopedRefPtrToSelf() { was_destroyed_ = true; } ScopedRefPtrToSelf 39 base/memory/ref_counted_unittest.cc scoped_refptr<ScopedRefPtrToSelf> self_ptr_; ScopedRefPtrToSelf 42 base/memory/ref_counted_unittest.cc bool ScopedRefPtrToSelf::was_destroyed_ = false; ScopedRefPtrToSelf 57 base/memory/ref_counted_unittest.cc TEST(RefCountedUnitTest, ScopedRefPtrToSelf) { ScopedRefPtrToSelf 58 base/memory/ref_counted_unittest.cc ScopedRefPtrToSelf* check = new ScopedRefPtrToSelf(); ScopedRefPtrToSelf 59 base/memory/ref_counted_unittest.cc EXPECT_FALSE(ScopedRefPtrToSelf::was_destroyed()); ScopedRefPtrToSelf 61 base/memory/ref_counted_unittest.cc EXPECT_TRUE(ScopedRefPtrToSelf::was_destroyed());