| 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 "base/ref_counted.h" | 7 #include "base/ref_counted.h" |
| 8 #include "net/base/host_resolver.h" | 8 #include "net/base/host_resolver.h" |
| 9 #include "net/base/host_resolver_unittest.h" | 9 #include "net/base/host_resolver_unittest.h" |
| 10 #include "net/base/io_buffer.h" | 10 #include "net/base/io_buffer.h" |
| 11 #include "net/base/socket_test_util.h" | |
| 12 #include "net/base/test_completion_callback.h" | 11 #include "net/base/test_completion_callback.h" |
| 13 #include "net/ftp/ftp_network_session.h" | 12 #include "net/ftp/ftp_network_session.h" |
| 14 #include "net/ftp/ftp_request_info.h" | 13 #include "net/ftp/ftp_request_info.h" |
| 14 #include "net/socket/socket_test_util.h" |
| 15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
| 16 #include "testing/platform_test.h" | 16 #include "testing/platform_test.h" |
| 17 | 17 |
| 18 namespace { | 18 namespace { |
| 19 | 19 |
| 20 // Size we use for IOBuffers used to receive data from the test data socket. | 20 // Size we use for IOBuffers used to receive data from the test data socket. |
| 21 const int kBufferSize = 128; | 21 const int kBufferSize = 128; |
| 22 | 22 |
| 23 } // namespace | 23 } // namespace |
| 24 | 24 |
| (...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 498 FtpMockControlSocketFileDownloadRetrFail ctrl_socket; | 498 FtpMockControlSocketFileDownloadRetrFail ctrl_socket; |
| 499 TransactionFailHelper(&ctrl_socket, | 499 TransactionFailHelper(&ctrl_socket, |
| 500 "ftp://host/file", | 500 "ftp://host/file", |
| 501 FtpMockControlSocket::PRE_RETR, | 501 FtpMockControlSocket::PRE_RETR, |
| 502 FtpMockControlSocket::PRE_PASV2, | 502 FtpMockControlSocket::PRE_PASV2, |
| 503 "500 failed retr\r\n", | 503 "500 failed retr\r\n", |
| 504 ERR_FAILED); | 504 ERR_FAILED); |
| 505 } | 505 } |
| 506 | 506 |
| 507 } // namespace net | 507 } // namespace net |
| OLD | NEW |