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

Commit 790b3737 authored by Steven Moreland's avatar Steven Moreland
Browse files

writeUnpadded->write

This test should still do the same thing with write.
write padded pads the entry to 4 bytes, which should
be good for this test as well, since it's expecting
16 bytes.

Bug: 328161314
Test: N/A
Change-Id: Iefdf27ea4bb9a152d84ffcdb17c8b47ee976feb8
parent f27be372
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -50,7 +50,7 @@ TEST_F(IMediaPlayerTest, PrepareDrmInvalidTransaction) {

    // We write a length greater than the following session id array. Should be discarded.
    data.writeUint32(2);
    data.writeUnpadded(kMockByteArray, 1);
    data.write(kMockByteArray, 1);

    status_t result = IMediaPlayer::asBinder(iMediaPlayer_)
            ->transact(PREPARE_DRM, data, &reply);