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

Unified Diff: net/base/ssl_test_util.cc

Issue 18499: Replace cases of Append(FILE_PATH_LITERAL()) with AppendASCII(""). (Closed)
Patch Set: Created 11 years, 11 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/common/unzip_unittest.cc ('k') | net/disk_cache/disk_cache_perftest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/ssl_test_util.cc
diff --git a/net/base/ssl_test_util.cc b/net/base/ssl_test_util.cc
index 18e390522ad33e8b617fd3aeaa8dc99f619bb41b..d22e4fd8b4aa3da35fe7508bed6e381c7c51e40e 100644
--- a/net/base/ssl_test_util.cc
+++ b/net/base/ssl_test_util.cc
@@ -80,10 +80,10 @@ static CERTCertificate* LoadTemporaryCert(const FilePath& filename) {
SSLTestUtil::SSLTestUtil() {
PathService::Get(base::DIR_SOURCE_ROOT, &cert_dir_);
- cert_dir_ = cert_dir_.Append(FILE_PATH_LITERAL("net"));
- cert_dir_ = cert_dir_.Append(FILE_PATH_LITERAL("data"));
- cert_dir_ = cert_dir_.Append(FILE_PATH_LITERAL("ssl"));
- cert_dir_ = cert_dir_.Append(FILE_PATH_LITERAL("certificates"));
+ cert_dir_ = cert_dir_.AppendASCII("net");
+ cert_dir_ = cert_dir_.AppendASCII("data");
+ cert_dir_ = cert_dir_.AppendASCII("ssl");
+ cert_dir_ = cert_dir_.AppendASCII("certificates");
#if defined(OS_LINUX)
cert_ = reinterpret_cast<PrivateCERTCertificate*>(
@@ -101,19 +101,19 @@ SSLTestUtil::~SSLTestUtil() {
FilePath SSLTestUtil::GetRootCertPath() {
FilePath path(cert_dir_);
- path = path.Append(FILE_PATH_LITERAL("root_ca_cert.crt"));
+ path = path.AppendASCII("root_ca_cert.crt");
return path;
}
FilePath SSLTestUtil::GetOKCertPath() {
FilePath path(cert_dir_);
- path = path.Append(FILE_PATH_LITERAL("ok_cert.pem"));
+ path = path.AppendASCII("ok_cert.pem");
return path;
}
FilePath SSLTestUtil::GetExpiredCertPath() {
FilePath path(cert_dir_);
- path = path.Append(FILE_PATH_LITERAL("expired_cert.pem"));
+ path = path.AppendASCII("expired_cert.pem");
return path;
}
« no previous file with comments | « chrome/common/unzip_unittest.cc ('k') | net/disk_cache/disk_cache_perftest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698