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

Unified Diff: net/test/test_data_directory.cc

Issue 2865603002: X509NameAttribute::ValueAsString: Decode TeletexString as Latin1. (Closed)
Patch Set: add comment/todo about nacl difference Created 3 years, 7 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 | « net/test/test_data_directory.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/test/test_data_directory.cc
diff --git a/net/test/test_data_directory.cc b/net/test/test_data_directory.cc
index b35392407bb2724cdc95d01aedbfa9b71930be6b..f751751c5db6079df0840fa9d6dc40c9471ba2fb 100644
--- a/net/test/test_data_directory.cc
+++ b/net/test/test_data_directory.cc
@@ -11,23 +11,34 @@
namespace net {
namespace {
-const base::FilePath::CharType kCertificateRelativePath[] =
- FILE_PATH_LITERAL("net/data/ssl/certificates");
+
+// Net data directory, relative to source root.
+const base::FilePath::CharType kNetDataRelativePath[] =
+ FILE_PATH_LITERAL("net/data");
+
+// Test certificates directory, relative to kNetDataRelativePath.
+const base::FilePath::CharType kCertificateDataSubPath[] =
+ FILE_PATH_LITERAL("ssl/certificates");
+
} // namespace
-base::FilePath GetTestCertsDirectory() {
+base::FilePath GetTestNetDataDirectory() {
base::FilePath src_root;
{
base::ThreadRestrictions::ScopedAllowIO allow_io_for_path_service;
PathService::Get(base::DIR_SOURCE_ROOT, &src_root);
}
- return src_root.Append(kCertificateRelativePath);
+ return src_root.Append(kNetDataRelativePath);
+}
+
+base::FilePath GetTestCertsDirectory() {
+ return GetTestNetDataDirectory().Append(kCertificateDataSubPath);
}
base::FilePath GetTestClientCertsDirectory() {
#if defined(OS_ANDROID)
- return base::FilePath(kCertificateRelativePath);
+ return base::FilePath(kNetDataRelativePath).Append(kCertificateDataSubPath);
#else
return GetTestCertsDirectory();
#endif
« no previous file with comments | « net/test/test_data_directory.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698