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

Side by Side Diff: ipc/ipc_fuzzing_tests.cc

Issue 3170020: Completely revert all my IPC work to see if this was what regressed the page cycler. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Rebase Created 10 years, 4 months 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 unified diff | Download patch
« no previous file with comments | « chrome/test/automation/automation_messages.cc ('k') | ipc/ipc_message_impl_macros.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <stdio.h> 5 #include <stdio.h>
6 #include <string> 6 #include <string>
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/platform_thread.h" 10 #include "base/platform_thread.h"
11 #include "base/process_util.h" 11 #include "base/process_util.h"
12 #include "ipc/ipc_channel.h" 12 #include "ipc/ipc_channel.h"
13 #include "ipc/ipc_channel_proxy.h" 13 #include "ipc/ipc_channel_proxy.h"
14 #include "ipc/ipc_message_utils.h" 14 #include "ipc/ipc_message_utils.h"
15 #include "ipc/ipc_message_utils_impl.h"
16 #include "ipc/ipc_tests.h" 15 #include "ipc/ipc_tests.h"
17 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
18 #include "testing/multiprocess_func_list.h" 17 #include "testing/multiprocess_func_list.h"
19 18
20 TEST(IPCMessageIntegrity, ReadBeyondBufferStr) { 19 TEST(IPCMessageIntegrity, ReadBeyondBufferStr) {
21 //This was BUG 984408. 20 //This was BUG 984408.
22 uint32 v1 = kuint32max - 1; 21 uint32 v1 = kuint32max - 1;
23 int v2 = 666; 22 int v2 = 666;
24 IPC::Message m(0, 1, IPC::Message::PRIORITY_NORMAL); 23 IPC::Message m(0, 1, IPC::Message::PRIORITY_NORMAL);
25 EXPECT_TRUE(m.WriteInt(v1)); 24 EXPECT_TRUE(m.WriteInt(v1));
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 msg = new IPC::Message(MSG_ROUTING_CONTROL, MsgClassIS::ID, 422 msg = new IPC::Message(MSG_ROUTING_CONTROL, MsgClassIS::ID,
424 IPC::Message::PRIORITY_NORMAL); 423 IPC::Message::PRIORITY_NORMAL);
425 msg->WriteInt(0x64); 424 msg->WriteInt(0x64);
426 msg->WriteInt(0x32); 425 msg->WriteInt(0x32);
427 EXPECT_FALSE(server.OnMessageReceived(*msg)); 426 EXPECT_FALSE(server.OnMessageReceived(*msg));
428 delete msg; 427 delete msg;
429 428
430 EXPECT_EQ(0, server.unhandled_msgs()); 429 EXPECT_EQ(0, server.unhandled_msgs());
431 #endif 430 #endif
432 } 431 }
OLDNEW
« no previous file with comments | « chrome/test/automation/automation_messages.cc ('k') | ipc/ipc_message_impl_macros.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698