Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(450)

Side by Side Diff: net/base/network_change_notifier_unittest.cc

Issue 2776523003: Expose connection subtype from NetworkChangeNotifier (Closed)
Patch Set: Add test Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« net/android/network_change_notifier_android.cc ('K') | « net/base/network_change_notifier.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698