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

Unified Diff: net/test/spawned_test_server/local_test_server.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/embedded_test_server/embedded_test_server.cc ('k') | net/test/test_data_directory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/test/spawned_test_server/local_test_server.cc
diff --git a/net/test/spawned_test_server/local_test_server.cc b/net/test/spawned_test_server/local_test_server.cc
index 77630b175ae6d2be4fe2335b10d18889280ded1c..6829a85016e8bbf471781bc4addd81f17c570ede 100644
--- a/net/test/spawned_test_server/local_test_server.cc
+++ b/net/test/spawned_test_server/local_test_server.cc
@@ -9,6 +9,7 @@
#include "base/logging.h"
#include "base/path_service.h"
#include "base/strings/string_number_conversions.h"
+#include "base/threading/thread_restrictions.h"
#include "base/values.h"
#include "net/base/host_port_pair.h"
#include "net/base/net_errors.h"
@@ -94,6 +95,8 @@ bool LocalTestServer::Start() {
}
bool LocalTestServer::StartInBackground() {
+ base::ThreadRestrictions::ScopedAllowIO allow_io_from_test_code;
+
// Get path to Python server script.
base::FilePath testserver_path;
if (!GetTestServerPath(&testserver_path))
« no previous file with comments | « net/test/embedded_test_server/embedded_test_server.cc ('k') | net/test/test_data_directory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698