@UiThreadTest
@MediumTest
@Feature({"Android-AppBase"})
public void testNetworkChangeNotifierMaxBandwidthWiMax() throws InterruptedException {
// Show that for WiMax the link speed is unknown (+Infinity), although the type is 4g.
// TODO(jkarlin): Add support for CONNECTION_WIMAX as specified in
// http://w3c.github.io/netinfo/.
mConnectivityDelegate.setNetworkType(ConnectivityManager.TYPE_WIMAX);
assertEquals(ConnectionType.CONNECTION_4G, getCurrentConnectionType());
assertEquals(Double.POSITIVE_INFINITY, getCurrentMaxBandwidthInMbps());
}
NetworkChangeNotifierTest.java 文件源码
java
阅读 32
收藏 0
点赞 0
评论 0
项目:chromium-net-for-android
作者:
评论列表
文章目录