Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(157)

Side by Side Diff: content/public/test/mock_render_process_host.cc

Issue 1246283003: Split out audio debug recording from RenderProcessHostImpl. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 int cdm_id) const { 286 int cdm_id) const {
287 return nullptr; 287 return nullptr;
288 } 288 }
289 #endif 289 #endif
290 290
291 void MockRenderProcessHost::FilterURL(bool empty_allowed, GURL* url) { 291 void MockRenderProcessHost::FilterURL(bool empty_allowed, GURL* url) {
292 RenderProcessHostImpl::FilterURL(this, empty_allowed, url); 292 RenderProcessHostImpl::FilterURL(this, empty_allowed, url);
293 } 293 }
294 294
295 #if defined(ENABLE_WEBRTC) 295 #if defined(ENABLE_WEBRTC)
296 void MockRenderProcessHost::EnableAudioDebugRecordings(
297 const base::FilePath& file) {
298 }
299
300 void MockRenderProcessHost::DisableAudioDebugRecordings() {
301 }
302
303 void MockRenderProcessHost::SetWebRtcLogMessageCallback( 296 void MockRenderProcessHost::SetWebRtcLogMessageCallback(
304 base::Callback<void(const std::string&)> callback) { 297 base::Callback<void(const std::string&)> callback) {
305 } 298 }
306 299
307 RenderProcessHost::WebRtcStopRtpDumpCallback 300 RenderProcessHost::WebRtcStopRtpDumpCallback
308 MockRenderProcessHost::StartRtpDump( 301 MockRenderProcessHost::StartRtpDump(
309 bool incoming, 302 bool incoming,
310 bool outgoing, 303 bool outgoing,
311 const WebRtcRtpPacketCallback& packet_callback) { 304 const WebRtcRtpPacketCallback& packet_callback) {
312 return WebRtcStopRtpDumpCallback(); 305 return WebRtcStopRtpDumpCallback();
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin(); 345 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin();
353 it != processes_.end(); ++it) { 346 it != processes_.end(); ++it) {
354 if (*it == host) { 347 if (*it == host) {
355 processes_.weak_erase(it); 348 processes_.weak_erase(it);
356 break; 349 break;
357 } 350 }
358 } 351 }
359 } 352 }
360 353
361 } // namespace content 354 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698