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/test/mock_render_process_host.h" | 5 #include "content/test/mock_render_process_host.h" |
6 | 6 |
7 #include "base/lazy_instance.h" | 7 #include "base/lazy_instance.h" |
8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
9 #include "base/time.h" | 9 #include "base/time.h" |
10 #include "content/browser/child_process_security_policy_impl.h" | 10 #include "content/browser/child_process_security_policy_impl.h" |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 return ++prev_routing_id; | 51 return ++prev_routing_id; |
52 } | 52 } |
53 | 53 |
54 void MockRenderProcessHost::CancelResourceRequests(int render_widget_id) { | 54 void MockRenderProcessHost::CancelResourceRequests(int render_widget_id) { |
55 } | 55 } |
56 | 56 |
57 void MockRenderProcessHost::SimulateSwapOutACK( | 57 void MockRenderProcessHost::SimulateSwapOutACK( |
58 const ViewMsg_SwapOut_Params& params) { | 58 const ViewMsg_SwapOut_Params& params) { |
59 } | 59 } |
60 | 60 |
61 bool MockRenderProcessHost::WaitForUpdateMsg(int render_widget_id, | 61 bool MockRenderProcessHost::WaitForBackingStoreMsg( |
62 const base::TimeDelta& max_delay, | 62 int render_widget_id, |
63 IPC::Message* msg) { | 63 const base::TimeDelta& max_delay, |
| 64 IPC::Message* msg) { |
64 return false; | 65 return false; |
65 } | 66 } |
66 | 67 |
67 void MockRenderProcessHost::ReceivedBadMessage() { | 68 void MockRenderProcessHost::ReceivedBadMessage() { |
68 ++bad_msg_count_; | 69 ++bad_msg_count_; |
69 } | 70 } |
70 | 71 |
71 void MockRenderProcessHost::WidgetRestored() { | 72 void MockRenderProcessHost::WidgetRestored() { |
72 } | 73 } |
73 | 74 |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin(); | 241 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin(); |
241 it != processes_.end(); ++it) { | 242 it != processes_.end(); ++it) { |
242 if (*it == host) { | 243 if (*it == host) { |
243 processes_.weak_erase(it); | 244 processes_.weak_erase(it); |
244 break; | 245 break; |
245 } | 246 } |
246 } | 247 } |
247 } | 248 } |
248 | 249 |
249 } // content | 250 } // content |
OLD | NEW |