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

Unified Diff: webkit/browser/dom_storage/dom_storage_context_unittest.cc

Issue 15990007: Move dom_storage to new locations. (Closed) Base URL: svn://chrome-svn/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
Index: webkit/browser/dom_storage/dom_storage_context_unittest.cc
===================================================================
--- webkit/browser/dom_storage/dom_storage_context_unittest.cc (revision 0)
+++ webkit/browser/dom_storage/dom_storage_context_unittest.cc (working copy)
@@ -11,12 +11,12 @@
#include "base/time.h"
#include "base/utf_string_conversions.h"
#include "testing/gtest/include/gtest/gtest.h"
-#include "webkit/dom_storage/dom_storage_area.h"
-#include "webkit/dom_storage/dom_storage_context.h"
-#include "webkit/dom_storage/dom_storage_namespace.h"
-#include "webkit/dom_storage/dom_storage_task_runner.h"
-#include "webkit/dom_storage/dom_storage_types.h"
-#include "webkit/quota/mock_special_storage_policy.h"
+#include "webkit/browser/dom_storage/dom_storage_area.h"
+#include "webkit/browser/dom_storage/dom_storage_context.h"
+#include "webkit/browser/dom_storage/dom_storage_namespace.h"
+#include "webkit/browser/dom_storage/dom_storage_task_runner.h"
+#include "webkit/browser/quota/mock_special_storage_policy.h"
+#include "webkit/common/dom_storage/dom_storage_types.h"
namespace dom_storage {
@@ -43,8 +43,8 @@
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 @@
// 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());
@@ -216,7 +216,8 @@
context_ = NULL;
base::MessageLoop::current()->RunUntilIdle();
context_ = new DomStorageContext(
- temp_dir_.path(), temp_dir_.path(), storage_policy_, task_runner_);
+ temp_dir_.path(), temp_dir_.path(),
+ storage_policy_.get(), task_runner_.get());
context_->SetSaveSessionStorageOnDisk();
// Read the data back.
@@ -239,7 +240,8 @@
context_ = NULL;
base::MessageLoop::current()->RunUntilIdle();
context_ = new DomStorageContext(
- temp_dir_.path(), temp_dir_.path(), storage_policy_, task_runner_);
+ 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/browser/dom_storage/dom_storage_context.cc ('k') | webkit/browser/dom_storage/dom_storage_database.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698