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

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

Issue 1924793002: Remove webrtc/stream.h and unutilized inheritance. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: re-rebase Created 4 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 /* 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 } 73 }
74 74
75 bool FakeAudioReceiveStream::DeliverRtp(const uint8_t* packet, 75 bool FakeAudioReceiveStream::DeliverRtp(const uint8_t* packet,
76 size_t length, 76 size_t length,
77 const webrtc::PacketTime& packet_time) { 77 const webrtc::PacketTime& packet_time) {
78 ++received_packets_; 78 ++received_packets_;
79 last_packet_.SetData(packet, length); 79 last_packet_.SetData(packet, length);
80 return true; 80 return true;
81 } 81 }
82 82
83 bool FakeAudioReceiveStream::DeliverRtcp(const uint8_t* packet, size_t length) {
84 return true;
85 }
86
87 webrtc::AudioReceiveStream::Stats FakeAudioReceiveStream::GetStats() const { 83 webrtc::AudioReceiveStream::Stats FakeAudioReceiveStream::GetStats() const {
88 return stats_; 84 return stats_;
89 } 85 }
90 86
91 void FakeAudioReceiveStream::SetSink( 87 void FakeAudioReceiveStream::SetSink(
92 std::unique_ptr<webrtc::AudioSinkInterface> sink) { 88 std::unique_ptr<webrtc::AudioSinkInterface> sink) {
93 sink_ = std::move(sink); 89 sink_ = std::move(sink);
94 } 90 }
95 91
96 FakeVideoSendStream::FakeVideoSendStream( 92 FakeVideoSendStream::FakeVideoSendStream(
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 case webrtc::MediaType::ANY: 460 case webrtc::MediaType::ANY:
465 ADD_FAILURE() 461 ADD_FAILURE()
466 << "SignalChannelNetworkState called with unknown parameter."; 462 << "SignalChannelNetworkState called with unknown parameter.";
467 } 463 }
468 } 464 }
469 465
470 void FakeCall::OnSentPacket(const rtc::SentPacket& sent_packet) { 466 void FakeCall::OnSentPacket(const rtc::SentPacket& sent_packet) {
471 last_sent_packet_ = sent_packet; 467 last_sent_packet_ = sent_packet;
472 } 468 }
473 } // namespace cricket 469 } // namespace cricket
OLDNEW
« no previous file with comments | « webrtc/media/engine/fakewebrtccall.h ('k') | webrtc/modules/congestion_controller/include/congestion_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698