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

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

Issue 2066973002: Add AudioSendStream::SetMuted() method and use it in WVoMC::MuteStream(). (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 6 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 29 matching lines...) Expand all
40 } 40 }
41 41
42 bool FakeAudioSendStream::SendTelephoneEvent(int payload_type, int event, 42 bool FakeAudioSendStream::SendTelephoneEvent(int payload_type, int event,
43 int duration_ms) { 43 int duration_ms) {
44 latest_telephone_event_.payload_type = payload_type; 44 latest_telephone_event_.payload_type = payload_type;
45 latest_telephone_event_.event_code = event; 45 latest_telephone_event_.event_code = event;
46 latest_telephone_event_.duration_ms = duration_ms; 46 latest_telephone_event_.duration_ms = duration_ms;
47 return true; 47 return true;
48 } 48 }
49 49
50 void FakeAudioSendStream::SetMuted(bool muted) {
51 muted_ = muted;
52 }
53
50 webrtc::AudioSendStream::Stats FakeAudioSendStream::GetStats() const { 54 webrtc::AudioSendStream::Stats FakeAudioSendStream::GetStats() const {
51 return stats_; 55 return stats_;
52 } 56 }
53 57
54 FakeAudioReceiveStream::FakeAudioReceiveStream( 58 FakeAudioReceiveStream::FakeAudioReceiveStream(
55 const webrtc::AudioReceiveStream::Config& config) 59 const webrtc::AudioReceiveStream::Config& config)
56 : config_(config), received_packets_(0) { 60 : config_(config), received_packets_(0) {
57 RTC_DCHECK(config.voe_channel_id != -1); 61 RTC_DCHECK(config.voe_channel_id != -1);
58 } 62 }
59 63
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
460 case webrtc::MediaType::ANY: 464 case webrtc::MediaType::ANY:
461 ADD_FAILURE() 465 ADD_FAILURE()
462 << "SignalChannelNetworkState called with unknown parameter."; 466 << "SignalChannelNetworkState called with unknown parameter.";
463 } 467 }
464 } 468 }
465 469
466 void FakeCall::OnSentPacket(const rtc::SentPacket& sent_packet) { 470 void FakeCall::OnSentPacket(const rtc::SentPacket& sent_packet) {
467 last_sent_packet_ = sent_packet; 471 last_sent_packet_ = sent_packet;
468 } 472 }
469 } // namespace cricket 473 } // namespace cricket
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698