OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2016 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 "webrtc/call/flexfec_receive_stream_impl.h" | 11 #include "webrtc/call/flexfec_receive_stream_impl.h" |
12 | 12 |
13 #include <stdint.h> | 13 #include <stdint.h> |
14 #include <memory> | 14 #include <memory> |
15 | 15 |
| 16 #include "webrtc/api/array_view.h" |
16 #include "webrtc/call/rtp_stream_receiver_controller.h" | 17 #include "webrtc/call/rtp_stream_receiver_controller.h" |
17 #include "webrtc/modules/pacing/packet_router.h" | 18 #include "webrtc/modules/pacing/packet_router.h" |
18 #include "webrtc/modules/rtp_rtcp/include/flexfec_receiver.h" | 19 #include "webrtc/modules/rtp_rtcp/include/flexfec_receiver.h" |
19 #include "webrtc/modules/rtp_rtcp/mocks/mock_recovered_packet_receiver.h" | 20 #include "webrtc/modules/rtp_rtcp/mocks/mock_recovered_packet_receiver.h" |
20 #include "webrtc/modules/rtp_rtcp/mocks/mock_rtcp_rtt_stats.h" | 21 #include "webrtc/modules/rtp_rtcp/mocks/mock_rtcp_rtt_stats.h" |
21 #include "webrtc/modules/rtp_rtcp/source/byte_io.h" | 22 #include "webrtc/modules/rtp_rtcp/source/byte_io.h" |
22 #include "webrtc/modules/rtp_rtcp/source/rtp_header_extensions.h" | 23 #include "webrtc/modules/rtp_rtcp/source/rtp_header_extensions.h" |
23 #include "webrtc/modules/utility/include/mock/mock_process_thread.h" | 24 #include "webrtc/modules/utility/include/mock/mock_process_thread.h" |
24 #include "webrtc/rtc_base/array_view.h" | |
25 #include "webrtc/rtc_base/ptr_util.h" | 25 #include "webrtc/rtc_base/ptr_util.h" |
26 #include "webrtc/test/gmock.h" | 26 #include "webrtc/test/gmock.h" |
27 #include "webrtc/test/gtest.h" | 27 #include "webrtc/test/gtest.h" |
28 #include "webrtc/test/mock_transport.h" | 28 #include "webrtc/test/mock_transport.h" |
29 | 29 |
30 namespace webrtc { | 30 namespace webrtc { |
31 | 31 |
32 namespace { | 32 namespace { |
33 | 33 |
34 using ::testing::_; | 34 using ::testing::_; |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 EXPECT_CALL(recovered_packet_receiver, | 148 EXPECT_CALL(recovered_packet_receiver, |
149 OnRecoveredPacket(_, kRtpHeaderSize + kPayloadLength[1])); | 149 OnRecoveredPacket(_, kRtpHeaderSize + kPayloadLength[1])); |
150 | 150 |
151 receive_stream.OnRtpPacket(ParsePacket(kFlexfecPacket)); | 151 receive_stream.OnRtpPacket(ParsePacket(kFlexfecPacket)); |
152 | 152 |
153 // Tear-down | 153 // Tear-down |
154 EXPECT_CALL(process_thread_, DeRegisterModule(_)).Times(1); | 154 EXPECT_CALL(process_thread_, DeRegisterModule(_)).Times(1); |
155 } | 155 } |
156 | 156 |
157 } // namespace webrtc | 157 } // namespace webrtc |
OLD | NEW |