| 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 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 RenderProcessHostImpl::FilterURL(this, empty_allowed, url); | 302 RenderProcessHostImpl::FilterURL(this, empty_allowed, url); |
| 303 } | 303 } |
| 304 | 304 |
| 305 #if defined(ENABLE_WEBRTC) | 305 #if defined(ENABLE_WEBRTC) |
| 306 void MockRenderProcessHost::EnableAudioDebugRecordings( | 306 void MockRenderProcessHost::EnableAudioDebugRecordings( |
| 307 const base::FilePath& file) { | 307 const base::FilePath& file) { |
| 308 } | 308 } |
| 309 | 309 |
| 310 void MockRenderProcessHost::DisableAudioDebugRecordings() {} | 310 void MockRenderProcessHost::DisableAudioDebugRecordings() {} |
| 311 | 311 |
| 312 void MockRenderProcessHost::EnableEventLogRecordings( | 312 bool MockRenderProcessHost::StartWebRTCEventLog( |
| 313 const base::FilePath& file) {} | 313 const base::FilePath& file_path) { |
| 314 return false; |
| 315 } |
| 314 | 316 |
| 315 void MockRenderProcessHost::DisableEventLogRecordings() {} | 317 bool MockRenderProcessHost::StopWebRTCEventLog() { |
| 318 return false; |
| 319 } |
| 316 | 320 |
| 317 void MockRenderProcessHost::SetWebRtcLogMessageCallback( | 321 void MockRenderProcessHost::SetWebRtcLogMessageCallback( |
| 318 base::Callback<void(const std::string&)> callback) { | 322 base::Callback<void(const std::string&)> callback) { |
| 319 } | 323 } |
| 320 | 324 |
| 321 void MockRenderProcessHost::ClearWebRtcLogMessageCallback() {} | 325 void MockRenderProcessHost::ClearWebRtcLogMessageCallback() {} |
| 322 | 326 |
| 323 RenderProcessHost::WebRtcStopRtpDumpCallback | 327 RenderProcessHost::WebRtcStopRtpDumpCallback |
| 324 MockRenderProcessHost::StartRtpDump( | 328 MockRenderProcessHost::StartRtpDump( |
| 325 bool incoming, | 329 bool incoming, |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 367 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin(); | 371 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin(); |
| 368 it != processes_.end(); ++it) { | 372 it != processes_.end(); ++it) { |
| 369 if (*it == host) { | 373 if (*it == host) { |
| 370 processes_.weak_erase(it); | 374 processes_.weak_erase(it); |
| 371 break; | 375 break; |
| 372 } | 376 } |
| 373 } | 377 } |
| 374 } | 378 } |
| 375 | 379 |
| 376 } // namespace content | 380 } // namespace content |
| OLD | NEW |