summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chrome_thread_unittest.cc
diff options
context:
space:
mode:
authorsanjeevr@chromium.org <sanjeevr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-06 18:34:24 +0000
committersanjeevr@chromium.org <sanjeevr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-06 18:34:24 +0000
commit656475d275524893e4e9b1f02469fe470721a14e (patch)
tree76198770e24f0bea147c10a50ae2a3bf9c7f7274 /chrome/browser/chrome_thread_unittest.cc
parent7e19edf7255b366b5e4b9b0bb77caf9842a37f1b (diff)
downloadchromium_src-656475d275524893e4e9b1f02469fe470721a14e.zip
chromium_src-656475d275524893e4e9b1f02469fe470721a14e.tar.gz
chromium_src-656475d275524893e4e9b1f02469fe470721a14e.tar.bz2
Created a stock implementation of the MessageLoopProxy interface than can be used to create an implementation that targets the current thread's message loop.
BUG=None TEST=Unit tests provided. Review URL: http://codereview.chromium.org/1837003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46591 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chrome_thread_unittest.cc')
-rw-r--r--chrome/browser/chrome_thread_unittest.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/chrome/browser/chrome_thread_unittest.cc b/chrome/browser/chrome_thread_unittest.cc
index a6ae766..2284d3b 100644
--- a/chrome/browser/chrome_thread_unittest.cc
+++ b/chrome/browser/chrome_thread_unittest.cc
@@ -112,7 +112,7 @@ TEST_F(ChromeThreadTest, NotReleasedIfTargetThreadNonExistent) {
}
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, PostTaskViaMessageLoopProxy) {
}
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, ReleaseViaMessageLoopProxy) {
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 @@ TEST_F(ChromeThreadTest, PostTaskViaMessageLoopProxyAfterThreadExits) {
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 @@ TEST_F(ChromeThreadTest, PostTaskViaMessageLoopProxyAfterThreadIsDeleted) {
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);