diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-10-12 14:27:29 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-10-13 09:35:20 +0000 |
commit | c30a6232df03e1efbd9f3b226777b07e087a1122 (patch) | |
tree | e992f45784689f373bcc38d1b79a239ebe17ee23 /chromium/ipc/ipc_fuzzing_tests.cc | |
parent | 7b5b123ac58f58ffde0f4f6e488bcd09aa4decd3 (diff) | |
download | qtwebengine-chromium-85-based.tar.gz |
BASELINE: Update Chromium to 85.0.4183.14085-based
Change-Id: Iaa42f4680837c57725b1344f108c0196741f6057
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/ipc/ipc_fuzzing_tests.cc')
-rw-r--r-- | chromium/ipc/ipc_fuzzing_tests.cc | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/chromium/ipc/ipc_fuzzing_tests.cc b/chromium/ipc/ipc_fuzzing_tests.cc index ca8827b12b7..d9a2ef6f3b4 100644 --- a/chromium/ipc/ipc_fuzzing_tests.cc +++ b/chromium/ipc/ipc_fuzzing_tests.cc @@ -74,7 +74,7 @@ TEST(IPCMessageIntegrity, ReadBytesBadIterator) { m.WriteInt(2); base::PickleIterator iter(m); - const char* data = NULL; + const char* data = nullptr; EXPECT_TRUE(iter.ReadBytes(&data, sizeof(int))); } @@ -141,8 +141,7 @@ TEST(IPCMessageIntegrity, DISABLED_ReadVectorTooLarge3) { class SimpleListener : public IPC::Listener { public: - SimpleListener() : other_(NULL) { - } + SimpleListener() : other_(nullptr) {} void Init(IPC::Sender* s) { other_ = s; } @@ -223,8 +222,7 @@ class FuzzerServerListener : public SimpleListener { class FuzzerClientListener : public SimpleListener { public: - FuzzerClientListener() : last_msg_(NULL) { - } + FuzzerClientListener() : last_msg_(nullptr) {} bool OnMessageReceived(const IPC::Message& msg) override { last_msg_ = new IPC::Message(msg); @@ -248,7 +246,7 @@ class FuzzerClientListener : public SimpleListener { return false; delete last_msg_; - last_msg_ = NULL; + last_msg_ = nullptr; return true; } @@ -259,7 +257,7 @@ class FuzzerClientListener : public SimpleListener { private: bool MsgHandlerInternal(uint32_t type_id) { base::RunLoop().Run(); - if (NULL == last_msg_) + if (!last_msg_) return false; if (FUZZER_ROUTING_ID != last_msg_->routing_id()) return false; @@ -291,7 +289,7 @@ TEST_F(IPCFuzzingTest, SanityTest) { listener.Init(channel()); ASSERT_TRUE(ConnectChannel()); - IPC::Message* msg = NULL; + IPC::Message* msg = nullptr; int value = 43; msg = new MsgClassIS(value, base::ASCIIToUTF16("expect 43")); sender()->Send(msg); |