Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2953)

Unified Diff: base/message_loop_unittest.cc

Issue 360042: First patch in making destructors of refcounted objects private. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: base/message_loop_unittest.cc
===================================================================
--- base/message_loop_unittest.cc (revision 30973)
+++ base/message_loop_unittest.cc (working copy)
@@ -67,6 +67,10 @@
const std::string& result() const { return result_; }
private:
+ friend class base::RefCounted<Foo>;
+
+ ~Foo() {}
+
int test_count_;
std::string result_;
};
@@ -76,6 +80,11 @@
void QuitNow() {
MessageLoop::current()->Quit();
}
+
+ private:
+ friend class base::RefCounted<QuitMsgLoop>;
+
+ ~QuitMsgLoop() {}
};
void RunTest_PostTask(MessageLoop::Type message_loop_type) {

Powered by Google App Engine
This is Rietveld 408576698