Merge "WifiManagerTest: check softap mode supported" into oc-dev
am: a2283cd312
Change-Id: Ide833d2f2402ece0e8ba7adc3dc5ac1db81795a0
This commit is contained in:
@@ -789,6 +789,11 @@ public class WifiManagerTest extends AndroidTestCase {
|
|||||||
* Note: Location mode must be enabled for this test.
|
* Note: Location mode must be enabled for this test.
|
||||||
*/
|
*/
|
||||||
public void testStartLocalOnlyHotspotSuccess() {
|
public void testStartLocalOnlyHotspotSuccess() {
|
||||||
|
// first check that softap mode is supported by the device
|
||||||
|
if (!mWifiManager.isPortableHotspotSupported()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
boolean wifiEnabled = mWifiManager.isWifiEnabled();
|
boolean wifiEnabled = mWifiManager.isWifiEnabled();
|
||||||
|
|
||||||
TestLocalOnlyHotspotCallback callback = startLocalOnlyHotspot();
|
TestLocalOnlyHotspotCallback callback = startLocalOnlyHotspot();
|
||||||
@@ -809,6 +814,11 @@ public class WifiManagerTest extends AndroidTestCase {
|
|||||||
* Note: Location mode must be enabled for this test.
|
* Note: Location mode must be enabled for this test.
|
||||||
*/
|
*/
|
||||||
public void testSetWifiEnabledByAppDoesNotStopHotspot() {
|
public void testSetWifiEnabledByAppDoesNotStopHotspot() {
|
||||||
|
// first check that softap mode is supported by the device
|
||||||
|
if (!mWifiManager.isPortableHotspotSupported()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
boolean wifiEnabled = mWifiManager.isWifiEnabled();
|
boolean wifiEnabled = mWifiManager.isWifiEnabled();
|
||||||
|
|
||||||
TestLocalOnlyHotspotCallback callback = startLocalOnlyHotspot();
|
TestLocalOnlyHotspotCallback callback = startLocalOnlyHotspot();
|
||||||
@@ -828,6 +838,11 @@ public class WifiManagerTest extends AndroidTestCase {
|
|||||||
* Note: Location mode must be enabled for this test.
|
* Note: Location mode must be enabled for this test.
|
||||||
*/
|
*/
|
||||||
public void testStartLocalOnlyHotspotSingleRequestByApps() {
|
public void testStartLocalOnlyHotspotSingleRequestByApps() {
|
||||||
|
// first check that softap mode is supported by the device
|
||||||
|
if (!mWifiManager.isPortableHotspotSupported()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
boolean caughtException = false;
|
boolean caughtException = false;
|
||||||
|
|
||||||
boolean wifiEnabled = mWifiManager.isWifiEnabled();
|
boolean wifiEnabled = mWifiManager.isWifiEnabled();
|
||||||
|
|||||||
Reference in New Issue
Block a user