Searched defs:ref_counted (Results 1 - 1 of 1) sorted by relevance

/external/chromium_org/base/
H A Dcancelable_callback_unittest.cc9 #include "base/memory/ref_counted.h"
25 void RefCountedParam(const scoped_refptr<TestRefCounted>& ref_counted) {} argument
96 scoped_refptr<TestRefCounted> ref_counted = new TestRefCounted; local
97 EXPECT_TRUE(ref_counted->HasOneRef());
99 CancelableClosure cancelable(base::Bind(RefCountedParam, ref_counted));
101 EXPECT_TRUE(ref_counted.get());
102 EXPECT_FALSE(ref_counted->HasOneRef());
104 // There is only one reference to |ref_counted| after the Cancel().
107 EXPECT_TRUE(ref_counted.get());
108 EXPECT_TRUE(ref_counted
[all...]

Completed in 269 milliseconds