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/public/test/mock_render_process_host.h" | 5 #include "content/public/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/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
9 #include "base/process/process_handle.h" | 9 #include "base/process/process_handle.h" |
10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 deletion_callback_called_ = true; | 165 deletion_callback_called_ = true; |
166 } | 166 } |
167 } | 167 } |
168 | 168 |
169 void MockRenderProcessHost::AddPendingView() { | 169 void MockRenderProcessHost::AddPendingView() { |
170 } | 170 } |
171 | 171 |
172 void MockRenderProcessHost::RemovePendingView() { | 172 void MockRenderProcessHost::RemovePendingView() { |
173 } | 173 } |
174 | 174 |
175 void MockRenderProcessHost::SetSuddenTerminationAllowed(bool allowed) { | |
176 } | |
177 | |
178 bool MockRenderProcessHost::SuddenTerminationAllowed() const { | 175 bool MockRenderProcessHost::SuddenTerminationAllowed() const { |
179 return true; | 176 return true; |
180 } | 177 } |
181 | 178 |
182 BrowserContext* MockRenderProcessHost::GetBrowserContext() const { | 179 BrowserContext* MockRenderProcessHost::GetBrowserContext() const { |
183 return browser_context_; | 180 return browser_context_; |
184 } | 181 } |
185 | 182 |
186 bool MockRenderProcessHost::InSameStoragePartition( | 183 bool MockRenderProcessHost::InSameStoragePartition( |
187 StoragePartition* partition) const { | 184 StoragePartition* partition) const { |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin(); | 308 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin(); |
312 it != processes_.end(); ++it) { | 309 it != processes_.end(); ++it) { |
313 if (*it == host) { | 310 if (*it == host) { |
314 processes_.weak_erase(it); | 311 processes_.weak_erase(it); |
315 break; | 312 break; |
316 } | 313 } |
317 } | 314 } |
318 } | 315 } |
319 | 316 |
320 } // content | 317 } // content |
OLD | NEW |