diff options
Diffstat (limited to 'net/ftp')
-rw-r--r-- | net/ftp/ftp_network_transaction_unittest.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/net/ftp/ftp_network_transaction_unittest.cc b/net/ftp/ftp_network_transaction_unittest.cc index 1c7ca57..bb9e132 100644 --- a/net/ftp/ftp_network_transaction_unittest.cc +++ b/net/ftp/ftp_network_transaction_unittest.cc @@ -1127,4 +1127,15 @@ TEST_F(FtpNetworkTransactionTest, DownloadTransactionFileNotFound) { ERR_FILE_NOT_FOUND); } +// Test for http://crbug.com/38845. +TEST_F(FtpNetworkTransactionTest, ZeroLengthDirInPWD) { + FtpSocketDataProviderFileDownload ctrl_socket; + TransactionFailHelper(&ctrl_socket, + "ftp://host/file", + FtpSocketDataProvider::PRE_PWD, + FtpSocketDataProvider::PRE_TYPE, + "257 \"\"\r\n", + OK); +} + } // namespace net |