Chromium Code Reviews| 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; |
| { |