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 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 RenderProcessHostImpl::FilterURL(this, empty_allowed, url); | 310 RenderProcessHostImpl::FilterURL(this, empty_allowed, url); |
311 } | 311 } |
312 | 312 |
313 #if defined(ENABLE_WEBRTC) | 313 #if defined(ENABLE_WEBRTC) |
314 void MockRenderProcessHost::EnableAudioDebugRecordings( | 314 void MockRenderProcessHost::EnableAudioDebugRecordings( |
315 const base::FilePath& file) { | 315 const base::FilePath& file) { |
316 } | 316 } |
317 | 317 |
318 void MockRenderProcessHost::DisableAudioDebugRecordings() {} | 318 void MockRenderProcessHost::DisableAudioDebugRecordings() {} |
319 | 319 |
320 void MockRenderProcessHost::EnableEventLogRecordings( | 320 bool MockRenderProcessHost::StartWebRTCEventLog( |
321 const base::FilePath& file) {} | 321 const base::FilePath& file_path) { |
| 322 return false; |
| 323 } |
322 | 324 |
323 void MockRenderProcessHost::DisableEventLogRecordings() {} | 325 bool MockRenderProcessHost::StopWebRTCEventLog() { |
| 326 return false; |
| 327 } |
324 | 328 |
325 void MockRenderProcessHost::SetWebRtcLogMessageCallback( | 329 void MockRenderProcessHost::SetWebRtcLogMessageCallback( |
326 base::Callback<void(const std::string&)> callback) { | 330 base::Callback<void(const std::string&)> callback) { |
327 } | 331 } |
328 | 332 |
329 void MockRenderProcessHost::ClearWebRtcLogMessageCallback() {} | 333 void MockRenderProcessHost::ClearWebRtcLogMessageCallback() {} |
330 | 334 |
331 RenderProcessHost::WebRtcStopRtpDumpCallback | 335 RenderProcessHost::WebRtcStopRtpDumpCallback |
332 MockRenderProcessHost::StartRtpDump( | 336 MockRenderProcessHost::StartRtpDump( |
333 bool incoming, | 337 bool incoming, |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
375 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin(); | 379 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin(); |
376 it != processes_.end(); ++it) { | 380 it != processes_.end(); ++it) { |
377 if (*it == host) { | 381 if (*it == host) { |
378 processes_.weak_erase(it); | 382 processes_.weak_erase(it); |
379 break; | 383 break; |
380 } | 384 } |
381 } | 385 } |
382 } | 386 } |
383 | 387 |
384 } // namespace content | 388 } // namespace content |
OLD | NEW |