Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(525)

Unified Diff: ipc/ipc_fuzzing_tests.cc

Issue 818833004: Remove deprecated methods from Pickle. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ipc/ipc_channel_unittest.cc ('k') | ipc/ipc_message.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_fuzzing_tests.cc
diff --git a/ipc/ipc_fuzzing_tests.cc b/ipc/ipc_fuzzing_tests.cc
index f9475a1adb0015fdf7f80b0dc5e7dae7487fec86..de5aed8f10ffb97650984598b8ef205bb2003a9b 100644
--- a/ipc/ipc_fuzzing_tests.cc
+++ b/ipc/ipc_fuzzing_tests.cc
@@ -44,7 +44,7 @@ TEST(IPCMessageIntegrity, ReadBeyondBufferStr) {
PickleIterator iter(m);
std::string vs;
- EXPECT_FALSE(m.ReadString(&iter, &vs));
+ EXPECT_FALSE(iter.ReadString(&vs));
}
TEST(IPCMessageIntegrity, ReadBeyondBufferWStr) {
@@ -57,7 +57,7 @@ TEST(IPCMessageIntegrity, ReadBeyondBufferWStr) {
PickleIterator iter(m);
std::wstring vs;
- EXPECT_FALSE(m.ReadWString(&iter, &vs));
+ EXPECT_FALSE(iter.ReadWString(&vs));
}
TEST(IPCMessageIntegrity, ReadBytesBadIterator) {
@@ -68,7 +68,7 @@ TEST(IPCMessageIntegrity, ReadBytesBadIterator) {
PickleIterator iter(m);
const char* data = NULL;
- EXPECT_TRUE(m.ReadBytes(&iter, &data, sizeof(int)));
+ EXPECT_TRUE(iter.ReadBytes(&data, sizeof(int)));
}
TEST(IPCMessageIntegrity, ReadVectorNegativeSize) {
@@ -211,9 +211,9 @@ class FuzzerClientListener : public SimpleListener {
int msg_value1 = 0;
int msg_value2 = 0;
PickleIterator iter(*last_msg_);
- if (!last_msg_->ReadInt(&iter, &msg_value1))
+ if (!iter.ReadInt(&msg_value1))
return false;
- if (!last_msg_->ReadInt(&iter, &msg_value2))
+ if (!iter.ReadInt(&msg_value2))
return false;
if ((msg_value2 + 1) != msg_value1)
return false;
« no previous file with comments | « ipc/ipc_channel_unittest.cc ('k') | ipc/ipc_message.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698