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

Unified Diff: content/browser/indexed_db/indexed_db_database_unittest.cc

Issue 18147009: IndexedDB: Remove unnecessary scoped_refptr<T>::get() calls (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: clang-format 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: content/browser/indexed_db/indexed_db_database_unittest.cc
diff --git a/content/browser/indexed_db/indexed_db_database_unittest.cc b/content/browser/indexed_db/indexed_db_database_unittest.cc
index ac98ce3379baa9463ed6588f5be14651b9717924..39bb95549cc8831b6845aeda2911ce49dda69435 100644
--- a/content/browser/indexed_db/indexed_db_database_unittest.cc
+++ b/content/browser/indexed_db/indexed_db_database_unittest.cc
@@ -29,11 +29,8 @@ TEST(IndexedDBDatabaseTest, BackingStoreRetention) {
EXPECT_TRUE(backing_store->HasOneRef());
IndexedDBFactory* factory = 0;
- scoped_refptr<IndexedDBDatabase> db =
- IndexedDBDatabase::Create(ASCIIToUTF16("db"),
- backing_store.get(),
- factory,
- ASCIIToUTF16("uniqueid"));
+ scoped_refptr<IndexedDBDatabase> db = IndexedDBDatabase::Create(
+ ASCIIToUTF16("db"), backing_store, factory, ASCIIToUTF16("uniqueid"));
EXPECT_FALSE(backing_store->HasOneRef()); // local and db
db = NULL;
EXPECT_TRUE(backing_store->HasOneRef()); // local
@@ -100,11 +97,8 @@ TEST(IndexedDBDatabaseTest, ConnectionLifecycle) {
EXPECT_TRUE(backing_store->HasOneRef()); // local
IndexedDBFactory* factory = 0;
- scoped_refptr<IndexedDBDatabase> db =
- IndexedDBDatabase::Create(ASCIIToUTF16("db"),
- backing_store.get(),
- factory,
- ASCIIToUTF16("uniqueid"));
+ scoped_refptr<IndexedDBDatabase> db = IndexedDBDatabase::Create(
+ ASCIIToUTF16("db"), backing_store, factory, ASCIIToUTF16("uniqueid"));
EXPECT_FALSE(backing_store->HasOneRef()); // local and db
@@ -136,7 +130,7 @@ TEST(IndexedDBDatabaseTest, ConnectionLifecycle) {
db->Close(request2->connection());
EXPECT_TRUE(backing_store->HasOneRef());
- EXPECT_FALSE(db->BackingStore().get());
+ EXPECT_FALSE(db->BackingStore());
db = NULL;
}
@@ -167,11 +161,8 @@ TEST(IndexedDBDatabaseTest, ForcedClose) {
EXPECT_TRUE(backing_store->HasOneRef());
IndexedDBFactory* factory = 0;
- scoped_refptr<IndexedDBDatabase> backend =
- IndexedDBDatabase::Create(ASCIIToUTF16("db"),
- backing_store.get(),
- factory,
- ASCIIToUTF16("uniqueid"));
+ scoped_refptr<IndexedDBDatabase> backend = IndexedDBDatabase::Create(
+ ASCIIToUTF16("db"), backing_store, factory, ASCIIToUTF16("uniqueid"));
EXPECT_FALSE(backing_store->HasOneRef()); // local and db
« no previous file with comments | « content/browser/indexed_db/indexed_db_database.cc ('k') | content/browser/indexed_db/indexed_db_dispatcher_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698