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

Unified Diff: chrome/browser/media_galleries/fileapi/media_file_validator_browsertest.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: chrome/browser/media_galleries/fileapi/media_file_validator_browsertest.cc
diff --git a/chrome/browser/media_galleries/fileapi/media_file_validator_browsertest.cc b/chrome/browser/media_galleries/fileapi/media_file_validator_browsertest.cc
index b591076cf79ae9fae2c8a170b19c9ee692102ae5..cd4e89b10bc87477c4f2625f9780be0af38f93f1 100644
--- a/chrome/browser/media_galleries/fileapi/media_file_validator_browsertest.cc
+++ b/chrome/browser/media_galleries/fileapi/media_file_validator_browsertest.cc
@@ -39,9 +39,9 @@ const int64 kNoFileSize = -1;
void HandleCheckFileResult(int64 expected_size,
const base::Callback<void(bool success)>& callback,
- base::PlatformFileError result,
- const base::PlatformFileInfo& file_info) {
- if (result == base::PLATFORM_FILE_OK) {
+ base::File::Error result,
+ const base::File::Info& file_info) {
+ if (result == base::File::FILE_OK) {
if (!file_info.is_directory && expected_size != kNoFileSize &&
file_info.size == expected_size) {
callback.Run(true);
@@ -203,11 +203,11 @@ class MediaFileValidatorTest : public InProcessBrowserTest {
// Check that the move succeeded/failed based on expectation and then
// check that the right file exists.
- void OnMoveResult(bool expected_result, base::PlatformFileError result) {
+ void OnMoveResult(bool expected_result, base::File::Error result) {
if (expected_result)
- EXPECT_EQ(base::PLATFORM_FILE_OK, result);
+ EXPECT_EQ(base::File::FILE_OK, result);
else
- EXPECT_EQ(base::PLATFORM_FILE_ERROR_SECURITY, result);
+ EXPECT_EQ(base::File::FILE_ERROR_SECURITY, result);
CheckFiles(!expected_result,
base::Bind(&MediaFileValidatorTest::OnTestFilesCheckResult,
base::Unretained(this)));

Powered by Google App Engine
This is Rietveld 408576698