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

Unified Diff: webkit/fileapi/file_system_test_helper.cc

Issue 9616033: Merge CrossFileUtilHelper to FileUtilHelper as Copy() and Move(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 9 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/file_system_test_helper.h ('k') | webkit/fileapi/file_util_helper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/fileapi/file_system_test_helper.cc
diff --git a/webkit/fileapi/file_system_test_helper.cc b/webkit/fileapi/file_system_test_helper.cc
index 9f3705dc70c7c54212a12ed9c829fbbb92c8d570..958da183841d84fc1a188ae81ab1f9c87d73871a 100644
--- a/webkit/fileapi/file_system_test_helper.cc
+++ b/webkit/fileapi/file_system_test_helper.cc
@@ -13,6 +13,7 @@
#include "webkit/fileapi/file_system_operation_context.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/mock_file_system_options.h"
#include "webkit/fileapi/sandbox_mount_point_provider.h"
#include "webkit/quota/mock_special_storage_policy.h"
@@ -134,24 +135,14 @@ base::PlatformFileError FileSystemTestOriginHelper::SameFileUtilCopy(
FileSystemOperationContext* context,
const FileSystemPath& src,
const FileSystemPath& dest) const {
- CrossFileUtilHelper cross_util_helper(
- context,
- file_util(), file_util(),
- src, dest,
- CrossFileUtilHelper::OPERATION_COPY);
- return cross_util_helper.DoWork();
+ return FileUtilHelper::Copy(context, file_util(), file_util(), src, dest);
}
base::PlatformFileError FileSystemTestOriginHelper::SameFileUtilMove(
FileSystemOperationContext* context,
const FileSystemPath& src,
const FileSystemPath& dest) const {
- CrossFileUtilHelper cross_util_helper(
- context,
- file_util(), file_util(),
- src, dest,
- CrossFileUtilHelper::OPERATION_MOVE);
- return cross_util_helper.DoWork();
+ return FileUtilHelper::Move(context, file_util(), file_util(), src, dest);
}
int64 FileSystemTestOriginHelper::GetCachedOriginUsage() const {
« no previous file with comments | « webkit/fileapi/file_system_test_helper.h ('k') | webkit/fileapi/file_util_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698