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

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

Issue 264793017: Implements RTP header dumping. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 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 "base/lazy_instance.h" 7 #include "base/lazy_instance.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "content/browser/child_process_security_policy_impl.h" 10 #include "content/browser/child_process_security_policy_impl.h"
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 #if defined(ENABLE_WEBRTC) 230 #if defined(ENABLE_WEBRTC)
231 void MockRenderProcessHost::EnableAecDump(const base::FilePath& file) { 231 void MockRenderProcessHost::EnableAecDump(const base::FilePath& file) {
232 } 232 }
233 233
234 void MockRenderProcessHost::DisableAecDump() { 234 void MockRenderProcessHost::DisableAecDump() {
235 } 235 }
236 236
237 void MockRenderProcessHost::SetWebRtcLogMessageCallback( 237 void MockRenderProcessHost::SetWebRtcLogMessageCallback(
238 base::Callback<void(const std::string&)> callback) { 238 base::Callback<void(const std::string&)> callback) {
239 } 239 }
240
241 void MockRenderProcessHost::SetWebRtcRtpPacketCallback(
242 const WebRtcRtpPacketCallback& callback) {
243 }
244
245 void MockRenderProcessHost::StartRtpDump(bool incoming, bool outgoing) {
246 }
247
248 void MockRenderProcessHost::StopRtpDump(bool incoming, bool outgoing) {
249 }
240 #endif 250 #endif
241 251
242 void MockRenderProcessHost::ResumeDeferredNavigation( 252 void MockRenderProcessHost::ResumeDeferredNavigation(
243 const GlobalRequestID& request_id) {} 253 const GlobalRequestID& request_id) {}
244 254
245 bool MockRenderProcessHost::OnMessageReceived(const IPC::Message& msg) { 255 bool MockRenderProcessHost::OnMessageReceived(const IPC::Message& msg) {
246 IPC::Listener* listener = listeners_.Lookup(msg.routing_id()); 256 IPC::Listener* listener = listeners_.Lookup(msg.routing_id());
247 if (listener) 257 if (listener)
248 return listener->OnMessageReceived(msg); 258 return listener->OnMessageReceived(msg);
249 return false; 259 return false;
(...skipping 28 matching lines...) Expand all
278 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin(); 288 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin();
279 it != processes_.end(); ++it) { 289 it != processes_.end(); ++it) {
280 if (*it == host) { 290 if (*it == host) {
281 processes_.weak_erase(it); 291 processes_.weak_erase(it);
282 break; 292 break;
283 } 293 }
284 } 294 }
285 } 295 }
286 296
287 } // content 297 } // content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698