diff options
Diffstat (limited to 'base/message_loop_unittest.cc')
-rw-r--r-- | base/message_loop_unittest.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/base/message_loop_unittest.cc b/base/message_loop_unittest.cc index d0fafe3..16d1c1a 100644 --- a/base/message_loop_unittest.cc +++ b/base/message_loop_unittest.cc @@ -67,6 +67,10 @@ class Foo : public base::RefCounted<Foo> { const std::string& result() const { return result_; } private: + friend class base::RefCounted<Foo>; + + ~Foo() {} + int test_count_; std::string result_; }; @@ -76,6 +80,11 @@ class QuitMsgLoop : public base::RefCounted<QuitMsgLoop> { void QuitNow() { MessageLoop::current()->Quit(); } + + private: + friend class base::RefCounted<QuitMsgLoop>; + + ~QuitMsgLoop() {} }; void RunTest_PostTask(MessageLoop::Type message_loop_type) { |