Commit 37f5e88d authored by Alex Klyubin's avatar Alex Klyubin
Browse files

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

(cherry picked from commit 4832d3d1)

Change-Id: If11eba6f3e4264ee01ec16fc8c131a38899e0865
parent a241f99b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment