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

Unified Diff: content/browser/fileapi/transient_file_util_unittest.cc

Issue 145303002: Convert Media Galleries to use base::File (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 11 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
Index: content/browser/fileapi/transient_file_util_unittest.cc
diff --git a/content/browser/fileapi/transient_file_util_unittest.cc b/content/browser/fileapi/transient_file_util_unittest.cc
index 66d4ad5ba2ff302b3a79fae8258cd7369bdc11e5..4df102ac94a6c8153c87cafc78781a8ccb1861ec 100644
--- a/content/browser/fileapi/transient_file_util_unittest.cc
+++ b/content/browser/fileapi/transient_file_util_unittest.cc
@@ -83,8 +83,8 @@ TEST_F(TransientFileUtilTest, TransientFile) {
CreateAndRegisterTemporaryFile(&temp_url, &temp_path);
- base::PlatformFileError error;
- base::PlatformFileInfo file_info;
+ base::File::Error error;
+ base::File::Info file_info;
base::FilePath path;
// Make sure the file is there.
@@ -100,13 +100,13 @@ TEST_F(TransientFileUtilTest, TransientFile) {
&error,
&file_info,
&path);
- ASSERT_EQ(base::PLATFORM_FILE_OK, error);
+ ASSERT_EQ(base::File::FILE_OK, error);
ASSERT_EQ(temp_path, path);
ASSERT_FALSE(file_info.is_directory);
// The file should be still there.
ASSERT_TRUE(base::PathExists(temp_path));
- ASSERT_EQ(base::PLATFORM_FILE_OK,
+ ASSERT_EQ(base::File::FILE_OK,
file_util()->GetFileInfo(NewOperationContext().get(),
temp_url, &file_info, &path));
ASSERT_EQ(temp_path, path);
@@ -118,7 +118,7 @@ TEST_F(TransientFileUtilTest, TransientFile) {
// Now the temporary file and the transient filesystem must be gone too.
ASSERT_FALSE(base::PathExists(temp_path));
- ASSERT_EQ(base::PLATFORM_FILE_ERROR_NOT_FOUND,
+ ASSERT_EQ(base::File::FILE_ERROR_NOT_FOUND,
file_util()->GetFileInfo(NewOperationContext().get(),
temp_url, &file_info, &path));
}

Powered by Google App Engine
This is Rietveld 408576698