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

Commit a4ed5674 authored by Frederick Mayle's avatar Frederick Mayle
Browse files

libbinder: Use correct data size in appendFrom test

I noticed this because I had temporarily changed the order of the checks
for a WIP CL and this started failed in the wrong way.

There is a fuzzer for appendFrom, so this shouldn't be a loss of
coverage for the bad data size case.

Test: binderRpcTest
Change-Id: Ia86681c59b2f814f93298d2837d8dcb03c84bdb0
parent d05c0b93
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -755,7 +755,7 @@ TEST_P(BinderRpc, AppendSeparateFormats) {
    p1.markForBinder(proc1.rootBinder);
    p1.writeInt32(3);

    EXPECT_EQ(BAD_TYPE, p1.appendFrom(&pRaw, 0, p1.dataSize()));
    EXPECT_EQ(BAD_TYPE, p1.appendFrom(&pRaw, 0, pRaw.dataSize()));
    EXPECT_EQ(BAD_TYPE, pRaw.appendFrom(&p1, 0, p1.dataSize()));

    Parcel p2;