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

Unified Diff: net/test/test_data_directory.cc

Issue 2175933002: More aggressive IO asserts in content_browsertests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use 1 less instance of ScopedAllowIO in DumpAccessibilityTestBase::RunTestForPlatform. Created 4 years, 5 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/spawned_test_server/local_test_server.cc ('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 aad3d07f243b0da29f1a53a1be8f20af9983f835..b35392407bb2724cdc95d01aedbfa9b71930be6b 100644
--- a/net/test/test_data_directory.cc
+++ b/net/test/test_data_directory.cc
@@ -6,6 +6,7 @@
#include "base/base_paths.h"
#include "base/path_service.h"
+#include "base/threading/thread_restrictions.h"
namespace net {
@@ -16,7 +17,11 @@ const base::FilePath::CharType kCertificateRelativePath[] =
base::FilePath GetTestCertsDirectory() {
base::FilePath src_root;
- PathService::Get(base::DIR_SOURCE_ROOT, &src_root);
+ {
+ base::ThreadRestrictions::ScopedAllowIO allow_io_for_path_service;
+ PathService::Get(base::DIR_SOURCE_ROOT, &src_root);
+ }
+
return src_root.Append(kCertificateRelativePath);
}
« no previous file with comments | « net/test/spawned_test_server/local_test_server.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698