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

Unified Diff: chrome/test/ppapi/ppapi_filechooser_browsertest.cc

Issue 1719983005: base: Stop overloading ReadFileToString() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix errors Created 4 years, 10 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/test/ppapi/ppapi_filechooser_browsertest.cc
diff --git a/chrome/test/ppapi/ppapi_filechooser_browsertest.cc b/chrome/test/ppapi/ppapi_filechooser_browsertest.cc
index 181d1096c9e9ccdf52c0ef44222dc7177cd087d0..74de60a8d9870a3a7cc9eee5da1c2577ec96a36e 100644
--- a/chrome/test/ppapi/ppapi_filechooser_browsertest.cc
+++ b/chrome/test/ppapi/ppapi_filechooser_browsertest.cc
@@ -239,7 +239,7 @@ IN_PROC_BROWSER_TEST_F(PPAPIFileChooserTest,
ASSERT_TRUE(base::PathExists(actual_filename));
std::string file_contents;
- ASSERT_TRUE(base::ReadFileToString(actual_filename, &file_contents, 100));
+ ASSERT_TRUE(base::ReadFileToString(actual_filename, &file_contents));
EXPECT_EQ("Hello from PPAPI", file_contents);
}
@@ -260,7 +260,7 @@ IN_PROC_BROWSER_TEST_F(PPAPIFileChooserTest,
ASSERT_TRUE(base::PathExists(actual_filename));
std::string file_contents;
- ASSERT_TRUE(base::ReadFileToString(actual_filename, &file_contents, 100));
+ ASSERT_TRUE(base::ReadFileToString(actual_filename, &file_contents));
EXPECT_EQ("Hello from PPAPI", file_contents);
}
@@ -295,7 +295,7 @@ IN_PROC_BROWSER_TEST_F(PPAPIFileChooserTest,
ASSERT_TRUE(base::PathExists(actual_filename));
std::string file_contents;
- ASSERT_TRUE(base::ReadFileToString(actual_filename, &file_contents, 100));
+ ASSERT_TRUE(base::ReadFileToString(actual_filename, &file_contents));
EXPECT_EQ("Hello from PPAPI", file_contents);
}
@@ -343,7 +343,7 @@ IN_PROC_BROWSER_TEST_F(PPAPIFileChooserTestWithSBService,
ASSERT_TRUE(base::PathExists(actual_filename));
std::string file_contents;
- ASSERT_TRUE(base::ReadFileToString(actual_filename, &file_contents, 100));
+ ASSERT_TRUE(base::ReadFileToString(actual_filename, &file_contents));
EXPECT_EQ("Hello from PPAPI", file_contents);
}
« no previous file with comments | « chrome/browser/ui/webui/test_files_request_filter.cc ('k') | chromeos/accelerometer/accelerometer_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698