| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| 11 #include "base/memory/scoped_vector.h" | 11 #include "base/memory/scoped_vector.h" |
| 12 #include "base/string_util.h" | 12 #include "base/string_util.h" |
| 13 #include "base/utf_string_conversions.h" | 13 #include "base/utf_string_conversions.h" |
| 14 #include "net/base/host_port_pair.h" | 14 #include "net/base/host_port_pair.h" |
| 15 #include "net/base/io_buffer.h" | 15 #include "net/base/io_buffer.h" |
| 16 #include "net/base/mock_host_resolver.h" | |
| 17 #include "net/base/net_util.h" | 16 #include "net/base/net_util.h" |
| 18 #include "net/base/test_completion_callback.h" | 17 #include "net/base/test_completion_callback.h" |
| 18 #include "net/dns/mock_host_resolver.h" |
| 19 #include "net/ftp/ftp_network_session.h" | 19 #include "net/ftp/ftp_network_session.h" |
| 20 #include "net/ftp/ftp_request_info.h" | 20 #include "net/ftp/ftp_request_info.h" |
| 21 #include "net/socket/socket_test_util.h" | 21 #include "net/socket/socket_test_util.h" |
| 22 #include "testing/gtest/include/gtest/gtest.h" | 22 #include "testing/gtest/include/gtest/gtest.h" |
| 23 #include "testing/platform_test.h" | 23 #include "testing/platform_test.h" |
| 24 | 24 |
| 25 namespace { | 25 namespace { |
| 26 | 26 |
| 27 // Size we use for IOBuffers used to receive data from the test data socket. | 27 // Size we use for IOBuffers used to receive data from the test data socket. |
| 28 const int kBufferSize = 128; | 28 const int kBufferSize = 128; |
| (...skipping 1564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1593 FtpSocketDataProvider::PRE_TYPE, | 1593 FtpSocketDataProvider::PRE_TYPE, |
| 1594 "257 \"\"\r\n", | 1594 "257 \"\"\r\n", |
| 1595 OK); | 1595 OK); |
| 1596 } | 1596 } |
| 1597 | 1597 |
| 1598 INSTANTIATE_TEST_CASE_P(FTP, | 1598 INSTANTIATE_TEST_CASE_P(FTP, |
| 1599 FtpNetworkTransactionTest, | 1599 FtpNetworkTransactionTest, |
| 1600 ::testing::Values(AF_INET, AF_INET6)); | 1600 ::testing::Values(AF_INET, AF_INET6)); |
| 1601 | 1601 |
| 1602 } // namespace net | 1602 } // namespace net |
| OLD | NEW |