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

Unified Diff: net/url_request/url_request_unittest.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/url_request/url_request_unittest.h
diff --git a/net/url_request/url_request_unittest.h b/net/url_request/url_request_unittest.h
index 74c73ef5868cc16510b87795306847bc39489cfb..c4b200fceded1dbf773078247b50c579911053ae 100644
--- a/net/url_request/url_request_unittest.h
+++ b/net/url_request/url_request_unittest.h
@@ -248,6 +248,10 @@ class BaseTestServer : public base::RefCounted<BaseTestServer> {
launcher_.set_forking(forking);
}
+ void set_ftp_enable_anonymous(bool enable) {
+ launcher_.set_ftp_enable_anonymous(enable);
+ }
+
// Used with e.g. HTTPTestServer::SendQuit()
bool WaitToFinish(int milliseconds) {
return launcher_.WaitToFinish(milliseconds);
@@ -572,8 +576,9 @@ class FTPTestServer : public BaseTestServer {
}
static scoped_refptr<FTPTestServer> CreateServer(
- const std::wstring& document_root) {
+ const std::wstring& document_root, bool enable_anonymous) {
scoped_refptr<FTPTestServer> test_server = new FTPTestServer();
+ test_server->set_ftp_enable_anonymous(enable_anonymous);
FilePath docroot = FilePath::FromWStringHack(document_root);
FilePath no_cert;
if (!test_server->Start(net::TestServerLauncher::ProtoFTP,

Powered by Google App Engine
This is Rietveld 408576698