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

Unified Diff: webkit/fileapi/upload_file_system_file_element_reader_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 | « webkit/fileapi/test_mount_point_provider.cc ('k') | webkit/tools/test_shell/simple_file_system.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/fileapi/upload_file_system_file_element_reader_unittest.cc
diff --git a/webkit/fileapi/upload_file_system_file_element_reader_unittest.cc b/webkit/fileapi/upload_file_system_file_element_reader_unittest.cc
index 435f0bf6b391b9f5fc653db6e8d74ab436eae092..93ab5e0a952222b5434f2f77529cd1e95d46fff9 100644
--- a/webkit/fileapi/upload_file_system_file_element_reader_unittest.cc
+++ b/webkit/fileapi/upload_file_system_file_element_reader_unittest.cc
@@ -40,8 +40,8 @@ class UploadFileSystemFileElementReaderTest : public testing::Test {
file_system_context_->OpenFileSystem(
GURL(kFileSystemURLOrigin),
kFileSystemType,
- true, // create
- base::Bind(&UploadFileSystemFileElementReaderTest::OnValidateFileSystem,
+ OPEN_FILE_SYSTEM_CREATE_IF_NONEXISTENT,
+ base::Bind(&UploadFileSystemFileElementReaderTest::OnOpenFileSystem,
base::Unretained(this)));
base::MessageLoop::current()->RunUntilIdle();
ASSERT_TRUE(file_system_root_url_.is_valid());
@@ -109,9 +109,9 @@ class UploadFileSystemFileElementReaderTest : public testing::Test {
*modification_time = file_info.last_modified;
}
- void OnValidateFileSystem(base::PlatformFileError result,
- const std::string& name,
- const GURL& root) {
+ void OnOpenFileSystem(base::PlatformFileError result,
+ const std::string& name,
+ const GURL& root) {
ASSERT_EQ(base::PLATFORM_FILE_OK, result);
ASSERT_TRUE(root.is_valid());
file_system_root_url_ = root;
« no previous file with comments | « webkit/fileapi/test_mount_point_provider.cc ('k') | webkit/tools/test_shell/simple_file_system.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698