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

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

Issue 501183003: Remove implicit conversions from scoped_refptr to T* in content/browser/indexed_db/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 | « content/browser/indexed_db/indexed_db_transaction_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/indexed_db/indexed_db_unittest.cc
diff --git a/content/browser/indexed_db/indexed_db_unittest.cc b/content/browser/indexed_db/indexed_db_unittest.cc
index 3971d5acf3d14cd2e463296f1aacab37e46f2da9..a3d2fb6fa00c9b71836ed1f8aecc294c49e43584 100644
--- a/content/browser/indexed_db/indexed_db_unittest.cc
+++ b/content/browser/indexed_db/indexed_db_unittest.cc
@@ -62,8 +62,11 @@ TEST_F(IndexedDBTest, ClearSessionOnlyDatabases) {
// Create the scope which will ensure we run the destructor of the context
// which should trigger the clean up.
{
- scoped_refptr<IndexedDBContextImpl> idb_context = new IndexedDBContextImpl(
- temp_dir.path(), special_storage_policy_, NULL, task_runner_);
+ scoped_refptr<IndexedDBContextImpl> idb_context =
+ new IndexedDBContextImpl(temp_dir.path(),
+ special_storage_policy_.get(),
+ NULL,
+ task_runner_.get());
normal_path = idb_context->GetFilePathForTesting(
storage::GetIdentifierFromOrigin(kNormalOrigin));
@@ -93,8 +96,11 @@ TEST_F(IndexedDBTest, SetForceKeepSessionState) {
{
// Create some indexedDB paths.
// With the levelDB backend, these are directories.
- scoped_refptr<IndexedDBContextImpl> idb_context = new IndexedDBContextImpl(
- temp_dir.path(), special_storage_policy_, NULL, task_runner_);
+ scoped_refptr<IndexedDBContextImpl> idb_context =
+ new IndexedDBContextImpl(temp_dir.path(),
+ special_storage_policy_.get(),
+ NULL,
+ task_runner_.get());
// Save session state. This should bypass the destruction-time deletion.
idb_context->SetForceKeepSessionState();
@@ -161,8 +167,11 @@ TEST_F(IndexedDBTest, ForceCloseOpenDatabasesOnDelete) {
const GURL kTestOrigin("http://test/");
- scoped_refptr<IndexedDBContextImpl> idb_context = new IndexedDBContextImpl(
- temp_dir.path(), special_storage_policy_, NULL, task_runner_);
+ scoped_refptr<IndexedDBContextImpl> idb_context =
+ new IndexedDBContextImpl(temp_dir.path(),
+ special_storage_policy_.get(),
+ NULL,
+ task_runner_.get());
scoped_refptr<ForceCloseDBCallbacks> open_callbacks =
new ForceCloseDBCallbacks(idb_context, kTestOrigin);
@@ -220,7 +229,7 @@ TEST_F(IndexedDBTest, DeleteFailsIfDirectoryLocked) {
const GURL kTestOrigin("http://test/");
scoped_refptr<IndexedDBContextImpl> idb_context = new IndexedDBContextImpl(
- temp_dir.path(), special_storage_policy_, NULL, task_runner_);
+ temp_dir.path(), special_storage_policy_.get(), NULL, task_runner_.get());
base::FilePath test_path = idb_context->GetFilePathForTesting(
storage::GetIdentifierFromOrigin(kTestOrigin));
@@ -246,7 +255,7 @@ TEST_F(IndexedDBTest, ForceCloseOpenDatabasesOnCommitFailure) {
ASSERT_TRUE(temp_dir.CreateUniqueTempDir());
scoped_refptr<IndexedDBContextImpl> context = new IndexedDBContextImpl(
- temp_dir.path(), special_storage_policy_, NULL, task_runner_);
+ temp_dir.path(), special_storage_policy_.get(), NULL, task_runner_.get());
scoped_refptr<IndexedDBFactoryImpl> factory =
static_cast<IndexedDBFactoryImpl*>(context->GetIDBFactory());
« no previous file with comments | « content/browser/indexed_db/indexed_db_transaction_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698