OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 <string.h> | 11 #include <string.h> |
12 | 12 |
13 #include <list> | 13 #include <list> |
14 #include <memory> | 14 #include <memory> |
15 | 15 |
16 #include "webrtc/test/gmock.h" | |
17 #include "webrtc/test/gtest.h" | |
18 #include "webrtc/modules/rtp_rtcp/include/fec_receiver.h" | 16 #include "webrtc/modules/rtp_rtcp/include/fec_receiver.h" |
19 #include "webrtc/modules/rtp_rtcp/include/rtp_header_parser.h" | 17 #include "webrtc/modules/rtp_rtcp/include/rtp_header_parser.h" |
20 #include "webrtc/modules/rtp_rtcp/mocks/mock_rtp_rtcp.h" | 18 #include "webrtc/modules/rtp_rtcp/mocks/mock_rtp_rtcp.h" |
21 #include "webrtc/modules/rtp_rtcp/source/byte_io.h" | 19 #include "webrtc/modules/rtp_rtcp/source/byte_io.h" |
22 #include "webrtc/modules/rtp_rtcp/source/fec_test_helper.h" | 20 #include "webrtc/modules/rtp_rtcp/source/fec_test_helper.h" |
23 #include "webrtc/modules/rtp_rtcp/source/forward_error_correction.h" | 21 #include "webrtc/modules/rtp_rtcp/source/forward_error_correction.h" |
| 22 #include "webrtc/test/gmock.h" |
| 23 #include "webrtc/test/gtest.h" |
24 | 24 |
25 namespace webrtc { | 25 namespace webrtc { |
26 | 26 |
27 namespace { | 27 namespace { |
28 constexpr uint8_t kFecPayloadType = 96; | 28 constexpr uint8_t kFecPayloadType = 96; |
29 } // namespace | 29 } // namespace |
30 | 30 |
31 using ::testing::_; | 31 using ::testing::_; |
32 using ::testing::Args; | 32 using ::testing::Args; |
33 using ::testing::ElementsAreArray; | 33 using ::testing::ElementsAreArray; |
(...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
508 0x27, | 508 0x27, |
509 0xc4, | 509 0xc4, |
510 0x2a, | 510 0x2a, |
511 0x21, | 511 0x21, |
512 0x2a, | 512 0x2a, |
513 0x28}; | 513 0x28}; |
514 SurvivesMaliciousPacket(kPacket, sizeof(kPacket), 100); | 514 SurvivesMaliciousPacket(kPacket, sizeof(kPacket), 100); |
515 } | 515 } |
516 | 516 |
517 } // namespace webrtc | 517 } // namespace webrtc |
OLD | NEW |