OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 return true; | 54 return true; |
55 } | 55 } |
56 private: | 56 private: |
57 RTCPReceiver* rtcp_receiver_; | 57 RTCPReceiver* rtcp_receiver_; |
58 }; | 58 }; |
59 | 59 |
60 | 60 |
61 class RtcpFormatRembTest : public ::testing::Test { | 61 class RtcpFormatRembTest : public ::testing::Test { |
62 protected: | 62 protected: |
63 RtcpFormatRembTest() | 63 RtcpFormatRembTest() |
64 : system_clock_(Clock::GetRealTimeClock()), | 64 : over_use_detector_options_(), |
| 65 system_clock_(Clock::GetRealTimeClock()), |
65 dummy_rtp_rtcp_impl_(nullptr), | 66 dummy_rtp_rtcp_impl_(nullptr), |
66 receive_statistics_(ReceiveStatistics::Create(system_clock_)), | 67 receive_statistics_(ReceiveStatistics::Create(system_clock_)), |
67 rtcp_sender_(nullptr), | 68 rtcp_sender_(nullptr), |
68 rtcp_receiver_(nullptr), | 69 rtcp_receiver_(nullptr), |
69 test_transport_(nullptr), | 70 test_transport_(nullptr), |
70 remote_bitrate_observer_(), | 71 remote_bitrate_observer_(), |
71 remote_bitrate_estimator_( | 72 remote_bitrate_estimator_( |
72 new RemoteBitrateEstimatorSingleStream(&remote_bitrate_observer_, | 73 new RemoteBitrateEstimatorSingleStream(&remote_bitrate_observer_, |
73 system_clock_)) {} | 74 system_clock_)) {} |
74 void SetUp() override; | 75 void SetUp() override; |
75 void TearDown() override; | 76 void TearDown() override; |
76 | 77 |
| 78 OverUseDetectorOptions over_use_detector_options_; |
77 Clock* system_clock_; | 79 Clock* system_clock_; |
78 ModuleRtpRtcpImpl* dummy_rtp_rtcp_impl_; | 80 ModuleRtpRtcpImpl* dummy_rtp_rtcp_impl_; |
79 rtc::scoped_ptr<ReceiveStatistics> receive_statistics_; | 81 rtc::scoped_ptr<ReceiveStatistics> receive_statistics_; |
80 RTCPSender* rtcp_sender_; | 82 RTCPSender* rtcp_sender_; |
81 RTCPReceiver* rtcp_receiver_; | 83 RTCPReceiver* rtcp_receiver_; |
82 TestTransport* test_transport_; | 84 TestTransport* test_transport_; |
83 test::NullTransport null_transport_; | 85 test::NullTransport null_transport_; |
84 MockRemoteBitrateObserver remote_bitrate_observer_; | 86 MockRemoteBitrateObserver remote_bitrate_observer_; |
85 rtc::scoped_ptr<RemoteBitrateEstimator> remote_bitrate_estimator_; | 87 rtc::scoped_ptr<RemoteBitrateEstimator> remote_bitrate_estimator_; |
86 }; | 88 }; |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 | 127 |
126 TEST_F(RtcpFormatRembTest, TestCompund) { | 128 TEST_F(RtcpFormatRembTest, TestCompund) { |
127 uint32_t SSRCs[2] = {456789, 98765}; | 129 uint32_t SSRCs[2] = {456789, 98765}; |
128 rtcp_sender_->SetRTCPStatus(RtcpMode::kCompound); | 130 rtcp_sender_->SetRTCPStatus(RtcpMode::kCompound); |
129 rtcp_sender_->SetREMBData(1234, std::vector<uint32_t>(SSRCs, SSRCs + 2)); | 131 rtcp_sender_->SetREMBData(1234, std::vector<uint32_t>(SSRCs, SSRCs + 2)); |
130 RTCPSender::FeedbackState feedback_state = | 132 RTCPSender::FeedbackState feedback_state = |
131 dummy_rtp_rtcp_impl_->GetFeedbackState(); | 133 dummy_rtp_rtcp_impl_->GetFeedbackState(); |
132 EXPECT_EQ(0, rtcp_sender_->SendRTCP(feedback_state, kRtcpRemb)); | 134 EXPECT_EQ(0, rtcp_sender_->SendRTCP(feedback_state, kRtcpRemb)); |
133 } | 135 } |
134 } // namespace | 136 } // namespace |
OLD | NEW |