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

Unified Diff: net/test/test_data_directory.cc

Issue 2865603002: X509NameAttribute::ValueAsString: Decode TeletexString as Latin1. (Closed)
Patch Set: update ParseNameTest 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
« net/cert/x509_certificate_unittest.cc ('K') | « 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..74a3cf096621a00a22a79ec739b9ecaf621aa9ad 100644
--- a/net/test/test_data_directory.cc
+++ b/net/test/test_data_directory.cc
@@ -11,10 +11,22 @@
namespace net {
namespace {
+const base::FilePath::CharType kNetDataRelativePath[] =
+ FILE_PATH_LITERAL("net/data/");
const base::FilePath::CharType kCertificateRelativePath[] =
FILE_PATH_LITERAL("net/data/ssl/certificates");
} // namespace
+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(kNetDataRelativePath);
+}
+
base::FilePath GetTestCertsDirectory() {
eroman 2017/05/05 17:55:29 Should this be re-implemented in terms of GetTestN
mattm 2017/05/05 19:58:39 Done.
base::FilePath src_root;
{
« net/cert/x509_certificate_unittest.cc ('K') | « net/test/test_data_directory.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698