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 "chrome/browser/chromeos/cros/network_ip_config.h" | 5 #include "chromeos/network/network_ip_config.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 | 8 |
9 namespace chromeos { | 9 namespace chromeos { |
10 | 10 |
11 namespace { | 11 namespace { |
12 #define ENUM_CASE(x) case x: return std::string(#x) | 12 #define ENUM_CASE(x) case x: return std::string(#x) |
13 std::string IPConfigTypeAsString(IPConfigType type) { | 13 std::string IPConfigTypeAsString(IPConfigType type) { |
14 switch (type) { | 14 switch (type) { |
15 ENUM_CASE(IPCONFIG_TYPE_UNKNOWN); | 15 ENUM_CASE(IPCONFIG_TYPE_UNKNOWN); |
(...skipping 28 matching lines...) Expand all Loading... |
44 std::string NetworkIPConfig::ToString() const { | 44 std::string NetworkIPConfig::ToString() const { |
45 return std::string("path: ") + device_path | 45 return std::string("path: ") + device_path |
46 + " type: " + IPConfigTypeAsString(type) | 46 + " type: " + IPConfigTypeAsString(type) |
47 + " address: " + address | 47 + " address: " + address |
48 + " netmask: " + netmask | 48 + " netmask: " + netmask |
49 + " gateway: " + gateway | 49 + " gateway: " + gateway |
50 + " name_servers: " + name_servers; | 50 + " name_servers: " + name_servers; |
51 } | 51 } |
52 | 52 |
53 } // namespace chromeos | 53 } // namespace chromeos |
OLD | NEW |