OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/browser/child_process_security_policy_impl.h" | 5 #include "content/browser/child_process_security_policy_impl.h" |
6 #include "content/browser/renderer_host/test_render_view_host.h" | 6 #include "content/browser/renderer_host/test_render_view_host.h" |
7 #include "content/browser/tab_contents/test_web_contents.h" | |
8 #include "content/browser/web_contents/navigation_controller_impl.h" | 7 #include "content/browser/web_contents/navigation_controller_impl.h" |
| 8 #include "content/browser/web_contents/test_web_contents.h" |
9 #include "content/common/view_messages.h" | 9 #include "content/common/view_messages.h" |
10 #include "content/public/browser/navigation_entry.h" | 10 #include "content/public/browser/navigation_entry.h" |
11 #include "content/public/common/bindings_policy.h" | 11 #include "content/public/common/bindings_policy.h" |
12 #include "content/public/common/page_transition_types.h" | 12 #include "content/public/common/page_transition_types.h" |
13 #include "content/test/mock_render_process_host.h" | 13 #include "content/test/mock_render_process_host.h" |
14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" | 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" |
15 #include "webkit/glue/webdropdata.h" | 15 #include "webkit/glue/webdropdata.h" |
16 | 16 |
17 using content::RenderViewHostImplTestHarness; | 17 using content::RenderViewHostImplTestHarness; |
18 using content::TestWebContents; | 18 using content::TestWebContents; |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 // the code actually expects it to have at least one int para, this this | 205 // the code actually expects it to have at least one int para, this this |
206 // bogus message will not fail at de-serialization but should fail in | 206 // bogus message will not fail at de-serialization but should fail in |
207 // OnMsgInputEventAck() processing. | 207 // OnMsgInputEventAck() processing. |
208 IPC::Message message(0, ViewHostMsg_HandleInputEvent_ACK::ID, | 208 IPC::Message message(0, ViewHostMsg_HandleInputEvent_ACK::ID, |
209 IPC::Message::PRIORITY_NORMAL); | 209 IPC::Message::PRIORITY_NORMAL); |
210 test_rvh()->OnMessageReceived(message); | 210 test_rvh()->OnMessageReceived(message); |
211 EXPECT_EQ(1, process()->bad_msg_count()); | 211 EXPECT_EQ(1, process()->bad_msg_count()); |
212 } | 212 } |
213 | 213 |
214 #endif | 214 #endif |
OLD | NEW |