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

Unified Diff: net/test/test_server.h

Issue 5519015: Explicitly whitelist the test server port. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 10 years 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/base/net_util.cc ('k') | net/test/test_server.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/test/test_server.h
diff --git a/net/test/test_server.h b/net/test/test_server.h
index 1ae0a50867b5de02fcff02d16a022b542a3d30be..4154302b6cd0eceb2ff8670a734a1bda6db8a840 100644
--- a/net/test/test_server.h
+++ b/net/test/test_server.h
@@ -17,6 +17,7 @@
#include "base/file_util.h"
#include "base/process_util.h"
#include "net/base/host_port_pair.h"
+#include "net/base/net_util.h"
#if defined(OS_WIN)
#include "base/scoped_handle_win.h"
@@ -180,6 +181,8 @@ class TestServer {
// Handle of the Python process running the test server.
base::ProcessHandle process_handle_;
+ scoped_ptr<net::ScopedPortException> allowed_port_;
+
#if defined(OS_WIN)
// JobObject used to clean up orphaned child processes.
ScopedHandle job_handle_;
« no previous file with comments | « net/base/net_util.cc ('k') | net/test/test_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698