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

Unified Diff: webkit/dom_storage/dom_storage_context_unittest.cc

Issue 11275088: Remove implicit scoped_refptr operator T* Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 8 years, 2 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/dom_storage/dom_storage_context_unittest.cc
diff --git a/webkit/dom_storage/dom_storage_context_unittest.cc b/webkit/dom_storage/dom_storage_context_unittest.cc
index 6dc174a5ec0125c6b6d28aadce98a5abf7c15066..ce36928d97efe8a073686930d1d53a2695de3a32 100644
--- a/webkit/dom_storage/dom_storage_context_unittest.cc
+++ b/webkit/dom_storage/dom_storage_context_unittest.cc
@@ -40,11 +40,11 @@ class DomStorageContextTest : public testing::Test {
ASSERT_TRUE(temp_dir_.CreateUniqueTempDir());
storage_policy_ = new quota::MockSpecialStoragePolicy;
task_runner_ = new MockDomStorageTaskRunner(
- base::MessageLoopProxy::current());
+ base::MessageLoopProxy::current().get());
context_ = new DomStorageContext(temp_dir_.path(),
FilePath(),
- storage_policy_,
- task_runner_);
+ storage_policy_.get(),
+ task_runner_.get());
}
virtual void TearDown() {
@@ -192,8 +192,8 @@ TEST_F(DomStorageContextTest, DeleteSessionStorage) {
// Create a DomStorageContext which will save sessionStorage on disk.
context_ = new DomStorageContext(temp_dir_.path(),
temp_dir_.path(),
- storage_policy_,
- task_runner_);
+ storage_policy_.get(),
+ task_runner_.get());
context_->SetSaveSessionStorageOnDisk();
ASSERT_EQ(temp_dir_.path(), context_->sessionstorage_directory());
@@ -217,8 +217,8 @@ TEST_F(DomStorageContextTest, DeleteSessionStorage) {
MessageLoop::current()->RunAllPending();
context_ = new DomStorageContext(temp_dir_.path(),
temp_dir_.path(),
- storage_policy_,
- task_runner_);
+ storage_policy_.get(),
+ task_runner_.get());
context_->SetSaveSessionStorageOnDisk();
// Read the data back.
@@ -242,8 +242,8 @@ TEST_F(DomStorageContextTest, DeleteSessionStorage) {
MessageLoop::current()->RunAllPending();
context_ = new DomStorageContext(temp_dir_.path(),
temp_dir_.path(),
- storage_policy_,
- task_runner_);
+ storage_policy_.get(),
+ task_runner_.get());
context_->SetSaveSessionStorageOnDisk();
// Now there should be no data.
« no previous file with comments | « webkit/dom_storage/dom_storage_cached_area_unittest.cc ('k') | webkit/fileapi/file_system_file_stream_reader_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698