| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 | 46 |
| 47 void MockRenderProcessHost::WidgetHidden() { | 47 void MockRenderProcessHost::WidgetHidden() { |
| 48 } | 48 } |
| 49 | 49 |
| 50 void MockRenderProcessHost::ViewCreated() { | 50 void MockRenderProcessHost::ViewCreated() { |
| 51 } | 51 } |
| 52 | 52 |
| 53 void MockRenderProcessHost::AddWord(const string16& word) { | 53 void MockRenderProcessHost::AddWord(const string16& word) { |
| 54 } | 54 } |
| 55 | 55 |
| 56 void MockRenderProcessHost::SendVisitedLinkTable( |
| 57 base::SharedMemory* table_memory) { |
| 58 } |
| 59 |
| 56 void MockRenderProcessHost::AddVisitedLinks( | 60 void MockRenderProcessHost::AddVisitedLinks( |
| 57 const VisitedLinkCommon::Fingerprints& links) { | 61 const VisitedLinkCommon::Fingerprints& links) { |
| 58 } | 62 } |
| 59 | 63 |
| 60 void MockRenderProcessHost::ResetVisitedLinks() { | 64 void MockRenderProcessHost::ResetVisitedLinks() { |
| 61 } | 65 } |
| 62 | 66 |
| 63 bool MockRenderProcessHost::FastShutdownIfPossible() { | 67 bool MockRenderProcessHost::FastShutdownIfPossible() { |
| 64 // We aren't actually going to do anything, but set |fast_shutdown_started_| | 68 // We aren't actually going to do anything, but set |fast_shutdown_started_| |
| 65 // to true so that tests know we've been called. | 69 // to true so that tests know we've been called. |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 #endif | 102 #endif |
| 99 | 103 |
| 100 return transport_dib_; | 104 return transport_dib_; |
| 101 } | 105 } |
| 102 | 106 |
| 103 void MockRenderProcessHost::OnMessageReceived(const IPC::Message& msg) { | 107 void MockRenderProcessHost::OnMessageReceived(const IPC::Message& msg) { |
| 104 } | 108 } |
| 105 | 109 |
| 106 void MockRenderProcessHost::OnChannelConnected(int32 peer_pid) { | 110 void MockRenderProcessHost::OnChannelConnected(int32 peer_pid) { |
| 107 } | 111 } |
| OLD | NEW |