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 |
11 #include <memory> | 11 #include <memory> |
12 | 12 |
| 13 #include "webrtc/base/rate_limiter.h" |
13 #include "webrtc/common_types.h" | 14 #include "webrtc/common_types.h" |
14 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/bye.h" | 15 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/bye.h" |
15 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/common_header.h" | 16 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/common_header.h" |
16 #include "webrtc/modules/rtp_rtcp/source/rtcp_sender.h" | 17 #include "webrtc/modules/rtp_rtcp/source/rtcp_sender.h" |
17 #include "webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.h" | 18 #include "webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.h" |
18 #include "webrtc/rtc_base/rate_limiter.h" | |
19 #include "webrtc/test/gmock.h" | 19 #include "webrtc/test/gmock.h" |
20 #include "webrtc/test/gtest.h" | 20 #include "webrtc/test/gtest.h" |
21 #include "webrtc/test/mock_transport.h" | 21 #include "webrtc/test/mock_transport.h" |
22 #include "webrtc/test/rtcp_packet_parser.h" | 22 #include "webrtc/test/rtcp_packet_parser.h" |
23 | 23 |
24 using ::testing::_; | 24 using ::testing::_; |
25 using ::testing::ElementsAre; | 25 using ::testing::ElementsAre; |
26 using ::testing::Invoke; | 26 using ::testing::Invoke; |
27 | 27 |
28 namespace webrtc { | 28 namespace webrtc { |
(...skipping 807 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
836 const rtcp::TargetBitrate::BitrateItem& item = bitrates[index]; | 836 const rtcp::TargetBitrate::BitrateItem& item = bitrates[index]; |
837 EXPECT_EQ(sl, item.spatial_layer); | 837 EXPECT_EQ(sl, item.spatial_layer); |
838 EXPECT_EQ(tl, item.temporal_layer); | 838 EXPECT_EQ(tl, item.temporal_layer); |
839 EXPECT_EQ(start_bitrate_bps + (tl * 20000), | 839 EXPECT_EQ(start_bitrate_bps + (tl * 20000), |
840 item.target_bitrate_kbps * 1000); | 840 item.target_bitrate_kbps * 1000); |
841 } | 841 } |
842 } | 842 } |
843 } | 843 } |
844 | 844 |
845 } // namespace webrtc | 845 } // namespace webrtc |
OLD | NEW |