Searched refs:ScopedRefPtrToSelf (Results 1 – 2 of 2) sorted by relevance
36 class ScopedRefPtrToSelf : public base::RefCounted<ScopedRefPtrToSelf> { class38 ScopedRefPtrToSelf() : self_ptr_(this) {} in ScopedRefPtrToSelf() function in __anon74b99cce0111::ScopedRefPtrToSelf44 scoped_refptr<ScopedRefPtrToSelf> self_ptr_;47 friend class base::RefCounted<ScopedRefPtrToSelf>;48 ~ScopedRefPtrToSelf() { was_destroyed_ = true; } in ~ScopedRefPtrToSelf()53 bool ScopedRefPtrToSelf::was_destroyed_ = false;121 ScopedRefPtrToSelf::reset_was_destroyed(); in TEST()123 ScopedRefPtrToSelf* check = new ScopedRefPtrToSelf(); in TEST()124 EXPECT_FALSE(ScopedRefPtrToSelf::was_destroyed()); in TEST()126 EXPECT_TRUE(ScopedRefPtrToSelf::was_destroyed()); in TEST()[all …]
37 class ScopedRefPtrToSelf : public base::RefCounted<ScopedRefPtrToSelf> { class39 ScopedRefPtrToSelf() : self_ptr_(this) {} in ScopedRefPtrToSelf() function in __anon091b83080111::ScopedRefPtrToSelf45 scoped_refptr<ScopedRefPtrToSelf> self_ptr_;48 friend class base::RefCounted<ScopedRefPtrToSelf>;49 ~ScopedRefPtrToSelf() { was_destroyed_ = true; } in ~ScopedRefPtrToSelf()54 bool ScopedRefPtrToSelf::was_destroyed_ = false;122 ScopedRefPtrToSelf::reset_was_destroyed(); in TEST()124 ScopedRefPtrToSelf* check = new ScopedRefPtrToSelf(); in TEST()125 EXPECT_FALSE(ScopedRefPtrToSelf::was_destroyed()); in TEST()127 EXPECT_TRUE(ScopedRefPtrToSelf::was_destroyed()); in TEST()[all …]