Fix broken Device Admin CTS test.
android.admin.cts.DeviceAdminActivationTest.testActivateGoodReceiverDisplaysActivationUi was broken because it incorrectly assumed the CtsDeviceAdminReceiver Device Admin starts out in deactivated state. However, CTS instructions currently require all CTS Device Admins to be manually activated before tests run. This CL fixes the above test by switching it to a new Device Admin (CtsDeviceAdminDeactivatedReceiver) which will start out in deactivated state. The CTS instructions will also be updated to state that these Device Admins should remain deactivated. The CL also makes each Device Admin activation test assert that each Device Admin used is deactivated at the beginning and the end of each test. This is to make it easier to identify failures due to the Device Admins being activated prior to the tests being run. Bug: 10146323 Change-Id: I969ddc1be18a8cf37b81f410286cf6f01315d7e4
Loading
Please sign in to comment