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 <algorithm> | 11 #include <algorithm> |
12 #include <memory> | 12 #include <memory> |
13 | 13 |
14 #include "webrtc/base/basictypes.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/mocks/mock_recovered_packet_receiver.h" | 15 #include "webrtc/modules/rtp_rtcp/mocks/mock_recovered_packet_receiver.h" |
17 #include "webrtc/modules/rtp_rtcp/source/fec_test_helper.h" | 16 #include "webrtc/modules/rtp_rtcp/source/fec_test_helper.h" |
18 #include "webrtc/modules/rtp_rtcp/source/forward_error_correction.h" | 17 #include "webrtc/modules/rtp_rtcp/source/forward_error_correction.h" |
19 #include "webrtc/modules/rtp_rtcp/source/rtp_packet_received.h" | 18 #include "webrtc/modules/rtp_rtcp/source/rtp_packet_received.h" |
| 19 #include "webrtc/rtc_base/basictypes.h" |
20 #include "webrtc/test/gmock.h" | 20 #include "webrtc/test/gmock.h" |
21 #include "webrtc/test/gtest.h" | 21 #include "webrtc/test/gtest.h" |
22 | 22 |
23 namespace webrtc { | 23 namespace webrtc { |
24 | 24 |
25 namespace { | 25 namespace { |
26 | 26 |
27 using ::testing::_; | 27 using ::testing::_; |
28 using ::testing::Args; | 28 using ::testing::Args; |
29 using ::testing::ElementsAreArray; | 29 using ::testing::ElementsAreArray; |
(...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
562 receiver_.OnRtpPacket(ParsePacket(*packet_with_rtp_header)); | 562 receiver_.OnRtpPacket(ParsePacket(*packet_with_rtp_header)); |
563 | 563 |
564 // Check stats calculations. | 564 // Check stats calculations. |
565 FecPacketCounter packet_counter = receiver_.GetPacketCounter(); | 565 FecPacketCounter packet_counter = receiver_.GetPacketCounter(); |
566 EXPECT_EQ(2U, packet_counter.num_packets); | 566 EXPECT_EQ(2U, packet_counter.num_packets); |
567 EXPECT_EQ(1U, packet_counter.num_fec_packets); | 567 EXPECT_EQ(1U, packet_counter.num_fec_packets); |
568 EXPECT_EQ(1U, packet_counter.num_recovered_packets); | 568 EXPECT_EQ(1U, packet_counter.num_recovered_packets); |
569 } | 569 } |
570 | 570 |
571 } // namespace webrtc | 571 } // namespace webrtc |
OLD | NEW |