| 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,
|
|
|