OLD | NEW |
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2014 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_change_notifier.h" | 5 #include "net/base/network_change_notifier.h" |
6 | 6 |
7 #include "net/base/network_interfaces.h" | 7 #include "net/base/network_interfaces.h" |
8 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
9 | 9 |
10 namespace net { | 10 namespace net { |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 NetworkInterface interface_vmnet_win; | 116 NetworkInterface interface_vmnet_win; |
117 interface_vmnet_win.type = NetworkChangeNotifier::CONNECTION_ETHERNET; | 117 interface_vmnet_win.type = NetworkChangeNotifier::CONNECTION_ETHERNET; |
118 interface_vmnet_win.name = "virtualdevice"; | 118 interface_vmnet_win.name = "virtualdevice"; |
119 interface_vmnet_win.friendly_name = "VMware Network Adapter VMnet1"; | 119 interface_vmnet_win.friendly_name = "VMware Network Adapter VMnet1"; |
120 list.push_back(interface_vmnet_win); | 120 list.push_back(interface_vmnet_win); |
121 | 121 |
122 EXPECT_EQ(NetworkChangeNotifier::CONNECTION_NONE, | 122 EXPECT_EQ(NetworkChangeNotifier::CONNECTION_NONE, |
123 NetworkChangeNotifier::ConnectionTypeFromInterfaceList(list)); | 123 NetworkChangeNotifier::ConnectionTypeFromInterfaceList(list)); |
124 } | 124 } |
125 | 125 |
| 126 TEST(NetworkChangeNotifierTest, GetConnectionSubtype) { |
| 127 // Call GetConnectionSubtype() and ensure that there is no crash. |
| 128 NetworkChangeNotifier::GetConnectionSubtype(); |
| 129 } |
| 130 |
126 } // namespace net | 131 } // namespace net |
OLD | NEW |