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

Unified Diff: chrome/browser/safe_browsing/download_protection_service_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/browser/safe_browsing/download_protection_service_unittest.cc
diff --git a/chrome/browser/safe_browsing/download_protection_service_unittest.cc b/chrome/browser/safe_browsing/download_protection_service_unittest.cc
index 91cf222b7e4a1029336f995f5d7d7a8710e1c580..9175ed1c4b3544954c5434d296a29910553f1494 100644
--- a/chrome/browser/safe_browsing/download_protection_service_unittest.cc
+++ b/chrome/browser/safe_browsing/download_protection_service_unittest.cc
@@ -118,7 +118,7 @@ ACTION_P(TrustSignature, certificate_file) {
// Add a certificate chain. Note that we add the certificate twice so that
// it appears as its own issuer.
std::string cert_data;
- ASSERT_TRUE(file_util::ReadFileToString(certificate_file, &cert_data));
+ ASSERT_TRUE(base::ReadFileToString(certificate_file, &cert_data));
ClientDownloadRequest_CertificateChain* chain =
arg1->add_certificate_chain();
chain->add_element()->set_certificate(cert_data);
@@ -239,8 +239,8 @@ class DownloadProtectionServiceTest : public testing::Test {
scoped_refptr<net::X509Certificate> ReadTestCertificate(
const std::string& filename) {
std::string cert_data;
- if (!file_util::ReadFileToString(testdata_path_.AppendASCII(filename),
- &cert_data)) {
+ if (!base::ReadFileToString(testdata_path_.AppendASCII(filename),
+ &cert_data)) {
return NULL;
}
net::CertificateList certs =

Powered by Google App Engine
This is Rietveld 408576698