summaryrefslogtreecommitdiffstats
path: root/net/cookies/cookie_monster_store_test.cc
diff options
context:
space:
mode:
authorxhwang@chromium.org <xhwang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-23 20:51:34 +0000
committerxhwang@chromium.org <xhwang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-23 20:51:34 +0000
commit2da659e6279cf515940eb8a091e09e27281a97d6 (patch)
treea34e2eeea8194a16603e24149ae634cb54ddab62 /net/cookies/cookie_monster_store_test.cc
parent954f56f3aceed29573f841648168b91c1fd43074 (diff)
downloadchromium_src-2da659e6279cf515940eb8a091e09e27281a97d6.zip
chromium_src-2da659e6279cf515940eb8a091e09e27281a97d6.tar.gz
chromium_src-2da659e6279cf515940eb8a091e09e27281a97d6.tar.bz2
net: Use base::MessageLoop.
BUG=236029 R=agl@chromium.org Review URL: https://chromiumcodereview.appspot.com/14021017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201882 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/cookies/cookie_monster_store_test.cc')
-rw-r--r--net/cookies/cookie_monster_store_test.cc34
1 files changed, 19 insertions, 15 deletions
diff --git a/net/cookies/cookie_monster_store_test.cc b/net/cookies/cookie_monster_store_test.cc
index 9892fe7..04e39ed 100644
--- a/net/cookies/cookie_monster_store_test.cc
+++ b/net/cookies/cookie_monster_store_test.cc
@@ -41,9 +41,10 @@ void MockPersistentCookieStore::Load(const LoadedCallback& loaded_callback) {
out_cookies = load_result_;
loaded_ = true;
}
- MessageLoop::current()->PostTask(FROM_HERE,
- base::Bind(&LoadedCallbackTask::Run,
- new LoadedCallbackTask(loaded_callback, out_cookies)));
+ base::MessageLoop::current()->PostTask(
+ FROM_HERE,
+ base::Bind(&LoadedCallbackTask::Run,
+ new LoadedCallbackTask(loaded_callback, out_cookies)));
}
void MockPersistentCookieStore::LoadCookiesForKey(
@@ -52,10 +53,11 @@ void MockPersistentCookieStore::LoadCookiesForKey(
if (!loaded_) {
Load(loaded_callback);
} else {
- MessageLoop::current()->PostTask(FROM_HERE,
+ base::MessageLoop::current()->PostTask(
+ FROM_HERE,
base::Bind(&LoadedCallbackTask::Run,
- new LoadedCallbackTask(loaded_callback,
- std::vector<CanonicalCookie*>())));
+ new LoadedCallbackTask(loaded_callback,
+ std::vector<CanonicalCookie*>())));
}
}
@@ -77,7 +79,7 @@ void MockPersistentCookieStore::DeleteCookie(const CanonicalCookie& cookie) {
void MockPersistentCookieStore::Flush(const base::Closure& callback) {
if (!callback.is_null())
- MessageLoop::current()->PostTask(FROM_HERE, callback);
+ base::MessageLoop::current()->PostTask(FROM_HERE, callback);
}
void MockPersistentCookieStore::SetForceKeepSessionState() {
@@ -144,9 +146,10 @@ void MockSimplePersistentCookieStore::Load(
it != cookies_.end(); it++)
out_cookies.push_back(new CanonicalCookie(it->second));
- MessageLoop::current()->PostTask(FROM_HERE,
- base::Bind(&LoadedCallbackTask::Run,
- new LoadedCallbackTask(loaded_callback, out_cookies)));
+ base::MessageLoop::current()->PostTask(
+ FROM_HERE,
+ base::Bind(&LoadedCallbackTask::Run,
+ new LoadedCallbackTask(loaded_callback, out_cookies)));
loaded_ = true;
}
@@ -155,10 +158,11 @@ void MockSimplePersistentCookieStore::LoadCookiesForKey(const std::string& key,
if (!loaded_) {
Load(loaded_callback);
} else {
- MessageLoop::current()->PostTask(FROM_HERE,
- base::Bind(&LoadedCallbackTask::Run,
- new LoadedCallbackTask(loaded_callback,
- std::vector<CanonicalCookie*>())));
+ base::MessageLoop::current()->PostTask(
+ FROM_HERE,
+ base::Bind(&LoadedCallbackTask::Run,
+ new LoadedCallbackTask(loaded_callback,
+ std::vector<CanonicalCookie*>())));
}
}
@@ -185,7 +189,7 @@ void MockSimplePersistentCookieStore::DeleteCookie(
void MockSimplePersistentCookieStore::Flush(const base::Closure& callback) {
if (!callback.is_null())
- MessageLoop::current()->PostTask(FROM_HERE, callback);
+ base::MessageLoop::current()->PostTask(FROM_HERE, callback);
}
void MockSimplePersistentCookieStore::SetForceKeepSessionState() {