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

Unified Diff: chrome/browser/chromeos/drive/fileapi_worker_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
« no previous file with comments | « chrome/browser/chromeos/drive/fileapi_worker.cc ('k') | chrome/browser/chromeos/drive/local_file_reader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/drive/fileapi_worker_unittest.cc
diff --git a/chrome/browser/chromeos/drive/fileapi_worker_unittest.cc b/chrome/browser/chromeos/drive/fileapi_worker_unittest.cc
index dbe9b482446c39fcad04ca2cab660fc44307755d..fea892d836b03e4a5c7a684df0d8923882b0a88d 100644
--- a/chrome/browser/chromeos/drive/fileapi_worker_unittest.cc
+++ b/chrome/browser/chromeos/drive/fileapi_worker_unittest.cc
@@ -70,11 +70,11 @@ void VerifyWrite(
int64 expected_size,
const base::FilePath& expected_written_path,
const std::string& write_data,
- base::PlatformFileError result,
+ base::File::Error result,
base::PlatformFile platform_file,
const base::Closure& close_callback) {
// Check that the file is properly opened.
- EXPECT_EQ(base::PLATFORM_FILE_OK, result);
+ EXPECT_EQ(base::File::FILE_OK, result);
EXPECT_NE(base::kInvalidPlatformFileValue, platform_file);
EXPECT_FALSE(close_callback.is_null());
@@ -104,11 +104,11 @@ void VerifyWrite(
// Helper function of testing OpenFile() for read access. It checks that the
// file is readable and contains |expected_data|.
void VerifyRead(const std::string& expected_data,
- base::PlatformFileError result,
+ base::File::Error result,
base::PlatformFile platform_file,
const base::Closure& close_callback) {
// Check that the file is properly opened.
- EXPECT_EQ(base::PLATFORM_FILE_OK, result);
+ EXPECT_EQ(base::File::FILE_OK, result);
EXPECT_NE(base::kInvalidPlatformFileValue, platform_file);
EXPECT_FALSE(close_callback.is_null());
« no previous file with comments | « chrome/browser/chromeos/drive/fileapi_worker.cc ('k') | chrome/browser/chromeos/drive/local_file_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698