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

Unified Diff: net/test/test_data_directory.cc

Issue 2718633002: debug on ios simulator
Patch Set: add to BUILD.gn test_support_bundle_data Created 3 years, 10 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') | net/tools/quic/quic_dispatcher.h » ('j') | 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..48aa3590e44cae473428173849f51d126316c619 100644
--- a/net/test/test_data_directory.cc
+++ b/net/test/test_data_directory.cc
@@ -13,6 +13,8 @@ namespace net {
namespace {
const base::FilePath::CharType kCertificateRelativePath[] =
FILE_PATH_LITERAL("net/data/ssl/certificates");
+const base::FilePath::CharType kServerPushResourcesRelativePath[] =
+ FILE_PATH_LITERAL("net/data/quic_http_response_cache_data_with_push");
} // namespace
base::FilePath GetTestCertsDirectory() {
@@ -25,6 +27,16 @@ base::FilePath GetTestCertsDirectory() {
return src_root.Append(kCertificateRelativePath);
}
+base::FilePath GetServerPushResourceDirectory() {
+ base::FilePath src_root;
+ {
+ base::ThreadRestrictions::ScopedAllowIO allow_io_for_path_service;
+ PathService::Get(base::DIR_SOURCE_ROOT, &src_root);
+ }
+
+ return src_root.Append(kServerPushResourcesRelativePath);
+}
+
base::FilePath GetTestClientCertsDirectory() {
#if defined(OS_ANDROID)
return base::FilePath(kCertificateRelativePath);
« no previous file with comments | « net/test/test_data_directory.h ('k') | net/tools/quic/quic_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698