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

Unified Diff: webkit/fileapi/local_file_system_test_helper.cc

Issue 14096022: Make MountPointProvider pluggable from outside webkit/fileapi (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: build fix etc Created 7 years, 8 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/fileapi/local_file_system_test_helper.cc
diff --git a/webkit/fileapi/local_file_system_test_helper.cc b/webkit/fileapi/local_file_system_test_helper.cc
index 7d4692250703fe255655fec44b0c2da044b922be..7ea89578f162b2c4cfb5e0be9986949aa6bf7739 100644
--- a/webkit/fileapi/local_file_system_test_helper.cc
+++ b/webkit/fileapi/local_file_system_test_helper.cc
@@ -8,7 +8,6 @@
#include "base/message_loop.h"
#include "base/message_loop_proxy.h"
#include "googleurl/src/gurl.h"
-#include "webkit/fileapi/external_mount_points.h"
#include "webkit/fileapi/file_system_context.h"
#include "webkit/fileapi/file_system_file_util.h"
#include "webkit/fileapi/file_system_operation_context.h"
@@ -17,9 +16,8 @@
#include "webkit/fileapi/file_system_usage_cache.h"
#include "webkit/fileapi/file_system_util.h"
#include "webkit/fileapi/local_file_system_operation.h"
-#include "webkit/fileapi/mock_file_system_options.h"
+#include "webkit/fileapi/mock_file_system_context.h"
#include "webkit/fileapi/sandbox_mount_point_provider.h"
-#include "webkit/fileapi/test_mount_point_provider.h"
#include "webkit/quota/mock_special_storage_policy.h"
namespace fileapi {
@@ -39,7 +37,7 @@ LocalFileSystemTestOriginHelper::~LocalFileSystemTestOriginHelper() {
}
void LocalFileSystemTestOriginHelper::SetUp(const base::FilePath& base_dir) {
- SetUp(base_dir, false, NULL);
+ SetUp(base_dir, NULL);
}
void LocalFileSystemTestOriginHelper::SetUp(
@@ -61,18 +59,9 @@ void LocalFileSystemTestOriginHelper::SetUp(
void LocalFileSystemTestOriginHelper::SetUp(
const base::FilePath& base_dir,
- bool unlimited_quota,
quota::QuotaManagerProxy* quota_manager_proxy) {
- scoped_refptr<quota::MockSpecialStoragePolicy> special_storage_policy =
- new quota::MockSpecialStoragePolicy;
- special_storage_policy->SetAllUnlimited(unlimited_quota);
- file_system_context_ = new FileSystemContext(
- FileSystemTaskRunners::CreateMockTaskRunners(),
- ExternalMountPoints::CreateRefCounted().get(),
- special_storage_policy,
- quota_manager_proxy,
- base_dir,
- CreateAllowFileAccessOptions());
+ file_system_context_ = CreateFileSystemContextForTesting(
+ quota_manager_proxy, base_dir);
SetUpFileUtil();
@@ -172,13 +161,6 @@ FileSystemUsageCache* LocalFileSystemTestOriginHelper::usage_cache() {
void LocalFileSystemTestOriginHelper::SetUpFileUtil() {
DCHECK(file_system_context_);
- if (type_ == kFileSystemTypeTest) {
- file_system_context_->RegisterMountPointProvider(
- type_,
- new TestMountPointProvider(
- file_system_context_->task_runners()->file_task_runner(),
- file_system_context_->partition_path()));
- }
file_util_ = file_system_context_->GetFileUtil(type_);
DCHECK(file_util_);
}
« no previous file with comments | « webkit/fileapi/local_file_system_test_helper.h ('k') | webkit/fileapi/media/native_media_file_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698