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

Unified Diff: net/socket/ssl_test_util.h

Issue 201083: Cache login identity for NewFTP transactions. (Closed)
Patch Set: better Created 11 years, 3 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
Index: net/socket/ssl_test_util.h
diff --git a/net/socket/ssl_test_util.h b/net/socket/ssl_test_util.h
index fb060daac0342b91e02e99d1fe1a170e73964c8b..881a83d5c6cf469d3be55e85a979577a851d9731 100644
--- a/net/socket/ssl_test_util.h
+++ b/net/socket/ssl_test_util.h
@@ -41,6 +41,9 @@ class TestServerLauncher {
// in a separate process. Takes effect only if called before Start.
void set_forking(bool forking) { forking_ = forking; }
+ // Tells the server to enable/disable anonymous FTP user.
+ void set_ftp_enable_anonymous(bool enable) { ftp_enable_anonymous_ = enable; }
+
// Start src/net/tools/testserver/testserver.py and
// ask it to serve the given protocol.
// If protocol is HTTP, and cert_path is not empty, serves HTTPS.
@@ -113,6 +116,9 @@ class TestServerLauncher {
// True if the server should handle each request in a separate process.
bool forking_;
+ // True if the server should allow anonymous FTP login.
+ bool ftp_enable_anonymous_;
+
// Number of tries and timeout for each try used for WaitToStart.
int connection_attempts_;
int connection_timeout_;

Powered by Google App Engine
This is Rietveld 408576698