| 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 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 | 305 |
| 306 void MockRenderProcessHost::FilterURL(bool empty_allowed, GURL* url) { | 306 void MockRenderProcessHost::FilterURL(bool empty_allowed, GURL* url) { |
| 307 RenderProcessHostImpl::FilterURL(this, empty_allowed, url); | 307 RenderProcessHostImpl::FilterURL(this, empty_allowed, url); |
| 308 } | 308 } |
| 309 | 309 |
| 310 #if defined(ENABLE_WEBRTC) | 310 #if defined(ENABLE_WEBRTC) |
| 311 void MockRenderProcessHost::EnableAudioDebugRecordings( | 311 void MockRenderProcessHost::EnableAudioDebugRecordings( |
| 312 const base::FilePath& file) { | 312 const base::FilePath& file) { |
| 313 } | 313 } |
| 314 | 314 |
| 315 void MockRenderProcessHost::DisableAudioDebugRecordings() { | 315 void MockRenderProcessHost::DisableAudioDebugRecordings() {} |
| 316 } | |
| 317 | 316 |
| 318 void MockRenderProcessHost::EnableEventLogRecordings( | 317 void MockRenderProcessHost::EnableEventLogRecordings( |
| 319 const base::FilePath& file) {} | 318 const base::FilePath& file) {} |
| 320 | 319 |
| 321 void MockRenderProcessHost::DisableEventLogRecordings() {} | 320 void MockRenderProcessHost::DisableEventLogRecordings() {} |
| 322 | 321 |
| 323 void MockRenderProcessHost::SetWebRtcLogMessageCallback( | 322 void MockRenderProcessHost::SetWebRtcLogMessageCallback( |
| 324 base::Callback<void(const std::string&)> callback) { | 323 base::Callback<void(const std::string&)> callback) { |
| 325 } | 324 } |
| 326 | 325 |
| 326 void MockRenderProcessHost::ClearWebRtcLogMessageCallback() {} |
| 327 |
| 327 RenderProcessHost::WebRtcStopRtpDumpCallback | 328 RenderProcessHost::WebRtcStopRtpDumpCallback |
| 328 MockRenderProcessHost::StartRtpDump( | 329 MockRenderProcessHost::StartRtpDump( |
| 329 bool incoming, | 330 bool incoming, |
| 330 bool outgoing, | 331 bool outgoing, |
| 331 const WebRtcRtpPacketCallback& packet_callback) { | 332 const WebRtcRtpPacketCallback& packet_callback) { |
| 332 return WebRtcStopRtpDumpCallback(); | 333 return WebRtcStopRtpDumpCallback(); |
| 333 } | 334 } |
| 334 #endif | 335 #endif |
| 335 | 336 |
| 336 void MockRenderProcessHost::ResumeDeferredNavigation( | 337 void MockRenderProcessHost::ResumeDeferredNavigation( |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin(); | 372 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin(); |
| 372 it != processes_.end(); ++it) { | 373 it != processes_.end(); ++it) { |
| 373 if (*it == host) { | 374 if (*it == host) { |
| 374 processes_.weak_erase(it); | 375 processes_.weak_erase(it); |
| 375 break; | 376 break; |
| 376 } | 377 } |
| 377 } | 378 } |
| 378 } | 379 } |
| 379 | 380 |
| 380 } // namespace content | 381 } // namespace content |
| OLD | NEW |