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

Unified Diff: chrome/browser/browsing_data/browsing_data_file_system_helper_unittest.cc

Issue 16043006: Rename FileSystemMountPointProvider::ValidateFileSystemRoot to OpenFileSystem (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 | « no previous file | chrome/browser/chromeos/extensions/file_manager/file_browser_handler_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browsing_data/browsing_data_file_system_helper_unittest.cc
diff --git a/chrome/browser/browsing_data/browsing_data_file_system_helper_unittest.cc b/chrome/browser/browsing_data/browsing_data_file_system_helper_unittest.cc
index 66cd3cb436924c01e006423d3c04782242fddc53..f37e49fcb458c465781498e26482dd42b559f442 100644
--- a/chrome/browser/browsing_data/browsing_data_file_system_helper_unittest.cc
+++ b/chrome/browser/browsing_data/browsing_data_file_system_helper_unittest.cc
@@ -100,25 +100,26 @@ class BrowsingDataFileSystemHelperTest : public testing::Test {
}
// Callback that should be executed in response to
- // fileapi::SandboxMountPointProvider::ValidateFileSystemRoot
- void ValidateFileSystemCallback(base::PlatformFileError error) {
- validate_file_system_result_ = error;
+ // fileapi::SandboxMountPointProvider::OpenFileSystem.
+ void OpenFileSystemCallback(base::PlatformFileError error) {
+ open_file_system_result_ = error;
Notify();
}
- // Calls fileapi::SandboxMountPointProvider::ValidateFileSystemRootAndGetURL
+ // Calls fileapi::SandboxMountPointProvider::OpenFileSystem
// to verify the existence of a file system for a specified type and origin,
// blocks until a response is available, then returns the result
// synchronously to it's caller.
bool FileSystemContainsOriginAndType(const GURL& origin,
fileapi::FileSystemType type) {
- sandbox_->ValidateFileSystemRoot(
- origin, type, false,
+ sandbox_->OpenFileSystem(
+ origin, type,
+ fileapi::OPEN_FILE_SYSTEM_FAIL_IF_NONEXISTENT,
base::Bind(
- &BrowsingDataFileSystemHelperTest::ValidateFileSystemCallback,
+ &BrowsingDataFileSystemHelperTest::OpenFileSystemCallback,
base::Unretained(this)));
BlockUntilNotified();
- return validate_file_system_result_ == base::PLATFORM_FILE_OK;
+ return open_file_system_result_ == base::PLATFORM_FILE_OK;
}
// Callback that should be executed in response to StartFetching(), and stores
@@ -186,7 +187,7 @@ class BrowsingDataFileSystemHelperTest : public testing::Test {
// Temporary storage to pass information back from callbacks.
- base::PlatformFileError validate_file_system_result_;
+ base::PlatformFileError open_file_system_result_;
ScopedFileSystemInfoList file_system_info_list_;
scoped_refptr<BrowsingDataFileSystemHelper> helper_;
« no previous file with comments | « no previous file | chrome/browser/chromeos/extensions/file_manager/file_browser_handler_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698