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

Commit ccd131c0 authored by Steven Moreland's avatar Steven Moreland
Browse files

Remove test assumption of interface token layout.

Since it is not API.

Bug: 138691255
Test: atest android.os.ParcelTest
Change-Id: I1c51344151bf3ae5b6424e75195782aec8064246
parent ad9384ee
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -56,10 +56,8 @@ public class ParcelTest {
    @Test
    public void testCallingWorkSourceUidAfterEnforce() {
        Parcel p = Parcel.obtain();
        // Write headers manually so that we do not invoke #writeInterfaceToken.
        p.writeInt(1);  // strict mode header
        p.writeInt(WORK_SOURCE_1);  // worksource header.
        p.writeString(INTERFACE_TOKEN_1);  // interface token.
        p.writeInterfaceToken(INTERFACE_TOKEN_1);
        assertEquals(true, p.replaceCallingWorkSourceUid(WORK_SOURCE_1));
        p.setDataPosition(0);

        p.enforceInterface(INTERFACE_TOKEN_1);