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

Unified Diff: net/base/network_change_notifier_unittest.cc

Issue 2369673004: Wire NQE Prefs to Profile (Closed)
Patch Set: Added functionality for reading and writing multiple network IDs, Rebased, Addressed Ryan's comments Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: net/base/network_change_notifier_unittest.cc
diff --git a/net/base/network_change_notifier_unittest.cc b/net/base/network_change_notifier_unittest.cc
index 674260789a6986e1fae1627389a56b08d75feb2c..3807f7db52b5c7cc920ddfe78e618311e267d829 100644
--- a/net/base/network_change_notifier_unittest.cc
+++ b/net/base/network_change_notifier_unittest.cc
@@ -123,4 +123,15 @@ TEST(NetworkChangeNotifierTest, IgnoreVMInterfaces) {
NetworkChangeNotifier::ConnectionTypeFromInterfaceList(list));
}
+TEST(NetworkChangeNotifierTest, ConvertConnectionTypeToStringAndBack) {
+ ASSERT_EQ(0, NetworkChangeNotifier::CONNECTION_UNKNOWN);
+ for (size_t i = NetworkChangeNotifier::CONNECTION_UNKNOWN;
+ i < NetworkChangeNotifier::CONNECTION_LAST; ++i) {
+ NetworkChangeNotifier::ConnectionType type =
+ static_cast<NetworkChangeNotifier::ConnectionType>(i);
+ EXPECT_EQ(type, NetworkChangeNotifier::StringToConnectionType(
+ NetworkChangeNotifier::ConnectionTypeToString(type)));
+ }
+}
+
} // namespace net

Powered by Google App Engine
This is Rietveld 408576698