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

Unified Diff: chrome/common/extensions/api/extension_api_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/api/extension_api_unittest.cc
diff --git a/chrome/common/extensions/api/extension_api_unittest.cc b/chrome/common/extensions/api/extension_api_unittest.cc
index 4feb34f4baff225fd317c3c7fb85080bb8d44f54..8fc92c89cf537fd1882f8a17829e7bb412942c87 100644
--- a/chrome/common/extensions/api/extension_api_unittest.cc
+++ b/chrome/common/extensions/api/extension_api_unittest.cc
@@ -132,7 +132,7 @@ TEST(ExtensionAPITest, IsPrivilegedFeatures) {
.AppendASCII("privileged_api_features.json");
std::string api_features_str;
- ASSERT_TRUE(file_util::ReadFileToString(
+ ASSERT_TRUE(base::ReadFileToString(
api_features_path, &api_features_str)) << "privileged_api_features.json";
scoped_ptr<base::DictionaryValue> value(static_cast<base::DictionaryValue*>(
@@ -228,7 +228,7 @@ TEST(ExtensionAPITest, APIFeatures) {
.AppendASCII("api_features.json");
std::string api_features_str;
- ASSERT_TRUE(file_util::ReadFileToString(
+ ASSERT_TRUE(base::ReadFileToString(
api_features_path, &api_features_str)) << "api_features.json";
scoped_ptr<base::DictionaryValue> value(static_cast<base::DictionaryValue*>(
@@ -300,7 +300,7 @@ TEST(ExtensionAPITest, IsAnyFeatureAvailableToContext) {
.AppendASCII("api_features.json");
std::string api_features_str;
- ASSERT_TRUE(file_util::ReadFileToString(
+ ASSERT_TRUE(base::ReadFileToString(
api_features_path, &api_features_str)) << "api_features.json";
scoped_ptr<base::DictionaryValue> value(static_cast<base::DictionaryValue*>(
@@ -774,7 +774,7 @@ TEST(ExtensionAPITest, TypesHaveNamespace) {
.AppendASCII("types_have_namespace.json");
std::string manifest_str;
- ASSERT_TRUE(file_util::ReadFileToString(manifest_path, &manifest_str))
+ ASSERT_TRUE(base::ReadFileToString(manifest_path, &manifest_str))
<< "Failed to load: " << manifest_path.value();
ExtensionAPI api;
« no previous file with comments | « chrome/common/auto_start_linux.cc ('k') | chrome/common/extensions/api/storage/storage_schema_manifest_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698