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

Unified Diff: net/ftp/ftp_network_transaction_unittest.cc

Issue 11364204: FTP: fix compatibility with mod_ftp's LISTisNLST option. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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/ftp/ftp_network_transaction.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/ftp/ftp_network_transaction_unittest.cc
diff --git a/net/ftp/ftp_network_transaction_unittest.cc b/net/ftp/ftp_network_transaction_unittest.cc
index 8fc56826d84ea52be75c05d1b94f2ed4e66a0a64..05477b3c44d4105d6072e3cd6cffa12e5e60a99a 100644
--- a/net/ftp/ftp_network_transaction_unittest.cc
+++ b/net/ftp/ftp_network_transaction_unittest.cc
@@ -191,7 +191,7 @@ class FtpSocketDataProviderDirectoryListing : public FtpSocketDataProvider {
case PRE_CWD:
return Verify("CWD /\r\n", data, PRE_LIST, "200 OK\r\n");
case PRE_LIST:
- return Verify("LIST\r\n", data, PRE_QUIT, "200 OK\r\n");
+ return Verify("LIST -l\r\n", data, PRE_QUIT, "200 OK\r\n");
default:
return FtpSocketDataProvider::OnWrite(data);
}
@@ -572,7 +572,7 @@ class FtpSocketDataProviderDirectoryListingTransferStarting
return MockWriteResult(ASYNC, data.length());
switch (state()) {
case PRE_LIST:
- return Verify("LIST\r\n", data, PRE_QUIT,
+ return Verify("LIST -l\r\n", data, PRE_QUIT,
"125-Data connection already open.\r\n"
"125 Transfer starting.\r\n"
"226 Transfer complete.\r\n");
« no previous file with comments | « net/ftp/ftp_network_transaction.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698