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

Unified Diff: webkit/dom_storage/dom_storage_context_unittest.cc

Issue 16155009: Update webkit/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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/dom_storage/dom_storage_context.cc ('k') | webkit/dom_storage/dom_storage_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 84e8649c2a8b4153332463785d7ab50401997134..ddbed35cbac4e47a56e92b9a05d354bc2235689f 100644
--- a/webkit/dom_storage/dom_storage_context_unittest.cc
+++ b/webkit/dom_storage/dom_storage_context_unittest.cc
@@ -43,8 +43,8 @@ class DomStorageContextTest : public testing::Test {
base::MessageLoopProxy::current());
context_ = new DomStorageContext(temp_dir_.path(),
base::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());
@@ -215,8 +215,10 @@ TEST_F(DomStorageContextTest, DeleteSessionStorage) {
context_->Shutdown();
context_ = NULL;
base::MessageLoop::current()->RunUntilIdle();
- context_ = new DomStorageContext(
- temp_dir_.path(), temp_dir_.path(), storage_policy_, task_runner_);
+ context_ = new DomStorageContext(temp_dir_.path(),
+ temp_dir_.path(),
+ storage_policy_.get(),
+ task_runner_.get());
context_->SetSaveSessionStorageOnDisk();
// Read the data back.
@@ -238,8 +240,10 @@ TEST_F(DomStorageContextTest, DeleteSessionStorage) {
context_->Shutdown();
context_ = NULL;
base::MessageLoop::current()->RunUntilIdle();
- context_ = new DomStorageContext(
- temp_dir_.path(), temp_dir_.path(), storage_policy_, task_runner_);
+ context_ = new DomStorageContext(temp_dir_.path(),
+ temp_dir_.path(),
+ storage_policy_.get(),
+ task_runner_.get());
context_->SetSaveSessionStorageOnDisk();
// Now there should be no data.
« no previous file with comments | « webkit/dom_storage/dom_storage_context.cc ('k') | webkit/dom_storage/dom_storage_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698