| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "net/ftp/ftp_network_transaction.h" | 5 #include "net/ftp/ftp_network_transaction.h" |
| 6 | 6 |
| 7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
| 8 | 8 |
| 9 #include "base/ref_counted.h" | 9 #include "base/ref_counted.h" |
| 10 #include "net/base/io_buffer.h" | 10 #include "net/base/io_buffer.h" |
| (...skipping 1109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1120 TEST_F(FtpNetworkTransactionTest, DownloadTransactionFileNotFound) { | 1120 TEST_F(FtpNetworkTransactionTest, DownloadTransactionFileNotFound) { |
| 1121 FtpSocketDataProviderFileDownloadRetrFail ctrl_socket; | 1121 FtpSocketDataProviderFileDownloadRetrFail ctrl_socket; |
| 1122 TransactionFailHelper(&ctrl_socket, | 1122 TransactionFailHelper(&ctrl_socket, |
| 1123 "ftp://host/file", | 1123 "ftp://host/file", |
| 1124 FtpSocketDataProvider::PRE_RETR, | 1124 FtpSocketDataProvider::PRE_RETR, |
| 1125 FtpSocketDataProvider::PRE_PASV2, | 1125 FtpSocketDataProvider::PRE_PASV2, |
| 1126 "550 cannot open file\r\n", | 1126 "550 cannot open file\r\n", |
| 1127 ERR_FILE_NOT_FOUND); | 1127 ERR_FILE_NOT_FOUND); |
| 1128 } | 1128 } |
| 1129 | 1129 |
| 1130 // Test for http://crbug.com/38845. |
| 1131 TEST_F(FtpNetworkTransactionTest, ZeroLengthDirInPWD) { |
| 1132 FtpSocketDataProviderFileDownload ctrl_socket; |
| 1133 TransactionFailHelper(&ctrl_socket, |
| 1134 "ftp://host/file", |
| 1135 FtpSocketDataProvider::PRE_PWD, |
| 1136 FtpSocketDataProvider::PRE_TYPE, |
| 1137 "257 \"\"\r\n", |
| 1138 OK); |
| 1139 } |
| 1140 |
| 1130 } // namespace net | 1141 } // namespace net |
| OLD | NEW |