| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/renderer_host/test_render_view_host.h" | 5 #include "content/browser/renderer_host/test_render_view_host.h" |
| 6 #include "content/browser/tab_contents/navigation_controller.h" | 6 #include "content/browser/tab_contents/navigation_controller.h" |
| 7 #include "content/browser/tab_contents/navigation_entry.h" | 7 #include "content/browser/tab_contents/navigation_entry.h" |
| 8 #include "content/browser/tab_contents/test_tab_contents.h" | 8 #include "content/browser/tab_contents/test_tab_contents.h" |
| 9 #include "content/common/view_messages.h" | 9 #include "content/common/view_messages.h" |
| 10 #include "content/public/common/page_transition_types.h" | 10 #include "content/public/common/page_transition_types.h" |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 controller().Reload(false); | 58 controller().Reload(false); |
| 59 EXPECT_FALSE(rvh()->is_waiting_for_unload_ack_for_testing()); | 59 EXPECT_FALSE(rvh()->is_waiting_for_unload_ack_for_testing()); |
| 60 } | 60 } |
| 61 | 61 |
| 62 class MockDraggingRenderViewHostDelegateView | 62 class MockDraggingRenderViewHostDelegateView |
| 63 : public RenderViewHostDelegate::View { | 63 : public RenderViewHostDelegate::View { |
| 64 public: | 64 public: |
| 65 virtual ~MockDraggingRenderViewHostDelegateView() {} | 65 virtual ~MockDraggingRenderViewHostDelegateView() {} |
| 66 virtual void CreateNewWindow( | 66 virtual void CreateNewWindow( |
| 67 int route_id, | 67 int route_id, |
| 68 const ViewHostMsg_CreateWindow_Params& params) {} | 68 const ViewHostMsg_CreateWindow_Params& params, |
| 69 ContentFrame* opener) {} |
| 69 virtual void CreateNewWidget(int route_id, | 70 virtual void CreateNewWidget(int route_id, |
| 70 WebKit::WebPopupType popup_type) {} | 71 WebKit::WebPopupType popup_type) {} |
| 71 virtual void CreateNewFullscreenWidget(int route_id) {} | 72 virtual void CreateNewFullscreenWidget(int route_id) {} |
| 72 virtual void ShowCreatedWindow(int route_id, | 73 virtual void ShowCreatedWindow(int route_id, |
| 73 WindowOpenDisposition disposition, | 74 WindowOpenDisposition disposition, |
| 74 const gfx::Rect& initial_pos, | 75 const gfx::Rect& initial_pos, |
| 75 bool user_gesture) {} | 76 bool user_gesture) {} |
| 76 virtual void ShowCreatedWidget(int route_id, | 77 virtual void ShowCreatedWidget(int route_id, |
| 77 const gfx::Rect& initial_pos) {} | 78 const gfx::Rect& initial_pos) {} |
| 78 virtual void ShowCreatedFullscreenWidget(int route_id) {} | 79 virtual void ShowCreatedFullscreenWidget(int route_id) {} |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 // the code actually expects it to have at least one int para, this this | 178 // the code actually expects it to have at least one int para, this this |
| 178 // bogus message will not fail at de-serialization but should fail in | 179 // bogus message will not fail at de-serialization but should fail in |
| 179 // OnMsgInputEventAck() processing. | 180 // OnMsgInputEventAck() processing. |
| 180 IPC::Message message(0, ViewHostMsg_HandleInputEvent_ACK::ID, | 181 IPC::Message message(0, ViewHostMsg_HandleInputEvent_ACK::ID, |
| 181 IPC::Message::PRIORITY_NORMAL); | 182 IPC::Message::PRIORITY_NORMAL); |
| 182 rvh()->TestOnMessageReceived(message); | 183 rvh()->TestOnMessageReceived(message); |
| 183 EXPECT_EQ(1, process()->bad_msg_count()); | 184 EXPECT_EQ(1, process()->bad_msg_count()); |
| 184 } | 185 } |
| 185 | 186 |
| 186 #endif | 187 #endif |
| OLD | NEW |