Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 93976df8 authored by Chad Brubaker's avatar Chad Brubaker Committed by Android Git Automerger
Browse files

am 3a9779b6: am 386c4e9e: Merge "Fix testSaw_ungrantedUid_Bluetooth"

* commit '3a9779b6':
  Fix testSaw_ungrantedUid_Bluetooth
parents c88e1396 3a9779b6
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -294,14 +294,14 @@ public class KeyStoreTest extends ActivityUnitTestCase<Activity> {

    public void testSaw_ungrantedUid_Bluetooth() throws Exception {
        String[] results1 = mKeyStore.saw(TEST_KEYNAME, Process.BLUETOOTH_UID);
        assertNull(results1);
        assertEquals(0, results1.length);

        mKeyStore.password(TEST_PASSWD);
        mKeyStore.put(TEST_KEYNAME1, TEST_KEYVALUE, KeyStore.UID_SELF, KeyStore.FLAG_ENCRYPTED);
        mKeyStore.put(TEST_KEYNAME2, TEST_KEYVALUE, KeyStore.UID_SELF, KeyStore.FLAG_ENCRYPTED);

        String[] results2 = mKeyStore.saw(TEST_KEYNAME, Process.BLUETOOTH_UID);
        assertNull(results2);
        assertEquals(0, results2.length);
    }

    public void testSaw_grantedUid_Wifi() throws Exception {