OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2017 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 <algorithm> | 11 #include <algorithm> |
12 #include <limits> | 12 #include <limits> |
13 #include <memory> | 13 #include <memory> |
14 #include <vector> | 14 #include <vector> |
15 | 15 |
16 #include "webrtc/base/array_view.h" | |
17 #include "webrtc/modules/include/module_common_types.h" | 16 #include "webrtc/modules/include/module_common_types.h" |
18 #include "webrtc/modules/rtp_rtcp/mocks/mock_rtp_rtcp.h" | 17 #include "webrtc/modules/rtp_rtcp/mocks/mock_rtp_rtcp.h" |
19 #include "webrtc/modules/rtp_rtcp/source/byte_io.h" | 18 #include "webrtc/modules/rtp_rtcp/source/byte_io.h" |
20 #include "webrtc/modules/rtp_rtcp/source/rtp_format_video_generic.h" | 19 #include "webrtc/modules/rtp_rtcp/source/rtp_format_video_generic.h" |
21 #include "webrtc/modules/rtp_rtcp/source/rtp_packet_to_send.h" | 20 #include "webrtc/modules/rtp_rtcp/source/rtp_packet_to_send.h" |
| 21 #include "webrtc/rtc_base/array_view.h" |
22 #include "webrtc/test/gmock.h" | 22 #include "webrtc/test/gmock.h" |
23 #include "webrtc/test/gtest.h" | 23 #include "webrtc/test/gtest.h" |
24 | 24 |
25 namespace webrtc { | 25 namespace webrtc { |
26 namespace { | 26 namespace { |
27 | 27 |
28 using ::testing::Each; | 28 using ::testing::Each; |
29 using ::testing::ElementsAreArray; | 29 using ::testing::ElementsAreArray; |
30 using ::testing::Le; | 30 using ::testing::Le; |
31 using ::testing::SizeIs; | 31 using ::testing::SizeIs; |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 kLastPacketReductionLen); | 183 kLastPacketReductionLen); |
184 size_t num_packets = | 184 size_t num_packets = |
185 packetizer.SetPayloadData(kTestPayload, kPayloadSize, nullptr); | 185 packetizer.SetPayloadData(kTestPayload, kPayloadSize, nullptr); |
186 std::vector<size_t> payload_sizes = NextPacketFillPayloadSizes(&packetizer); | 186 std::vector<size_t> payload_sizes = NextPacketFillPayloadSizes(&packetizer); |
187 EXPECT_THAT(payload_sizes, SizeIs(num_packets)); | 187 EXPECT_THAT(payload_sizes, SizeIs(num_packets)); |
188 | 188 |
189 EXPECT_EQ(num_packets, kMinNumPackets); | 189 EXPECT_EQ(num_packets, kMinNumPackets); |
190 } | 190 } |
191 | 191 |
192 } // namespace webrtc | 192 } // namespace webrtc |
OLD | NEW |