diff options
Diffstat (limited to 'webkit/fileapi/local_file_system_test_helper.cc')
-rw-r--r-- | webkit/fileapi/local_file_system_test_helper.cc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/webkit/fileapi/local_file_system_test_helper.cc b/webkit/fileapi/local_file_system_test_helper.cc index 120f1fe..fe206f1 100644 --- a/webkit/fileapi/local_file_system_test_helper.cc +++ b/webkit/fileapi/local_file_system_test_helper.cc @@ -15,6 +15,7 @@ #include "webkit/fileapi/file_system_url.h" #include "webkit/fileapi/file_system_usage_cache.h" #include "webkit/fileapi/file_system_util.h" +#include "webkit/fileapi/file_util_helper.h" #include "webkit/fileapi/local_file_system_operation.h" #include "webkit/fileapi/mock_file_system_options.h" #include "webkit/fileapi/sandbox_mount_point_provider.h" @@ -123,6 +124,20 @@ FileSystemURL LocalFileSystemTestOriginHelper::CreateURL(const base::FilePath& p return file_system_context_->CreateCrackedFileSystemURL(origin_, type_, path); } +base::PlatformFileError LocalFileSystemTestOriginHelper::SameFileUtilCopy( + FileSystemOperationContext* context, + const FileSystemURL& src, + const FileSystemURL& dest) const { + return FileUtilHelper::Copy(context, file_util(), file_util(), src, dest); +} + +base::PlatformFileError LocalFileSystemTestOriginHelper::SameFileUtilMove( + FileSystemOperationContext* context, + const FileSystemURL& src, + const FileSystemURL& dest) const { + return FileUtilHelper::Move(context, file_util(), file_util(), src, dest); +} + int64 LocalFileSystemTestOriginHelper::GetCachedOriginUsage() const { return file_system_context_->GetQuotaUtil(type_)->GetOriginUsageOnFileThread( file_system_context_, origin_, type_); |