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

Unified Diff: Source/core/testing/Internals.cpp

Issue 1333613004: Refactor WebConnectionType names (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@netinfo
Patch Set: Fix enum and tests Created 5 years, 3 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
« no previous file with comments | « Source/core/page/NetworkStateNotifierTest.cpp ('k') | Source/modules/netinfo/NetworkInformation.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/testing/Internals.cpp
diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp
index da6fa74aa4d6974a84b1350c52127dbb0493c862..1527d8d552231c1e5c73273514ca122567a1d07d 100644
--- a/Source/core/testing/Internals.cpp
+++ b/Source/core/testing/Internals.cpp
@@ -2392,21 +2392,21 @@ void Internals::setNetworkConnectionInfo(const String& type, double downlinkMaxM
{
WebConnectionType webtype;
if (type == "cellular") {
- webtype = ConnectionTypeCellular;
+ webtype = WebConnectionTypeCellular;
} else if (type == "bluetooth") {
- webtype = ConnectionTypeBluetooth;
+ webtype = WebConnectionTypeBluetooth;
} else if (type == "ethernet") {
- webtype = ConnectionTypeEthernet;
+ webtype = WebConnectionTypeEthernet;
} else if (type == "wifi") {
- webtype = ConnectionTypeWifi;
+ webtype = WebConnectionTypeWifi;
} else if (type == "wimax") {
- webtype = ConnectionTypeWimax;
+ webtype = WebConnectionTypeWimax;
} else if (type == "other") {
- webtype = ConnectionTypeOther;
+ webtype = WebConnectionTypeOther;
} else if (type == "none") {
- webtype = ConnectionTypeNone;
+ webtype = WebConnectionTypeNone;
} else if (type == "unknown") {
- webtype = ConnectionTypeUnknown;
+ webtype = WebConnectionTypeUnknown;
} else {
exceptionState.throwDOMException(NotFoundError, ExceptionMessages::failedToEnumerate("connection type", type));
return;
« no previous file with comments | « Source/core/page/NetworkStateNotifierTest.cpp ('k') | Source/modules/netinfo/NetworkInformation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698