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

Unified Diff: chrome/test/webdriver/webdriver_capabilities_parser_unittest.cc

Issue 19579005: Move ReadFileToString to the base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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/test/reliability/automated_ui_tests.cc ('k') | chrome/test/webdriver/webdriver_logging.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/webdriver/webdriver_capabilities_parser_unittest.cc
diff --git a/chrome/test/webdriver/webdriver_capabilities_parser_unittest.cc b/chrome/test/webdriver/webdriver_capabilities_parser_unittest.cc
index c9c0f2eb56dcab8603f3e2d91b0187126f4688a0..9f79327854697a8b339ed1ae7d499b1e9810ba0b 100644
--- a/chrome/test/webdriver/webdriver_capabilities_parser_unittest.cc
+++ b/chrome/test/webdriver/webdriver_capabilities_parser_unittest.cc
@@ -85,10 +85,10 @@ TEST(CapabilitiesParser, Extensions) {
ASSERT_FALSE(parser.Parse());
ASSERT_EQ(2u, caps.extensions.size());
std::string contents;
- ASSERT_TRUE(file_util::ReadFileToString(caps.extensions[0], &contents));
+ ASSERT_TRUE(base::ReadFileToString(caps.extensions[0], &contents));
EXPECT_STREQ("Man", contents.c_str());
contents.clear();
- ASSERT_TRUE(file_util::ReadFileToString(caps.extensions[1], &contents));
+ ASSERT_TRUE(base::ReadFileToString(caps.extensions[1], &contents));
EXPECT_STREQ("ManMan", contents.c_str());
}
@@ -106,7 +106,7 @@ TEST(CapabilitiesParser, Profile) {
base::FilePath zip = temp_dir.path().AppendASCII("data.zip");
ASSERT_TRUE(zip::Zip(folder, zip, false /* include_hidden_files */));
std::string contents;
- ASSERT_TRUE(file_util::ReadFileToString(zip, &contents));
+ ASSERT_TRUE(base::ReadFileToString(zip, &contents));
std::string base64;
ASSERT_TRUE(base::Base64Encode(contents, &base64));
options->SetString("profile", base64);
@@ -115,7 +115,7 @@ TEST(CapabilitiesParser, Profile) {
CapabilitiesParser parser(&dict, temp_dir.path(), Logger(), &caps);
ASSERT_FALSE(parser.Parse());
std::string new_contents;
- ASSERT_TRUE(file_util::ReadFileToString(
+ ASSERT_TRUE(base::ReadFileToString(
caps.profile.AppendASCII("data"), &new_contents));
EXPECT_STREQ("data", new_contents.c_str());
}
« no previous file with comments | « chrome/test/reliability/automated_ui_tests.cc ('k') | chrome/test/webdriver/webdriver_logging.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698