commit | 11a3fe766d7e32f24517010c34e3e1d137a4d44d | [log] [tgz] |
---|---|---|
author | Makoto Onuki <omakoto@google.com> | Tue Sep 27 10:15:29 2016 -0700 |
committer | bohu <bohu@google.com> | Wed Nov 16 16:39:23 2016 -0800 |
tree | ff9dd36dfa7b9072e5f8cae9b4ace6b9f464797b | |
parent | 513afa272a34a98d89f85c4fd00996240f7a659a [diff] |
Fix DO/PO Wifi CTS - Flip the feature check - PO can't access the MAC address. Removed the test. Bug 31767129 Change-Id: I9ab72e491df22849f8755899217d207e326f011f
diff --git a/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerTest.java b/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerTest.java index 4748b35..256b03c 100644 --- a/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerTest.java +++ b/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerTest.java
@@ -101,7 +101,7 @@ } public void testWifi() throws Exception { - if (hasDeviceFeature("android.hardware.wifi")) { + if (!hasDeviceFeature("android.hardware.wifi")) { return; } executeDeviceOwnerTest("WifiTest");
diff --git a/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/ProfileOwnerTest.java b/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/ProfileOwnerTest.java index 4105012..41f7010 100644 --- a/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/ProfileOwnerTest.java +++ b/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/ProfileOwnerTest.java
@@ -53,13 +53,6 @@ super.tearDown(); } - public void testWifi() throws Exception { - if (hasDeviceFeature("android.hardware.wifi")) { - return; - } - executeProfileOwnerTest("WifiTest"); - } - private void executeProfileOwnerTest(String testClassName) throws Exception { if (!mHasFeature) { return;