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 <stdint.h> |
| 12 |
11 #include "webrtc/base/array_view.h" | 13 #include "webrtc/base/array_view.h" |
12 #include "webrtc/base/basictypes.h" | |
13 #include "webrtc/call/flexfec_receive_stream_impl.h" | 14 #include "webrtc/call/flexfec_receive_stream_impl.h" |
14 #include "webrtc/modules/rtp_rtcp/include/flexfec_receiver.h" | 15 #include "webrtc/modules/rtp_rtcp/include/flexfec_receiver.h" |
15 #include "webrtc/modules/rtp_rtcp/source/byte_io.h" | 16 #include "webrtc/modules/rtp_rtcp/source/byte_io.h" |
16 #include "webrtc/modules/rtp_rtcp/source/rtp_packet_received.h" | 17 #include "webrtc/modules/rtp_rtcp/source/rtp_packet_received.h" |
17 #include "webrtc/modules/rtp_rtcp/mocks/mock_recovered_packet_receiver.h" | 18 #include "webrtc/modules/rtp_rtcp/mocks/mock_recovered_packet_receiver.h" |
18 #include "webrtc/test/gmock.h" | 19 #include "webrtc/test/gmock.h" |
19 #include "webrtc/test/gtest.h" | 20 #include "webrtc/test/gtest.h" |
20 | 21 |
21 namespace webrtc { | 22 namespace webrtc { |
22 | 23 |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 | 104 |
104 // Call back after being started. | 105 // Call back after being started. |
105 receive_stream.Start(); | 106 receive_stream.Start(); |
106 EXPECT_CALL( | 107 EXPECT_CALL( |
107 recovered_packet_receiver, | 108 recovered_packet_receiver, |
108 OnRecoveredPacket(::testing::_, kRtpHeaderSize + kPayloadLength[1])); | 109 OnRecoveredPacket(::testing::_, kRtpHeaderSize + kPayloadLength[1])); |
109 receive_stream.AddAndProcessReceivedPacket(ParsePacket(kFlexfecPacket)); | 110 receive_stream.AddAndProcessReceivedPacket(ParsePacket(kFlexfecPacket)); |
110 } | 111 } |
111 | 112 |
112 } // namespace webrtc | 113 } // namespace webrtc |
OLD | NEW |