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

Unified Diff: base/message_loop_proxy_impl_unittest.cc

Issue 3971004: Revert "Revert "Const-ify RefCountedThreadSafe::AddRef and Release."" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years, 2 months 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
« no previous file with comments | « base/message_loop_proxy_impl.cc ('k') | base/ref_counted.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/message_loop_proxy_impl_unittest.cc
diff --git a/base/message_loop_proxy_impl_unittest.cc b/base/message_loop_proxy_impl_unittest.cc
index a3cb800a13b41f16a242c9d71803eb6a791ba1cf..8d8ef4e234291df91421d66f5cd3081914d3d886 100644
--- a/base/message_loop_proxy_impl_unittest.cc
+++ b/base/message_loop_proxy_impl_unittest.cc
@@ -12,20 +12,20 @@
class MessageLoopProxyImplTest : public testing::Test {
public:
- void Release() {
+ void Release() const {
AssertOnIOThread();
Quit();
}
- void Quit() {
+ void Quit() const {
loop_.PostTask(FROM_HERE, new MessageLoop::QuitTask);
}
- void AssertOnIOThread() {
+ void AssertOnIOThread() const {
ASSERT_TRUE(io_thread_->message_loop_proxy()->BelongsToCurrentThread());
}
- void AssertOnFileThread() {
+ void AssertOnFileThread() const {
ASSERT_TRUE(file_thread_->message_loop_proxy()->BelongsToCurrentThread());
}
@@ -79,7 +79,7 @@ class MessageLoopProxyImplTest : public testing::Test {
scoped_ptr<base::Thread> file_thread_;
private:
- MessageLoop loop_;
+ mutable MessageLoop loop_;
};
« no previous file with comments | « base/message_loop_proxy_impl.cc ('k') | base/ref_counted.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698