Home
last modified time | relevance | path

Searched refs:ScopedRefPtrToSelf (Results 1 – 2 of 2) sorted by relevance

/external/libweave/third_party/chromium/base/memory/
Dref_counted_unittest.cc36 class ScopedRefPtrToSelf : public base::RefCounted<ScopedRefPtrToSelf> { class
38 ScopedRefPtrToSelf() : self_ptr_(this) {} in ScopedRefPtrToSelf() function in __anon74b99cce0111::ScopedRefPtrToSelf
44 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 …]
/external/libchrome/base/memory/
Dref_counted_unittest.cc37 class ScopedRefPtrToSelf : public base::RefCounted<ScopedRefPtrToSelf> { class
39 ScopedRefPtrToSelf() : self_ptr_(this) {} in ScopedRefPtrToSelf() function in __anon091b83080111::ScopedRefPtrToSelf
45 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 …]