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 <algorithm> | 7 #include <algorithm> |
8 #include <utility> | 8 #include <utility> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
308 void MockRenderProcessHost::Resume() {} | 308 void MockRenderProcessHost::Resume() {} |
309 | 309 |
310 mojom::Renderer* MockRenderProcessHost::GetRendererInterface() { | 310 mojom::Renderer* MockRenderProcessHost::GetRendererInterface() { |
311 if (!renderer_interface_) { | 311 if (!renderer_interface_) { |
312 renderer_interface_.reset(new mojom::RendererAssociatedPtr); | 312 renderer_interface_.reset(new mojom::RendererAssociatedPtr); |
313 mojo::GetDummyProxyForTesting(renderer_interface_.get()); | 313 mojo::GetDummyProxyForTesting(renderer_interface_.get()); |
314 } | 314 } |
315 return renderer_interface_->get(); | 315 return renderer_interface_->get(); |
316 } | 316 } |
317 | 317 |
| 318 void MockRenderProcessHost::SetIsNeverSuitableForReuse() { |
| 319 NOTREACHED(); |
| 320 } |
| 321 |
| 322 bool MockRenderProcessHost::MayReuseHost() { |
| 323 return true; |
| 324 } |
| 325 |
318 void MockRenderProcessHost::FilterURL(bool empty_allowed, GURL* url) { | 326 void MockRenderProcessHost::FilterURL(bool empty_allowed, GURL* url) { |
319 RenderProcessHostImpl::FilterURL(this, empty_allowed, url); | 327 RenderProcessHostImpl::FilterURL(this, empty_allowed, url); |
320 } | 328 } |
321 | 329 |
322 #if BUILDFLAG(ENABLE_WEBRTC) | 330 #if BUILDFLAG(ENABLE_WEBRTC) |
323 void MockRenderProcessHost::EnableAudioDebugRecordings( | 331 void MockRenderProcessHost::EnableAudioDebugRecordings( |
324 const base::FilePath& file) { | 332 const base::FilePath& file) { |
325 } | 333 } |
326 | 334 |
327 void MockRenderProcessHost::DisableAudioDebugRecordings() {} | 335 void MockRenderProcessHost::DisableAudioDebugRecordings() {} |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
388 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin(); | 396 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin(); |
389 it != processes_.end(); ++it) { | 397 it != processes_.end(); ++it) { |
390 if (*it == host) { | 398 if (*it == host) { |
391 processes_.weak_erase(it); | 399 processes_.weak_erase(it); |
392 break; | 400 break; |
393 } | 401 } |
394 } | 402 } |
395 } | 403 } |
396 | 404 |
397 } // namespace content | 405 } // namespace content |
OLD | NEW |