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