| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 void MockRenderProcessHost::ReceivedBadMessage(uint16 msg_type) { | 42 void MockRenderProcessHost::ReceivedBadMessage(uint16 msg_type) { |
| 43 ++bad_msg_count_; | 43 ++bad_msg_count_; |
| 44 } | 44 } |
| 45 | 45 |
| 46 void MockRenderProcessHost::WidgetRestored() { | 46 void MockRenderProcessHost::WidgetRestored() { |
| 47 } | 47 } |
| 48 | 48 |
| 49 void MockRenderProcessHost::WidgetHidden() { | 49 void MockRenderProcessHost::WidgetHidden() { |
| 50 } | 50 } |
| 51 | 51 |
| 52 void MockRenderProcessHost::ViewCreated() { |
| 53 } |
| 54 |
| 52 void MockRenderProcessHost::AddWord(const std::wstring& word) { | 55 void MockRenderProcessHost::AddWord(const std::wstring& word) { |
| 53 } | 56 } |
| 54 | 57 |
| 55 void MockRenderProcessHost::AddVisitedLinks( | 58 void MockRenderProcessHost::AddVisitedLinks( |
| 56 const VisitedLinkCommon::Fingerprints& links) { | 59 const VisitedLinkCommon::Fingerprints& links) { |
| 57 } | 60 } |
| 58 | 61 |
| 59 void MockRenderProcessHost::ResetVisitedLinks() { | 62 void MockRenderProcessHost::ResetVisitedLinks() { |
| 60 } | 63 } |
| 61 | 64 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 #endif | 97 #endif |
| 95 | 98 |
| 96 return transport_dib_; | 99 return transport_dib_; |
| 97 } | 100 } |
| 98 | 101 |
| 99 void MockRenderProcessHost::OnMessageReceived(const IPC::Message& msg) { | 102 void MockRenderProcessHost::OnMessageReceived(const IPC::Message& msg) { |
| 100 } | 103 } |
| 101 | 104 |
| 102 void MockRenderProcessHost::OnChannelConnected(int32 peer_pid) { | 105 void MockRenderProcessHost::OnChannelConnected(int32 peer_pid) { |
| 103 } | 106 } |
| OLD | NEW |