Searched refs:setCurrentNetworkMock (Results 1 – 1 of 1) sorted by relevance
237 setCurrentNetworkMock(ConnectivityManager.TYPE_MOBILE, true); in testIsConnectedToNetwork()243 setCurrentNetworkMock(ConnectivityManager.TYPE_WIFI, true); in testIsConnectedToNetwork()249 setCurrentNetworkMock(ConnectivityManager.TYPE_WIFI, false); in testIsConnectedToNetwork()257 setCurrentNetworkMock(ConnectivityManager.TYPE_MOBILE, true); in testIsConnectedToWifi()263 setCurrentNetworkMock(ConnectivityManager.TYPE_WIFI, true); in testIsConnectedToWifi()269 setCurrentNetworkMock(ConnectivityManager.TYPE_WIFI, false); in testIsConnectedToWifi()314 private void setCurrentNetworkMock(int type, boolean connected) { in setCurrentNetworkMock() method in UtilsTest