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

Side by Side Diff: talk/media/webrtc/fakewebrtccall.cc

Issue 1181653002: Base A/V synchronization on sync_labels. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase Created 5 years, 5 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
« no previous file with comments | « no previous file | talk/media/webrtc/webrtcvideoengine2.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * libjingle 2 * libjingle
3 * Copyright 2015 Google Inc. 3 * Copyright 2015 Google Inc.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met: 6 * modification, are permitted provided that the following conditions are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright notice, 8 * 1. Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer. 9 * this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright notice, 10 * 2. Redistributions in binary form must reproduce the above copyright notice,
(...skipping 19 matching lines...) Expand all
30 #include <algorithm> 30 #include <algorithm>
31 31
32 #include "talk/media/base/rtputils.h" 32 #include "talk/media/base/rtputils.h"
33 #include "webrtc/base/checks.h" 33 #include "webrtc/base/checks.h"
34 #include "webrtc/base/gunit.h" 34 #include "webrtc/base/gunit.h"
35 35
36 namespace cricket { 36 namespace cricket {
37 FakeAudioReceiveStream::FakeAudioReceiveStream( 37 FakeAudioReceiveStream::FakeAudioReceiveStream(
38 const webrtc::AudioReceiveStream::Config& config) 38 const webrtc::AudioReceiveStream::Config& config)
39 : config_(config), received_packets_(0) { 39 : config_(config), received_packets_(0) {
40 DCHECK(config.voe_channel_id != -1);
40 } 41 }
41 42
42 webrtc::AudioReceiveStream::Stats FakeAudioReceiveStream::GetStats() const { 43 webrtc::AudioReceiveStream::Stats FakeAudioReceiveStream::GetStats() const {
43 return webrtc::AudioReceiveStream::Stats(); 44 return webrtc::AudioReceiveStream::Stats();
44 } 45 }
45 46
46 const webrtc::AudioReceiveStream::Config& 47 const webrtc::AudioReceiveStream::Config&
47 FakeAudioReceiveStream::GetConfig() const { 48 FakeAudioReceiveStream::GetConfig() const {
48 return config_; 49 return config_;
49 } 50 }
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 354
354 void FakeCall::SetBitrateConfig( 355 void FakeCall::SetBitrateConfig(
355 const webrtc::Call::Config::BitrateConfig& bitrate_config) { 356 const webrtc::Call::Config::BitrateConfig& bitrate_config) {
356 config_.bitrate_config = bitrate_config; 357 config_.bitrate_config = bitrate_config;
357 } 358 }
358 359
359 void FakeCall::SignalNetworkState(webrtc::Call::NetworkState state) { 360 void FakeCall::SignalNetworkState(webrtc::Call::NetworkState state) {
360 network_state_ = state; 361 network_state_ = state;
361 } 362 }
362 } // namespace cricket 363 } // namespace cricket
OLDNEW
« no previous file with comments | « no previous file | talk/media/webrtc/webrtcvideoengine2.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698