| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 "chrome/browser/renderer_host/mock_render_process_host.h" | 5 #include "chrome/browser/renderer_host/mock_render_process_host.h" |
| 6 | 6 |
| 7 MockRenderProcessHost::MockRenderProcessHost(Profile* profile) | 7 MockRenderProcessHost::MockRenderProcessHost(Profile* profile) |
| 8 : RenderProcessHost(profile), | 8 : RenderProcessHost(profile), |
| 9 transport_dib_(NULL), | 9 transport_dib_(NULL), |
| 10 bad_msg_count_(0) { | 10 bad_msg_count_(0) { |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 | 23 |
| 24 int MockRenderProcessHost::GetNextRoutingID() { | 24 int MockRenderProcessHost::GetNextRoutingID() { |
| 25 static int prev_routing_id = 0; | 25 static int prev_routing_id = 0; |
| 26 return ++prev_routing_id; | 26 return ++prev_routing_id; |
| 27 } | 27 } |
| 28 | 28 |
| 29 void MockRenderProcessHost::CancelResourceRequests(int render_widget_id) { | 29 void MockRenderProcessHost::CancelResourceRequests(int render_widget_id) { |
| 30 } | 30 } |
| 31 | 31 |
| 32 void MockRenderProcessHost::CrossSiteClosePageACK( | 32 void MockRenderProcessHost::CrossSiteClosePageACK( |
| 33 int new_render_process_host_id, | 33 const ViewMsg_ClosePage_Params& params) { |
| 34 int new_request_id) { | |
| 35 } | 34 } |
| 36 | 35 |
| 37 bool MockRenderProcessHost::WaitForPaintMsg(int render_widget_id, | 36 bool MockRenderProcessHost::WaitForPaintMsg(int render_widget_id, |
| 38 const base::TimeDelta& max_delay, | 37 const base::TimeDelta& max_delay, |
| 39 IPC::Message* msg) { | 38 IPC::Message* msg) { |
| 40 return false; | 39 return false; |
| 41 } | 40 } |
| 42 | 41 |
| 43 void MockRenderProcessHost::ReceivedBadMessage(uint16 msg_type) { | 42 void MockRenderProcessHost::ReceivedBadMessage(uint16 msg_type) { |
| 44 ++bad_msg_count_; | 43 ++bad_msg_count_; |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 #endif | 94 #endif |
| 96 | 95 |
| 97 return transport_dib_; | 96 return transport_dib_; |
| 98 } | 97 } |
| 99 | 98 |
| 100 void MockRenderProcessHost::OnMessageReceived(const IPC::Message& msg) { | 99 void MockRenderProcessHost::OnMessageReceived(const IPC::Message& msg) { |
| 101 } | 100 } |
| 102 | 101 |
| 103 void MockRenderProcessHost::OnChannelConnected(int32 peer_pid) { | 102 void MockRenderProcessHost::OnChannelConnected(int32 peer_pid) { |
| 104 } | 103 } |
| OLD | NEW |