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

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: rebase 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
« no previous file with comments | « webrtc/media/engine/fakewebrtccall.h ('k') | webrtc/media/engine/webrtcvoe.h » ('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 * 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 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 if (sent_packet.packet_id >= 0) { 472 if (sent_packet.packet_id >= 0) {
469 last_sent_nonnegative_packet_id_ = sent_packet.packet_id; 473 last_sent_nonnegative_packet_id_ = sent_packet.packet_id;
470 } 474 }
471 } 475 }
472 476
473 } // namespace cricket 477 } // namespace cricket
OLDNEW
« no previous file with comments | « webrtc/media/engine/fakewebrtccall.h ('k') | webrtc/media/engine/webrtcvoe.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698