summaryrefslogtreecommitdiffstats
path: root/net/ftp
diff options
context:
space:
mode:
authoreroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-12 00:47:37 +0000
committereroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-12 00:47:37 +0000
commita540c2d2927d84f850bbe85c151e79965ae6e29b (patch)
treeb78177428ba1f731794f7c85ee41275089c6bdbe /net/ftp
parent707904a603fe25d4f9872a9c57244a5005cf7a16 (diff)
downloadchromium_src-a540c2d2927d84f850bbe85c151e79965ae6e29b.zip
chromium_src-a540c2d2927d84f850bbe85c151e79965ae6e29b.tar.gz
chromium_src-a540c2d2927d84f850bbe85c151e79965ae6e29b.tar.bz2
Minor cleanup: add a sys_addrinfo.h header that hides the platform-specific includes needed for struct addrinfo / struct sockaddr, since we were duplicating that #if #else logic in a growing number of places.
BUG=NONE TEST=NONE Review URL: http://codereview.chromium.org/491038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34399 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/ftp')
-rw-r--r--net/ftp/ftp_network_transaction_unittest.cc8
1 files changed, 1 insertions, 7 deletions
diff --git a/net/ftp/ftp_network_transaction_unittest.cc b/net/ftp/ftp_network_transaction_unittest.cc
index 9745763..d20818a 100644
--- a/net/ftp/ftp_network_transaction_unittest.cc
+++ b/net/ftp/ftp_network_transaction_unittest.cc
@@ -6,17 +6,11 @@
#include "build/build_config.h"
-#if defined(OS_WIN)
-#include <ws2tcpip.h>
-#elif defined(OS_POSIX)
-#include <netdb.h>
-#include <sys/socket.h>
-#endif
-
#include "base/ref_counted.h"
#include "net/base/io_buffer.h"
#include "net/base/mock_host_resolver.h"
#include "net/base/net_util.h"
+#include "net/base/sys_addrinfo.h"
#include "net/base/test_completion_callback.h"
#include "net/ftp/ftp_network_session.h"
#include "net/ftp/ftp_request_info.h"