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

Unified Diff: chrome/browser/chrome_thread_unittest.cc

Issue 1837003: Created a stock implementation of the MessageLoopProxy interface than can be ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Rearranged header files Created 10 years, 8 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 | « chrome/browser/chrome_thread.cc ('k') | chrome/browser/net/chrome_url_request_context.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_thread_unittest.cc
===================================================================
--- chrome/browser/chrome_thread_unittest.cc (revision 46408)
+++ chrome/browser/chrome_thread_unittest.cc (working copy)
@@ -112,7 +112,7 @@
}
TEST_F(ChromeThreadTest, PostTaskViaMessageLoopProxy) {
- scoped_refptr<MessageLoopProxy> message_loop_proxy =
+ scoped_refptr<base::MessageLoopProxy> message_loop_proxy =
ChromeThread::GetMessageLoopProxyForThread(ChromeThread::FILE);
message_loop_proxy->PostTask(FROM_HERE,
NewRunnableFunction(&BasicFunction,
@@ -121,7 +121,7 @@
}
TEST_F(ChromeThreadTest, ReleaseViaMessageLoopProxy) {
- scoped_refptr<MessageLoopProxy> message_loop_proxy =
+ scoped_refptr<base::MessageLoopProxy> message_loop_proxy =
ChromeThread::GetMessageLoopProxyForThread(ChromeThread::UI);
message_loop_proxy->ReleaseSoon(FROM_HERE, this);
MessageLoop::current()->Run();
@@ -129,7 +129,7 @@
TEST_F(ChromeThreadTest, TaskToNonExistentThreadIsDeletedViaMessageLoopProxy) {
bool deleted = false;
- scoped_refptr<MessageLoopProxy> message_loop_proxy =
+ scoped_refptr<base::MessageLoopProxy> message_loop_proxy =
ChromeThread::GetMessageLoopProxyForThread(ChromeThread::WEBKIT);
message_loop_proxy->PostTask(FROM_HERE, new DummyTask(&deleted));
EXPECT_TRUE(deleted);
@@ -141,7 +141,7 @@
io_thread->Stop();
bool deleted = false;
- scoped_refptr<MessageLoopProxy> message_loop_proxy =
+ scoped_refptr<base::MessageLoopProxy> message_loop_proxy =
ChromeThread::GetMessageLoopProxyForThread(ChromeThread::IO);
bool ret = message_loop_proxy->PostTask(FROM_HERE, new DummyTask(&deleted));
EXPECT_FALSE(ret);
@@ -154,7 +154,7 @@
io_thread->Start();
}
bool deleted = false;
- scoped_refptr<MessageLoopProxy> message_loop_proxy =
+ scoped_refptr<base::MessageLoopProxy> message_loop_proxy =
ChromeThread::GetMessageLoopProxyForThread(ChromeThread::IO);
bool ret = message_loop_proxy->PostTask(FROM_HERE, new DummyTask(&deleted));
EXPECT_FALSE(ret);
« no previous file with comments | « chrome/browser/chrome_thread.cc ('k') | chrome/browser/net/chrome_url_request_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698