OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2004 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2004 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 586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
597 sinks_[sp.first_ssrc()] = NULL; | 597 sinks_[sp.first_ssrc()] = NULL; |
598 return true; | 598 return true; |
599 } | 599 } |
600 bool RemoveRecvStream(uint32_t ssrc) override { | 600 bool RemoveRecvStream(uint32_t ssrc) override { |
601 if (!RtpHelper<VideoMediaChannel>::RemoveRecvStream(ssrc)) | 601 if (!RtpHelper<VideoMediaChannel>::RemoveRecvStream(ssrc)) |
602 return false; | 602 return false; |
603 sinks_.erase(ssrc); | 603 sinks_.erase(ssrc); |
604 return true; | 604 return true; |
605 } | 605 } |
606 | 606 |
607 void FillBitrateInfo(BandwidthEstimationInfo* bwe_info) override {} | |
608 bool GetStats(VideoMediaInfo* info) override { return false; } | 607 bool GetStats(VideoMediaInfo* info) override { return false; } |
609 | 608 |
610 private: | 609 private: |
611 bool SetRecvCodecs(const std::vector<VideoCodec>& codecs) { | 610 bool SetRecvCodecs(const std::vector<VideoCodec>& codecs) { |
612 if (fail_set_recv_codecs()) { | 611 if (fail_set_recv_codecs()) { |
613 // Fake the failure in SetRecvCodecs. | 612 // Fake the failure in SetRecvCodecs. |
614 return false; | 613 return false; |
615 } | 614 } |
616 recv_codecs_ = codecs; | 615 recv_codecs_ = codecs; |
617 return true; | 616 return true; |
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
966 virtual const std::vector<DataCodec>& data_codecs() { return data_codecs_; } | 965 virtual const std::vector<DataCodec>& data_codecs() { return data_codecs_; } |
967 | 966 |
968 private: | 967 private: |
969 std::vector<FakeDataMediaChannel*> channels_; | 968 std::vector<FakeDataMediaChannel*> channels_; |
970 std::vector<DataCodec> data_codecs_; | 969 std::vector<DataCodec> data_codecs_; |
971 }; | 970 }; |
972 | 971 |
973 } // namespace cricket | 972 } // namespace cricket |
974 | 973 |
975 #endif // WEBRTC_MEDIA_BASE_FAKEMEDIAENGINE_H_ | 974 #endif // WEBRTC_MEDIA_BASE_FAKEMEDIAENGINE_H_ |
OLD | NEW |