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

Unified Diff: chrome/common/extensions/extension_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
Index: chrome/common/extensions/extension_unittest.cc
diff --git a/chrome/common/extensions/extension_unittest.cc b/chrome/common/extensions/extension_unittest.cc
index f00cd3cc180cb9d06258f78abf03e9bff3dbb304..7f289906e8ebfbdf41d626217c74157da9b07c98 100644
--- a/chrome/common/extensions/extension_unittest.cc
+++ b/chrome/common/extensions/extension_unittest.cc
@@ -137,7 +137,7 @@ TEST(ExtensionTest, MimeTypeSniffing) {
path = path.AppendASCII("extensions").AppendASCII("good.crx");
std::string data;
- ASSERT_TRUE(file_util::ReadFileToString(path, &data));
+ ASSERT_TRUE(base::ReadFileToString(path, &data));
std::string result;
EXPECT_TRUE(net::SniffMimeType(data.c_str(),
@@ -150,7 +150,7 @@ TEST(ExtensionTest, MimeTypeSniffing) {
data.clear();
result.clear();
path = path.DirName().AppendASCII("bad_magic.crx");
- ASSERT_TRUE(file_util::ReadFileToString(path, &data));
+ ASSERT_TRUE(base::ReadFileToString(path, &data));
EXPECT_TRUE(net::SniffMimeType(data.c_str(),
data.size(),
GURL("http://www.example.com/foo.crx"),
« no previous file with comments | « chrome/common/extensions/extension_file_util.cc ('k') | chrome/common/extensions/manifest_handlers/content_scripts_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698