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
diff --git a/libs/binder/tests/binderRpcTest.cpp b/libs/binder/tests/binderRpcTest.cpp
index 0247e42..4977c63 100644
--- a/libs/binder/tests/binderRpcTest.cpp
+++ b/libs/binder/tests/binderRpcTest.cpp
@@ -755,7 +755,7 @@
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;