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

Unified Diff: webkit/fileapi/obfuscated_file_util_unittest.cc

Issue 9004019: Cleanup: Removing FileSystemPathManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years, 12 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/fileapi/obfuscated_file_util.cc ('k') | webkit/fileapi/quota_file_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/fileapi/obfuscated_file_util_unittest.cc
diff --git a/webkit/fileapi/obfuscated_file_util_unittest.cc b/webkit/fileapi/obfuscated_file_util_unittest.cc
index af46597e33c1db8839d4a9f260728d53cdfd4d88..117178f1a0e49c9b7bc07dcf60e501364ae523b7 100644
--- a/webkit/fileapi/obfuscated_file_util_unittest.cc
+++ b/webkit/fileapi/obfuscated_file_util_unittest.cc
@@ -17,9 +17,9 @@
#include "testing/gtest/include/gtest/gtest.h"
#include "webkit/fileapi/file_system_context.h"
#include "webkit/fileapi/file_system_operation_context.h"
-#include "webkit/fileapi/file_system_path_manager.h"
#include "webkit/fileapi/file_system_test_helper.h"
#include "webkit/fileapi/file_system_usage_cache.h"
+#include "webkit/fileapi/mock_file_system_options.h"
#include "webkit/fileapi/obfuscated_file_util.h"
#include "webkit/quota/mock_special_storage_policy.h"
#include "webkit/quota/quota_manager.h"
@@ -142,12 +142,15 @@ class ObfuscatedFileUtilTest : public testing::Test {
void SetUp() {
ASSERT_TRUE(data_dir_.CreateUniqueTempDir());
+ scoped_refptr<quota::SpecialStoragePolicy> storage_policy =
+ new quota::MockSpecialStoragePolicy();
+
quota_manager_ = new quota::QuotaManager(
false /* is_incognito */,
data_dir_.path(),
base::MessageLoopProxy::current(),
base::MessageLoopProxy::current(),
- NULL /* special storage policy */);
+ storage_policy);
// Every time we create a new helper, it creates another context, which
// creates another path manager, another sandbox_mount_point_provider, and
@@ -155,20 +158,23 @@ class ObfuscatedFileUtilTest : public testing::Test {
file_system_context_ = new FileSystemContext(
base::MessageLoopProxy::current(),
base::MessageLoopProxy::current(),
- new quota::MockSpecialStoragePolicy(),
+ storage_policy,
quota_manager_->proxy(),
data_dir_.path(),
- false /* incognito */,
- true /* allow_file_access_from_files */,
- NULL /* path_manager */);
+ CreateAllowFileAccessOptions());
obfuscated_file_util_ = static_cast<ObfuscatedFileUtil*>(
- file_system_context_->path_manager()->GetFileUtil(type_));
+ file_system_context_->GetFileUtil(type_));
test_helper_.SetUp(file_system_context_.get(),
obfuscated_file_util_.get());
}
+ void TearDown() {
+ quota_manager_ = NULL;
+ test_helper_.TearDown();
+ }
+
FileSystemOperationContext* NewContext(FileSystemTestOriginHelper* helper) {
FileSystemOperationContext* context;
if (helper)
« no previous file with comments | « webkit/fileapi/obfuscated_file_util.cc ('k') | webkit/fileapi/quota_file_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698