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

Commit 1d28afeb authored by Steven Moreland's avatar Steven Moreland
Browse files

ParcelTest: use different work source for updates

We can improve the test slightly by using a different value when we
update work sources.

Bug: N/A
Test: android.os.ParcelTest
Change-Id: I5f4905667842a63d31839d610c405333b915cae8
parent ccd131c0
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -43,8 +43,8 @@ public class ParcelTest {

        // WorkSource can be updated.
        p.writeInterfaceToken(INTERFACE_TOKEN_1);
        assertEquals(true, p.replaceCallingWorkSourceUid(WORK_SOURCE_1));
        assertEquals(WORK_SOURCE_1, p.readCallingWorkSourceUid());
        assertEquals(true, p.replaceCallingWorkSourceUid(WORK_SOURCE_2));
        assertEquals(WORK_SOURCE_2, p.readCallingWorkSourceUid());

        // WorkSource can be updated to unset value.
        assertEquals(true, p.replaceCallingWorkSourceUid(Binder.UNSET_WORKSOURCE));
@@ -64,8 +64,8 @@ public class ParcelTest {
        assertEquals(WORK_SOURCE_1, p.readCallingWorkSourceUid());

        // WorkSource can be updated.
        assertEquals(true, p.replaceCallingWorkSourceUid(WORK_SOURCE_1));
        assertEquals(WORK_SOURCE_1, p.readCallingWorkSourceUid());
        assertEquals(true, p.replaceCallingWorkSourceUid(WORK_SOURCE_2));
        assertEquals(WORK_SOURCE_2, p.readCallingWorkSourceUid());

        p.recycle();
    }