| Index: ipc/ipc_fuzzing_tests.cc
|
| diff --git a/ipc/ipc_fuzzing_tests.cc b/ipc/ipc_fuzzing_tests.cc
|
| index de5aed8f10ffb97650984598b8ef205bb2003a9b..f9475a1adb0015fdf7f80b0dc5e7dae7487fec86 100644
|
| --- a/ipc/ipc_fuzzing_tests.cc
|
| +++ b/ipc/ipc_fuzzing_tests.cc
|
| @@ -44,7 +44,7 @@
|
|
|
| PickleIterator iter(m);
|
| std::string vs;
|
| - EXPECT_FALSE(iter.ReadString(&vs));
|
| + EXPECT_FALSE(m.ReadString(&iter, &vs));
|
| }
|
|
|
| TEST(IPCMessageIntegrity, ReadBeyondBufferWStr) {
|
| @@ -57,7 +57,7 @@
|
|
|
| PickleIterator iter(m);
|
| std::wstring vs;
|
| - EXPECT_FALSE(iter.ReadWString(&vs));
|
| + EXPECT_FALSE(m.ReadWString(&iter, &vs));
|
| }
|
|
|
| TEST(IPCMessageIntegrity, ReadBytesBadIterator) {
|
| @@ -68,7 +68,7 @@
|
|
|
| PickleIterator iter(m);
|
| const char* data = NULL;
|
| - EXPECT_TRUE(iter.ReadBytes(&data, sizeof(int)));
|
| + EXPECT_TRUE(m.ReadBytes(&iter, &data, sizeof(int)));
|
| }
|
|
|
| TEST(IPCMessageIntegrity, ReadVectorNegativeSize) {
|
| @@ -211,9 +211,9 @@
|
| int msg_value1 = 0;
|
| int msg_value2 = 0;
|
| PickleIterator iter(*last_msg_);
|
| - if (!iter.ReadInt(&msg_value1))
|
| - return false;
|
| - if (!iter.ReadInt(&msg_value2))
|
| + if (!last_msg_->ReadInt(&iter, &msg_value1))
|
| + return false;
|
| + if (!last_msg_->ReadInt(&iter, &msg_value2))
|
| return false;
|
| if ((msg_value2 + 1) != msg_value1)
|
| return false;
|
|
|