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

Unified Diff: webkit/database/database_quota_client_unittest.cc

Issue 7583053: Add MessageLoopProxy::current (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: No need for MessageLoopProxy destruction observer. Created 9 years, 4 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 | « webkit/database/database_connections.cc ('k') | webkit/database/database_tracker_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/database/database_quota_client_unittest.cc
diff --git a/webkit/database/database_quota_client_unittest.cc b/webkit/database/database_quota_client_unittest.cc
index cc2762aad9ea89a9501d92d0626306269bfdfcac..2f29f60b36a33912f322cc51b11ecb96277b9f2b 100644
--- a/webkit/database/database_quota_client_unittest.cc
+++ b/webkit/database/database_quota_client_unittest.cc
@@ -71,7 +71,7 @@ class MockDatabaseTracker : public DatabaseTracker {
net::CompletionCallback* callback) {
++delete_called_count_;
if (async_delete()) {
- base::MessageLoopProxy::CreateForCurrentThread()->PostTask(FROM_HERE,
+ base::MessageLoopProxy::current()->PostTask(FROM_HERE,
NewRunnableMethod(this,
&MockDatabaseTracker::AsyncDeleteDataForOrigin, callback));
return net::ERR_IO_PENDING;
@@ -205,7 +205,7 @@ class DatabaseQuotaClientTest : public testing::Test {
TEST_F(DatabaseQuotaClientTest, GetOriginUsage) {
DatabaseQuotaClient client(
- base::MessageLoopProxy::CreateForCurrentThread(),
+ base::MessageLoopProxy::current(),
mock_tracker());
EXPECT_EQ(0, GetOriginUsage(&client, kOriginA, kTemp));
@@ -221,7 +221,7 @@ TEST_F(DatabaseQuotaClientTest, GetOriginUsage) {
TEST_F(DatabaseQuotaClientTest, GetOriginsForHost) {
DatabaseQuotaClient client(
- base::MessageLoopProxy::CreateForCurrentThread(),
+ base::MessageLoopProxy::current(),
mock_tracker());
EXPECT_EQ(kOriginA.host(), kOriginB.host());
@@ -247,7 +247,7 @@ TEST_F(DatabaseQuotaClientTest, GetOriginsForHost) {
TEST_F(DatabaseQuotaClientTest, GetOriginsForType) {
DatabaseQuotaClient client(
- base::MessageLoopProxy::CreateForCurrentThread(),
+ base::MessageLoopProxy::current(),
mock_tracker());
EXPECT_TRUE(GetOriginsForType(&client, kTemp).empty());
@@ -263,7 +263,7 @@ TEST_F(DatabaseQuotaClientTest, GetOriginsForType) {
TEST_F(DatabaseQuotaClientTest, DeleteOriginData) {
DatabaseQuotaClient client(
- base::MessageLoopProxy::CreateForCurrentThread(),
+ base::MessageLoopProxy::current(),
mock_tracker());
// Perm deletions are short circuited in the Client and
« no previous file with comments | « webkit/database/database_connections.cc ('k') | webkit/database/database_tracker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698