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/base/network_interfaces.h" | 5 #include "net/base/network_interfaces.h" |
6 | 6 |
7 #include <ostream> | 7 #include <ostream> |
8 #include <string> | 8 #include <string> |
9 #include <unordered_set> | 9 #include <unordered_set> |
10 | 10 |
11 // TODO(eroman): Remove unneeeded headers. | 11 // TODO(eroman): Remove unneeeded headers. |
12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
13 #include "base/format_macros.h" | 13 #include "base/format_macros.h" |
14 #include "base/scoped_native_library.h" | 14 #include "base/scoped_native_library.h" |
15 #include "base/strings/string_number_conversions.h" | 15 #include "base/strings/string_number_conversions.h" |
16 #include "base/strings/string_util.h" | 16 #include "base/strings/string_util.h" |
17 #include "base/strings/stringprintf.h" | |
18 #include "base/strings/utf_string_conversions.h" | 17 #include "base/strings/utf_string_conversions.h" |
19 #include "base/sys_byteorder.h" | 18 #include "base/sys_byteorder.h" |
20 #include "base/time/time.h" | 19 #include "base/time/time.h" |
21 #include "net/base/ip_endpoint.h" | 20 #include "net/base/ip_endpoint.h" |
22 | 21 |
23 #if !defined(OS_NACL) && !defined(OS_WIN) | 22 #if !defined(OS_NACL) && !defined(OS_WIN) |
24 #include <net/if.h> | 23 #include <net/if.h> |
25 #include <netinet/in.h> | 24 #include <netinet/in.h> |
26 #if defined(OS_MACOSX) | 25 #if defined(OS_MACOSX) |
27 #include <ifaddrs.h> | 26 #include <ifaddrs.h> |
(...skipping 693 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
721 // We can't check the result of GetHostName() directly, since the result | 720 // We can't check the result of GetHostName() directly, since the result |
722 // will differ across machines. Our goal here is to simply exercise the | 721 // will differ across machines. Our goal here is to simply exercise the |
723 // code path, and check that things "look about right". | 722 // code path, and check that things "look about right". |
724 std::string hostname = GetHostName(); | 723 std::string hostname = GetHostName(); |
725 EXPECT_FALSE(hostname.empty()); | 724 EXPECT_FALSE(hostname.empty()); |
726 } | 725 } |
727 | 726 |
728 } // namespace | 727 } // namespace |
729 | 728 |
730 } // namespace net | 729 } // namespace net |
OLD | NEW |