Commit 1c98fddc authored by kinuko@chromium.org's avatar kinuko@chromium.org

Cleanup: Rename LocalFileSystemTestOriginHelper (aka test_helper_) to SandboxFileSystemTestHelper

Now LocalFileSystemTestOriginHelper is used only for
Sandbox FileSystems, I'd like to rename this to more
specific, clear name (as the previous name was too vague and
unclear).

BUG=241701,240658
TEST=existing tests
TBR=avi@chromium.org, nhiroki@chromium.org, tzik@chromium.org

Review URL: https://codereview.chromium.org/15810004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202037 0039d316-1c4b-4281-b951-d872f2087c98
parent 5324b65c
...@@ -467,10 +467,10 @@ ...@@ -467,10 +467,10 @@
'../webkit/fileapi/local_file_system_cross_operation_unittest.cc', '../webkit/fileapi/local_file_system_cross_operation_unittest.cc',
'../webkit/fileapi/local_file_system_operation_unittest.cc', '../webkit/fileapi/local_file_system_operation_unittest.cc',
'../webkit/fileapi/local_file_system_operation_write_unittest.cc', '../webkit/fileapi/local_file_system_operation_write_unittest.cc',
'../webkit/fileapi/local_file_system_test_helper.cc',
'../webkit/fileapi/local_file_system_test_helper.h',
'../webkit/fileapi/mock_file_change_observer.cc', '../webkit/fileapi/mock_file_change_observer.cc',
'../webkit/fileapi/mock_file_change_observer.h', '../webkit/fileapi/mock_file_change_observer.h',
'../webkit/fileapi/sandbox_file_system_test_helper.cc',
'../webkit/fileapi/sandbox_file_system_test_helper.h',
'../webkit/fileapi/syncable/canned_syncable_file_system.cc', '../webkit/fileapi/syncable/canned_syncable_file_system.cc',
'../webkit/fileapi/syncable/canned_syncable_file_system.h', '../webkit/fileapi/syncable/canned_syncable_file_system.h',
'../webkit/fileapi/syncable/file_change_unittest.cc', '../webkit/fileapi/syncable/file_change_unittest.cc',
......
...@@ -184,7 +184,7 @@ class WEBKIT_STORAGE_EXPORT SandboxMountPointProvider ...@@ -184,7 +184,7 @@ class WEBKIT_STORAGE_EXPORT SandboxMountPointProvider
private: private:
friend class SandboxQuotaObserver; friend class SandboxQuotaObserver;
friend class LocalFileSystemTestOriginHelper; friend class SandboxFileSystemTestHelper;
friend class SandboxMountPointProviderMigrationTest; friend class SandboxMountPointProviderMigrationTest;
friend class SandboxMountPointProviderOriginEnumeratorTest; friend class SandboxMountPointProviderOriginEnumeratorTest;
......
...@@ -20,8 +20,8 @@ ...@@ -20,8 +20,8 @@
#include "webkit/fileapi/file_system_context.h" #include "webkit/fileapi/file_system_context.h"
#include "webkit/fileapi/file_system_operation_context.h" #include "webkit/fileapi/file_system_operation_context.h"
#include "webkit/fileapi/file_system_util.h" #include "webkit/fileapi/file_system_util.h"
#include "webkit/fileapi/local_file_system_test_helper.h"
#include "webkit/fileapi/mock_file_change_observer.h" #include "webkit/fileapi/mock_file_change_observer.h"
#include "webkit/fileapi/sandbox_file_system_test_helper.h"
#include "webkit/quota/mock_quota_manager.h" #include "webkit/quota/mock_quota_manager.h"
#include "webkit/quota/quota_manager.h" #include "webkit/quota/quota_manager.h"
...@@ -65,7 +65,7 @@ class LocalFileSystemOperationTest ...@@ -65,7 +65,7 @@ class LocalFileSystemOperationTest
quota_manager_proxy_ = new quota::MockQuotaManagerProxy( quota_manager_proxy_ = new quota::MockQuotaManagerProxy(
quota_manager(), quota_manager(),
base::MessageLoopProxy::current()); base::MessageLoopProxy::current());
test_helper_.SetUp(base_dir, quota_manager_proxy_.get()); sandbox_file_system_.SetUp(base_dir, quota_manager_proxy_.get());
} }
virtual void TearDown() OVERRIDE { virtual void TearDown() OVERRIDE {
...@@ -73,11 +73,11 @@ class LocalFileSystemOperationTest ...@@ -73,11 +73,11 @@ class LocalFileSystemOperationTest
quota_manager_proxy()->SimulateQuotaManagerDestroyed(); quota_manager_proxy()->SimulateQuotaManagerDestroyed();
quota_manager_ = NULL; quota_manager_ = NULL;
quota_manager_proxy_ = NULL; quota_manager_proxy_ = NULL;
test_helper_.TearDown(); sandbox_file_system_.TearDown();
} }
LocalFileSystemOperation* NewOperation() { LocalFileSystemOperation* NewOperation() {
LocalFileSystemOperation* operation = test_helper_.NewOperation(); LocalFileSystemOperation* operation = sandbox_file_system_.NewOperation();
operation->operation_context()->set_change_observers(change_observers()); operation->operation_context()->set_change_observers(change_observers());
return operation; return operation;
} }
...@@ -103,7 +103,7 @@ class LocalFileSystemOperationTest ...@@ -103,7 +103,7 @@ class LocalFileSystemOperationTest
} }
FileSystemFileUtil* file_util() { FileSystemFileUtil* file_util() {
return test_helper_.file_util(); return sandbox_file_system_.file_util();
} }
const ChangeObserverList& change_observers() const { const ChangeObserverList& change_observers() const {
...@@ -115,36 +115,39 @@ class LocalFileSystemOperationTest ...@@ -115,36 +115,39 @@ class LocalFileSystemOperationTest
} }
scoped_ptr<FileSystemOperationContext> NewContext() { scoped_ptr<FileSystemOperationContext> NewContext() {
FileSystemOperationContext* context = test_helper_.NewOperationContext(); FileSystemOperationContext* context =
sandbox_file_system_.NewOperationContext();
// Grant enough quota for all test cases. // Grant enough quota for all test cases.
context->set_allowed_bytes_growth(1000000); context->set_allowed_bytes_growth(1000000);
return make_scoped_ptr(context); return make_scoped_ptr(context);
} }
FileSystemURL URLForPath(const std::string& path) const { FileSystemURL URLForPath(const std::string& path) const {
return test_helper_.CreateURLFromUTF8(path); return sandbox_file_system_.CreateURLFromUTF8(path);
} }
base::FilePath PlatformPath(const std::string& path) { base::FilePath PlatformPath(const std::string& path) {
return test_helper_.GetLocalPath(base::FilePath::FromUTF8Unsafe(path)); return sandbox_file_system_.GetLocalPath(
base::FilePath::FromUTF8Unsafe(path));
} }
bool FileExists(const std::string& path) { bool FileExists(const std::string& path) {
return AsyncFileTestHelper::FileExists( return AsyncFileTestHelper::FileExists(
test_helper_.file_system_context(), URLForPath(path), sandbox_file_system_.file_system_context(), URLForPath(path),
AsyncFileTestHelper::kDontCheckSize); AsyncFileTestHelper::kDontCheckSize);
} }
bool DirectoryExists(const std::string& path) { bool DirectoryExists(const std::string& path) {
return AsyncFileTestHelper::DirectoryExists( return AsyncFileTestHelper::DirectoryExists(
test_helper_.file_system_context(), URLForPath(path)); sandbox_file_system_.file_system_context(), URLForPath(path));
} }
FileSystemURL CreateFile(const std::string& path) { FileSystemURL CreateFile(const std::string& path) {
FileSystemURL url = URLForPath(path); FileSystemURL url = URLForPath(path);
bool created = false; bool created = false;
EXPECT_EQ(base::PLATFORM_FILE_OK, EXPECT_EQ(base::PLATFORM_FILE_OK,
file_util()->EnsureFileExists(NewContext().get(), url, &created)); file_util()->EnsureFileExists(NewContext().get(),
url, &created));
EXPECT_TRUE(created); EXPECT_TRUE(created);
return url; return url;
} }
...@@ -216,14 +219,16 @@ class LocalFileSystemOperationTest ...@@ -216,14 +219,16 @@ class LocalFileSystemOperationTest
} }
int64 GetDataSizeOnDisk() { int64 GetDataSizeOnDisk() {
return test_helper_.ComputeCurrentOriginUsage() - return sandbox_file_system_.ComputeCurrentOriginUsage() -
test_helper_.ComputeCurrentDirectoryDatabaseUsage(); sandbox_file_system_.ComputeCurrentDirectoryDatabaseUsage();
} }
void GetUsageAndQuota(int64* usage, int64* quota) { void GetUsageAndQuota(int64* usage, int64* quota) {
quota::QuotaStatusCode status = quota::QuotaStatusCode status =
AsyncFileTestHelper::GetUsageAndQuota( AsyncFileTestHelper::GetUsageAndQuota(
quota_manager_, test_helper_.origin(), test_helper_.type(), quota_manager_,
sandbox_file_system_.origin(),
sandbox_file_system_.type(),
usage, quota); usage, quota);
base::MessageLoop::current()->RunUntilIdle(); base::MessageLoop::current()->RunUntilIdle();
ASSERT_EQ(quota::kQuotaStatusOk, status); ASSERT_EQ(quota::kQuotaStatusOk, status);
...@@ -233,7 +238,8 @@ class LocalFileSystemOperationTest ...@@ -233,7 +238,8 @@ class LocalFileSystemOperationTest
int64 base_usage; int64 base_usage;
GetUsageAndQuota(&base_usage, NULL); GetUsageAndQuota(&base_usage, NULL);
AsyncFileTestHelper::CreateFile(test_helper_.file_system_context(), url); AsyncFileTestHelper::CreateFile(
sandbox_file_system_.file_system_context(), url);
NewOperation()->Remove(url, false /* recursive */, NewOperation()->Remove(url, false /* recursive */,
base::Bind(&AssertFileErrorEq, FROM_HERE, base::Bind(&AssertFileErrorEq, FROM_HERE,
base::PLATFORM_FILE_OK)); base::PLATFORM_FILE_OK));
...@@ -248,8 +254,8 @@ class LocalFileSystemOperationTest ...@@ -248,8 +254,8 @@ class LocalFileSystemOperationTest
void GrantQuotaForCurrentUsage() { void GrantQuotaForCurrentUsage() {
int64 usage; int64 usage;
GetUsageAndQuota(&usage, NULL); GetUsageAndQuota(&usage, NULL);
quota_manager()->SetQuota(test_helper_.origin(), quota_manager()->SetQuota(sandbox_file_system_.origin(),
test_helper_.storage_type(), sandbox_file_system_.storage_type(),
usage); usage);
} }
...@@ -262,8 +268,8 @@ class LocalFileSystemOperationTest ...@@ -262,8 +268,8 @@ class LocalFileSystemOperationTest
void AddQuota(int64 quota_delta) { void AddQuota(int64 quota_delta) {
int64 quota; int64 quota;
GetUsageAndQuota(NULL, &quota); GetUsageAndQuota(NULL, &quota);
quota_manager()->SetQuota(test_helper_.origin(), quota_manager()->SetQuota(sandbox_file_system_.origin(),
test_helper_.storage_type(), sandbox_file_system_.storage_type(),
quota + quota_delta); quota + quota_delta);
} }
...@@ -274,7 +280,7 @@ class LocalFileSystemOperationTest ...@@ -274,7 +280,7 @@ class LocalFileSystemOperationTest
// Common temp base for nondestructive uses. // Common temp base for nondestructive uses.
base::ScopedTempDir base_; base::ScopedTempDir base_;
LocalFileSystemTestOriginHelper test_helper_; SandboxFileSystemTestHelper sandbox_file_system_;
// For post-operation status. // For post-operation status.
int status_; int status_;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
#include "webkit/fileapi/local_file_system_test_helper.h" #include "webkit/fileapi/sandbox_file_system_test_helper.h"
#include "base/file_util.h" #include "base/file_util.h"
#include "base/message_loop.h" #include "base/message_loop.h"
...@@ -22,72 +22,51 @@ ...@@ -22,72 +22,51 @@
namespace fileapi { namespace fileapi {
LocalFileSystemTestOriginHelper::LocalFileSystemTestOriginHelper( SandboxFileSystemTestHelper::SandboxFileSystemTestHelper(
const GURL& origin, FileSystemType type) const GURL& origin, FileSystemType type)
: origin_(origin), type_(type), file_util_(NULL) { : origin_(origin), type_(type), file_util_(NULL) {
} }
LocalFileSystemTestOriginHelper::LocalFileSystemTestOriginHelper() SandboxFileSystemTestHelper::SandboxFileSystemTestHelper()
: origin_(GURL("http://foo.com")), : origin_(GURL("http://foo.com")),
type_(kFileSystemTypeTemporary), type_(kFileSystemTypeTemporary),
file_util_(NULL) { file_util_(NULL) {
} }
LocalFileSystemTestOriginHelper::~LocalFileSystemTestOriginHelper() { SandboxFileSystemTestHelper::~SandboxFileSystemTestHelper() {
} }
void LocalFileSystemTestOriginHelper::SetUp(const base::FilePath& base_dir) { void SandboxFileSystemTestHelper::SetUp(const base::FilePath& base_dir) {
SetUp(base_dir, NULL); SetUp(base_dir, NULL);
} }
void LocalFileSystemTestOriginHelper::SetUp( void SandboxFileSystemTestHelper::SetUp(
FileSystemContext* file_system_context) { FileSystemContext* file_system_context) {
file_system_context_ = file_system_context; file_system_context_ = file_system_context;
SetUpFileUtil(); SetUpFileSystem();
// Prepare the origin's root directory.
file_system_context_->GetMountPointProvider(type_)->
GetFileSystemRootPathOnFileThread(CreateURL(base::FilePath()),
true /* create */);
// Initialize the usage cache file.
base::FilePath usage_cache_path = GetUsageCachePath();
if (!usage_cache_path.empty())
usage_cache()->UpdateUsage(usage_cache_path, 0);
} }
void LocalFileSystemTestOriginHelper::SetUp( void SandboxFileSystemTestHelper::SetUp(
const base::FilePath& base_dir, const base::FilePath& base_dir,
quota::QuotaManagerProxy* quota_manager_proxy) { quota::QuotaManagerProxy* quota_manager_proxy) {
file_system_context_ = CreateFileSystemContextForTesting( file_system_context_ = CreateFileSystemContextForTesting(
quota_manager_proxy, base_dir); quota_manager_proxy, base_dir);
SetUpFileUtil(); SetUpFileSystem();
// Prepare the origin's root directory.
FileSystemMountPointProvider* mount_point_provider =
file_system_context_->GetMountPointProvider(type_);
mount_point_provider->GetFileSystemRootPathOnFileThread(
CreateURL(base::FilePath()), true /* create */);
// Initialize the usage cache file.
base::FilePath usage_cache_path = GetUsageCachePath();
if (!usage_cache_path.empty())
usage_cache()->UpdateUsage(usage_cache_path, 0);
} }
void LocalFileSystemTestOriginHelper::TearDown() { void SandboxFileSystemTestHelper::TearDown() {
file_system_context_ = NULL; file_system_context_ = NULL;
base::MessageLoop::current()->RunUntilIdle(); base::MessageLoop::current()->RunUntilIdle();
} }
base::FilePath LocalFileSystemTestOriginHelper::GetOriginRootPath() const { base::FilePath SandboxFileSystemTestHelper::GetOriginRootPath() const {
return file_system_context_->GetMountPointProvider(type_)-> return file_system_context_->sandbox_provider()->
GetFileSystemRootPathOnFileThread(CreateURL(base::FilePath()), false); GetBaseDirectoryForOriginAndType(origin_, type_, false);
} }
base::FilePath LocalFileSystemTestOriginHelper::GetLocalPath( base::FilePath SandboxFileSystemTestHelper::GetLocalPath(
const base::FilePath& path) { const base::FilePath& path) {
DCHECK(file_util_); DCHECK(file_util_);
base::FilePath local_path; base::FilePath local_path;
...@@ -96,31 +75,27 @@ base::FilePath LocalFileSystemTestOriginHelper::GetLocalPath( ...@@ -96,31 +75,27 @@ base::FilePath LocalFileSystemTestOriginHelper::GetLocalPath(
return local_path; return local_path;
} }
base::FilePath LocalFileSystemTestOriginHelper::GetLocalPathFromASCII( base::FilePath SandboxFileSystemTestHelper::GetLocalPathFromASCII(
const std::string& path) { const std::string& path) {
return GetLocalPath(base::FilePath().AppendASCII(path)); return GetLocalPath(base::FilePath().AppendASCII(path));
} }
base::FilePath LocalFileSystemTestOriginHelper::GetUsageCachePath() const { base::FilePath SandboxFileSystemTestHelper::GetUsageCachePath() const {
if (type_ != kFileSystemTypeTemporary &&
type_ != kFileSystemTypePersistent &&
type_ != kFileSystemTypeSyncable)
return base::FilePath();
return file_system_context_-> return file_system_context_->
sandbox_provider()->GetUsageCachePathForOriginAndType(origin_, type_); sandbox_provider()->GetUsageCachePathForOriginAndType(origin_, type_);
} }
FileSystemURL LocalFileSystemTestOriginHelper::CreateURL( FileSystemURL SandboxFileSystemTestHelper::CreateURL(
const base::FilePath& path) const { const base::FilePath& path) const {
return file_system_context_->CreateCrackedFileSystemURL(origin_, type_, path); return file_system_context_->CreateCrackedFileSystemURL(origin_, type_, path);
} }
int64 LocalFileSystemTestOriginHelper::GetCachedOriginUsage() const { int64 SandboxFileSystemTestHelper::GetCachedOriginUsage() const {
return file_system_context_->GetQuotaUtil(type_)->GetOriginUsageOnFileThread( return file_system_context_->GetQuotaUtil(type_)->GetOriginUsageOnFileThread(
file_system_context_, origin_, type_); file_system_context_, origin_, type_);
} }
int64 LocalFileSystemTestOriginHelper::ComputeCurrentOriginUsage() { int64 SandboxFileSystemTestHelper::ComputeCurrentOriginUsage() {
usage_cache()->CloseCacheFiles(); usage_cache()->CloseCacheFiles();
int64 size = file_util::ComputeDirectorySize(GetOriginRootPath()); int64 size = file_util::ComputeDirectorySize(GetOriginRootPath());
if (file_util::PathExists(GetUsageCachePath())) if (file_util::PathExists(GetUsageCachePath()))
...@@ -129,16 +104,14 @@ int64 LocalFileSystemTestOriginHelper::ComputeCurrentOriginUsage() { ...@@ -129,16 +104,14 @@ int64 LocalFileSystemTestOriginHelper::ComputeCurrentOriginUsage() {
} }
int64 int64
LocalFileSystemTestOriginHelper::ComputeCurrentDirectoryDatabaseUsage() const { SandboxFileSystemTestHelper::ComputeCurrentDirectoryDatabaseUsage() const {
return file_util::ComputeDirectorySize( return file_util::ComputeDirectorySize(
GetOriginRootPath().AppendASCII("Paths")); GetOriginRootPath().AppendASCII("Paths"));
} }
LocalFileSystemOperation* LocalFileSystemTestOriginHelper::NewOperation() { LocalFileSystemOperation* SandboxFileSystemTestHelper::NewOperation() {
DCHECK(file_system_context_.get()); DCHECK(file_system_context_.get());
DCHECK(file_util_); DCHECK(file_util_);
scoped_ptr<FileSystemOperationContext> operation_context(
NewOperationContext());
LocalFileSystemOperation* operation = static_cast<LocalFileSystemOperation*>( LocalFileSystemOperation* operation = static_cast<LocalFileSystemOperation*>(
file_system_context_->CreateFileSystemOperation( file_system_context_->CreateFileSystemOperation(
CreateURL(base::FilePath()), NULL)); CreateURL(base::FilePath()), NULL));
...@@ -146,7 +119,7 @@ LocalFileSystemOperation* LocalFileSystemTestOriginHelper::NewOperation() { ...@@ -146,7 +119,7 @@ LocalFileSystemOperation* LocalFileSystemTestOriginHelper::NewOperation() {
} }
FileSystemOperationContext* FileSystemOperationContext*
LocalFileSystemTestOriginHelper::NewOperationContext() { SandboxFileSystemTestHelper::NewOperationContext() {
DCHECK(file_system_context_.get()); DCHECK(file_system_context_.get());
FileSystemOperationContext* context = FileSystemOperationContext* context =
new FileSystemOperationContext(file_system_context_.get()); new FileSystemOperationContext(file_system_context_.get());
...@@ -155,14 +128,26 @@ LocalFileSystemTestOriginHelper::NewOperationContext() { ...@@ -155,14 +128,26 @@ LocalFileSystemTestOriginHelper::NewOperationContext() {
return context; return context;
} }
FileSystemUsageCache* LocalFileSystemTestOriginHelper::usage_cache() { FileSystemUsageCache* SandboxFileSystemTestHelper::usage_cache() {
return file_system_context()->sandbox_provider()->usage_cache(); return file_system_context()->sandbox_provider()->usage_cache();
} }
void LocalFileSystemTestOriginHelper::SetUpFileUtil() { void SandboxFileSystemTestHelper::SetUpFileSystem() {
DCHECK(file_system_context_); DCHECK(file_system_context_);
DCHECK(file_system_context_->sandbox_provider()->CanHandleType(type_));
file_util_ = file_system_context_->GetFileUtil(type_); file_util_ = file_system_context_->GetFileUtil(type_);
DCHECK(file_util_); DCHECK(file_util_);
// Prepare the origin's root directory.
file_system_context_->sandbox_provider()->
GetFileSystemRootPathOnFileThread(CreateURL(base::FilePath()),
true /* create */);
// Initialize the usage cache file.
base::FilePath usage_cache_path = GetUsageCachePath();
if (!usage_cache_path.empty())
usage_cache()->UpdateUsage(usage_cache_path, 0);
} }
} // namespace fileapi } // namespace fileapi
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
#ifndef WEBKIT_FILEAPI_LOCAL_FILE_SYSTEM_TEST_HELPER_H_ #ifndef WEBKIT_FILEAPI_SANDBOX_FILE_SYSTEM_TEST_HELPER_H_
#define WEBKIT_FILEAPI_LOCAL_FILE_SYSTEM_TEST_HELPER_H_ #define WEBKIT_FILEAPI_SANDBOX_FILE_SYSTEM_TEST_HELPER_H_
#include <string> #include <string>
...@@ -33,15 +33,15 @@ class LocalFileSystemOperation; ...@@ -33,15 +33,15 @@ class LocalFileSystemOperation;
// Filesystem test helper class that encapsulates test environment for // Filesystem test helper class that encapsulates test environment for
// a given {origin, type} pair. This helper only works for sandboxed // a given {origin, type} pair. This helper only works for sandboxed
// file systems (Temporary, Persistent or Test types). // file systems (Temporary or Persistent).
class LocalFileSystemTestOriginHelper { class SandboxFileSystemTestHelper {
public: public:
LocalFileSystemTestOriginHelper(const GURL& origin, FileSystemType type); SandboxFileSystemTestHelper(const GURL& origin, FileSystemType type);
LocalFileSystemTestOriginHelper(); SandboxFileSystemTestHelper();
~LocalFileSystemTestOriginHelper(); ~SandboxFileSystemTestHelper();
void SetUp(const base::FilePath& base_dir); void SetUp(const base::FilePath& base_dir);
// If you want to use more than one LocalFileSystemTestOriginHelper in // If you want to use more than one SandboxFileSystemTestHelper in
// a single base directory, they have to share a context, so that they don't // a single base directory, they have to share a context, so that they don't
// have multiple databases fighting over the lock to the origin directory // have multiple databases fighting over the lock to the origin directory
// [deep down inside ObfuscatedFileUtil]. // [deep down inside ObfuscatedFileUtil].
...@@ -86,7 +86,7 @@ class LocalFileSystemTestOriginHelper { ...@@ -86,7 +86,7 @@ class LocalFileSystemTestOriginHelper {
FileSystemUsageCache* usage_cache(); FileSystemUsageCache* usage_cache();
private: private:
void SetUpFileUtil(); void SetUpFileSystem();
scoped_refptr<FileSystemContext> file_system_context_; scoped_refptr<FileSystemContext> file_system_context_;
...@@ -97,4 +97,4 @@ class LocalFileSystemTestOriginHelper { ...@@ -97,4 +97,4 @@ class LocalFileSystemTestOriginHelper {
} // namespace fileapi } // namespace fileapi
#endif // WEBKIT_FILEAPI_LOCAL_FILE_SYSTEM_TEST_HELPER_H_ #endif // WEBKIT_FILEAPI_SANDBOX_FILE_SYSTEM_TEST_HELPER_H_
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
#include "webkit/fileapi/file_system_types.h" #include "webkit/fileapi/file_system_types.h"
#include "webkit/fileapi/isolated_context.h" #include "webkit/fileapi/isolated_context.h"
#include "webkit/fileapi/local_file_system_operation.h" #include "webkit/fileapi/local_file_system_operation.h"
#include "webkit/fileapi/local_file_system_test_helper.h" #include "webkit/fileapi/sandbox_file_system_test_helper.h"
#include "webkit/fileapi/syncable/canned_syncable_file_system.h" #include "webkit/fileapi/syncable/canned_syncable_file_system.h"
#include "webkit/fileapi/syncable/local_file_change_tracker.h" #include "webkit/fileapi/syncable/local_file_change_tracker.h"
#include "webkit/fileapi/syncable/local_file_sync_context.h" #include "webkit/fileapi/syncable/local_file_sync_context.h"
...@@ -24,7 +24,7 @@ using fileapi::FileSystemContext; ...@@ -24,7 +24,7 @@ using fileapi::FileSystemContext;
using fileapi::FileSystemOperationContext; using fileapi::FileSystemOperationContext;
using fileapi::FileSystemURL; using fileapi::FileSystemURL;
using fileapi::FileSystemURLSet; using fileapi::FileSystemURLSet;
using fileapi::LocalFileSystemTestOriginHelper; using fileapi::SandboxFileSystemTestHelper;
using quota::QuotaManager; using quota::QuotaManager;
using quota::QuotaStatusCode; using quota::QuotaStatusCode;
...@@ -248,7 +248,7 @@ TEST_F(SyncableFileSystemTest, DisableDirectoryOperations) { ...@@ -248,7 +248,7 @@ TEST_F(SyncableFileSystemTest, DisableDirectoryOperations) {
file_system_.CreateDirectory(URL("dir"))); file_system_.CreateDirectory(URL("dir")));
// Set up another (non-syncable) local file system. // Set up another (non-syncable) local file system.
LocalFileSystemTestOriginHelper other_file_system_( SandboxFileSystemTestHelper other_file_system_(
GURL("http://foo.com/"), fileapi::kFileSystemTypeTemporary); GURL("http://foo.com/"), fileapi::kFileSystemTypeTemporary);
other_file_system_.SetUp(file_system_.file_system_context()); other_file_system_.SetUp(file_system_.file_system_context());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment