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

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

Issue 15959006: Deprecate FileSystemMountPointProvider::GetFileSystemRootPathOnFileThread (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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/browser/fileapi/isolated_mount_point_provider.cc ('k') | webkit/browser/fileapi/local_file_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/browser/fileapi/local_file_system_cross_operation_unittest.cc
diff --git a/webkit/browser/fileapi/local_file_system_cross_operation_unittest.cc b/webkit/browser/fileapi/local_file_system_cross_operation_unittest.cc
index c01cca5c3e0965612bedc6fde96e043b5f3c3106..41c9ff43a8481286dbbf44e7766c9d000e939fc2 100644
--- a/webkit/browser/fileapi/local_file_system_cross_operation_unittest.cc
+++ b/webkit/browser/fileapi/local_file_system_cross_operation_unittest.cc
@@ -27,6 +27,14 @@ namespace fileapi {
typedef FileSystemOperation::FileEntryList FileEntryList;
+namespace {
+
+void ExpectOk(base::PlatformFileError error) {
+ ASSERT_EQ(base::PLATFORM_FILE_OK, error);
+}
+
+} // namespace
+
class CrossOperationTestHelper {
public:
CrossOperationTestHelper(
@@ -63,12 +71,13 @@ class CrossOperationTestHelper {
// Prepare the origin's root directory.
FileSystemMountPointProvider* mount_point_provider =
file_system_context_->GetMountPointProvider(src_type_);
- mount_point_provider->GetFileSystemRootPathOnFileThread(
- SourceURL(std::string()), true /* create */);
+ mount_point_provider->ValidateFileSystemRoot(
+ origin_, src_type_, true /* create */, base::Bind(&ExpectOk));
mount_point_provider =
file_system_context_->GetMountPointProvider(dest_type_);
- mount_point_provider->GetFileSystemRootPathOnFileThread(
- DestURL(std::string()), true /* create */);
+ mount_point_provider->ValidateFileSystemRoot(
+ origin_, dest_type_, true /* create */, base::Bind(&ExpectOk));
+ base::MessageLoop::current()->RunUntilIdle();
// Grant relatively big quota initially.
quota_manager_->SetQuota(origin_,
« no previous file with comments | « webkit/browser/fileapi/isolated_mount_point_provider.cc ('k') | webkit/browser/fileapi/local_file_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698