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

Unified Diff: webkit/browser/database/database_quota_client_unittest.cc

Issue 15984016: Call scoped_refptr<T>::get() rather than relying on implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 6 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
Index: webkit/browser/database/database_quota_client_unittest.cc
diff --git a/webkit/browser/database/database_quota_client_unittest.cc b/webkit/browser/database/database_quota_client_unittest.cc
index 4fb4a4cb8dcdc38a64dd1d701c8c8bdcfc1cf58b..329699f87e413914570a768d1d0cb8623e9640be 100644
--- a/webkit/browser/database/database_quota_client_unittest.cc
+++ b/webkit/browser/database/database_quota_client_unittest.cc
@@ -210,9 +210,8 @@ class DatabaseQuotaClientTest : public testing::Test {
TEST_F(DatabaseQuotaClientTest, GetOriginUsage) {
- DatabaseQuotaClient client(
- base::MessageLoopProxy::current(),
- mock_tracker());
+ DatabaseQuotaClient client(base::MessageLoopProxy::current().get(),
+ mock_tracker());
EXPECT_EQ(0, GetOriginUsage(&client, kOriginA, kTemp));
EXPECT_EQ(0, GetOriginUsage(&client, kOriginA, kPerm));
@@ -226,9 +225,8 @@ TEST_F(DatabaseQuotaClientTest, GetOriginUsage) {
}
TEST_F(DatabaseQuotaClientTest, GetOriginsForHost) {
- DatabaseQuotaClient client(
- base::MessageLoopProxy::current(),
- mock_tracker());
+ DatabaseQuotaClient client(base::MessageLoopProxy::current().get(),
+ mock_tracker());
EXPECT_EQ(kOriginA.host(), kOriginB.host());
EXPECT_NE(kOriginA.host(), kOriginOther.host());
@@ -252,9 +250,8 @@ TEST_F(DatabaseQuotaClientTest, GetOriginsForHost) {
}
TEST_F(DatabaseQuotaClientTest, GetOriginsForType) {
- DatabaseQuotaClient client(
- base::MessageLoopProxy::current(),
- mock_tracker());
+ DatabaseQuotaClient client(base::MessageLoopProxy::current().get(),
+ mock_tracker());
EXPECT_TRUE(GetOriginsForType(&client, kTemp).empty());
EXPECT_TRUE(GetOriginsForType(&client, kPerm).empty());
@@ -268,9 +265,8 @@ TEST_F(DatabaseQuotaClientTest, GetOriginsForType) {
}
TEST_F(DatabaseQuotaClientTest, DeleteOriginData) {
- DatabaseQuotaClient client(
- base::MessageLoopProxy::current(),
- mock_tracker());
+ DatabaseQuotaClient client(base::MessageLoopProxy::current().get(),
+ mock_tracker());
// Perm deletions are short circuited in the Client and
// should not reach the DatabaseTracker.
« no previous file with comments | « webkit/browser/blob/mock_blob_url_request_context.cc ('k') | webkit/browser/database/database_tracker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698