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

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

Issue 2397573006: Using AudioOption to enable audio network adaptor. (Closed)
Patch Set: Created 4 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 /* 1 /*
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 } 49 }
50 50
51 void FakeAudioSendStream::SetMuted(bool muted) { 51 void FakeAudioSendStream::SetMuted(bool muted) {
52 muted_ = muted; 52 muted_ = muted;
53 } 53 }
54 54
55 webrtc::AudioSendStream::Stats FakeAudioSendStream::GetStats() const { 55 webrtc::AudioSendStream::Stats FakeAudioSendStream::GetStats() const {
56 return stats_; 56 return stats_;
57 } 57 }
58 58
59 bool FakeAudioSendStream::EnableAudioNetworkAdaptor(
60 const std::string& config_string) {
61 return true;
62 }
63
64 void FakeAudioSendStream::DisableAudioNetworkAdaptor() {}
65
66 void FakeAudioSendStream::SetReceiverFrameLengthRange(
67 int min_frame_length_ms,
68 int max_frame_length_ms){};
69
59 FakeAudioReceiveStream::FakeAudioReceiveStream( 70 FakeAudioReceiveStream::FakeAudioReceiveStream(
60 const webrtc::AudioReceiveStream::Config& config) 71 const webrtc::AudioReceiveStream::Config& config)
61 : config_(config) { 72 : config_(config) {
62 RTC_DCHECK(config.voe_channel_id != -1); 73 RTC_DCHECK(config.voe_channel_id != -1);
63 } 74 }
64 75
65 const webrtc::AudioReceiveStream::Config& 76 const webrtc::AudioReceiveStream::Config&
66 FakeAudioReceiveStream::GetConfig() const { 77 FakeAudioReceiveStream::GetConfig() const {
67 return config_; 78 return config_;
68 } 79 }
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after
511 } 522 }
512 523
513 bool FakeCall::StartEventLog(rtc::PlatformFile log_file, 524 bool FakeCall::StartEventLog(rtc::PlatformFile log_file,
514 int64_t max_size_bytes) { 525 int64_t max_size_bytes) {
515 return false; 526 return false;
516 } 527 }
517 528
518 void FakeCall::StopEventLog() {} 529 void FakeCall::StopEventLog() {}
519 530
520 } // namespace cricket 531 } // namespace cricket
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698