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

Unified Diff: webkit/browser/fileapi/copy_or_move_operation_delegate_unittest.cc

Issue 20277003: FileAPI: Clean up around FileSystemBackend (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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 | « content/browser/fileapi/browser_file_system_helper.cc ('k') | webkit/browser/fileapi/file_system_backend.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/browser/fileapi/copy_or_move_operation_delegate_unittest.cc
diff --git a/webkit/browser/fileapi/copy_or_move_operation_delegate_unittest.cc b/webkit/browser/fileapi/copy_or_move_operation_delegate_unittest.cc
index 1b7c872ee2c238fc4388931731d2b9fa5dc9b610..95e73c6c0d041991e93811dd0576e0116e879dd4 100644
--- a/webkit/browser/fileapi/copy_or_move_operation_delegate_unittest.cc
+++ b/webkit/browser/fileapi/copy_or_move_operation_delegate_unittest.cc
@@ -127,26 +127,23 @@ class CopyOrMoveOperationTestHelper {
CreateFileSystemContextForTesting(quota_manager_proxy_.get(), base_dir);
// Prepare the origin's root directory.
- FileSystemBackend* mount_point_provider =
+ FileSystemBackend* backend =
file_system_context_->GetFileSystemBackend(src_type_);
- mount_point_provider->OpenFileSystem(
- origin_, src_type_,
- OPEN_FILE_SYSTEM_CREATE_IF_NONEXISTENT,
- base::Bind(&ExpectOk));
- mount_point_provider =
- file_system_context_->GetFileSystemBackend(dest_type_);
+ backend->OpenFileSystem(origin_, src_type_,
+ OPEN_FILE_SYSTEM_CREATE_IF_NONEXISTENT,
+ base::Bind(&ExpectOk));
+ backend = file_system_context_->GetFileSystemBackend(dest_type_);
if (dest_type_ == kFileSystemTypeTest) {
- TestFileSystemBackend* test_provider =
- static_cast<TestFileSystemBackend*>(mount_point_provider);
+ TestFileSystemBackend* test_backend =
+ static_cast<TestFileSystemBackend*>(backend);
scoped_ptr<CopyOrMoveFileValidatorFactory> factory(
new TestValidatorFactory);
- test_provider->set_require_copy_or_move_validator(true);
- test_provider->InitializeCopyOrMoveFileValidatorFactory(factory.Pass());
+ test_backend->set_require_copy_or_move_validator(true);
+ test_backend->InitializeCopyOrMoveFileValidatorFactory(factory.Pass());
}
- mount_point_provider->OpenFileSystem(
- origin_, dest_type_,
- OPEN_FILE_SYSTEM_CREATE_IF_NONEXISTENT,
- base::Bind(&ExpectOk));
+ backend->OpenFileSystem(origin_, dest_type_,
+ OPEN_FILE_SYSTEM_CREATE_IF_NONEXISTENT,
+ base::Bind(&ExpectOk));
base::MessageLoop::current()->RunUntilIdle();
// Grant relatively big quota initially.
« no previous file with comments | « content/browser/fileapi/browser_file_system_helper.cc ('k') | webkit/browser/fileapi/file_system_backend.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698