cherry pick from aosp.

https://android-review.googlesource.com/63805

Fix for Wifi watchdog test when Wifi is not supported

Added a check to see if Wifi is supported like other tests in the class

Signed-off-by: Daniel Kim <daniel.kim@panasonic.aero>
This commit is contained in:
Daniel Kim
2013-08-16 12:00:28 -07:00
committed by Nicholas Sauer
parent d26b802822
commit 2678d5bcf7

View File

@@ -407,6 +407,10 @@ public class WifiManagerTest extends AndroidTestCase {
* To pass this CTS test, a connected WiFi link is required.
*/
public void testWifiWatchdog() throws Exception {
if (!WifiFeature.isWifiSupported(getContext())) {
// skip the test if WiFi is not supported
return;
}
// Make sure WiFi is enabled
if (!mWifiManager.isWifiEnabled()) {
setWifiEnabled(true);