NetworkChangeNotifierTest.java 文件源码

java
阅读 32 收藏 0 点赞 0 评论 0

项目:chromium-net-for-android 作者:
@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());
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号