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 /* | 11 /* |
12 * Test application for core FEC algorithm. Calls encoding and decoding | 12 * Test application for core FEC algorithm. Calls encoding and decoding |
13 * functions in ForwardErrorCorrection directly. | 13 * functions in ForwardErrorCorrection directly. |
14 */ | 14 */ |
15 | 15 |
16 #include <string.h> | 16 #include <string.h> |
17 #include <time.h> | 17 #include <time.h> |
18 | 18 |
19 #include <list> | 19 #include <list> |
20 | 20 |
21 #include "webrtc/base/random.h" | |
22 #include "webrtc/modules/rtp_rtcp/source/byte_io.h" | 21 #include "webrtc/modules/rtp_rtcp/source/byte_io.h" |
23 #include "webrtc/modules/rtp_rtcp/source/forward_error_correction.h" | 22 #include "webrtc/modules/rtp_rtcp/source/forward_error_correction.h" |
24 #include "webrtc/modules/rtp_rtcp/source/forward_error_correction_internal.h" | 23 #include "webrtc/modules/rtp_rtcp/source/forward_error_correction_internal.h" |
| 24 #include "webrtc/rtc_base/random.h" |
25 #include "webrtc/test/gtest.h" | 25 #include "webrtc/test/gtest.h" |
26 #include "webrtc/test/testsupport/fileutils.h" | 26 #include "webrtc/test/testsupport/fileutils.h" |
27 | 27 |
28 // #define VERBOSE_OUTPUT | 28 // #define VERBOSE_OUTPUT |
29 | 29 |
30 namespace webrtc { | 30 namespace webrtc { |
31 namespace fec_private_tables { | 31 namespace fec_private_tables { |
32 extern const uint8_t** kPacketMaskBurstyTbl[12]; | 32 extern const uint8_t** kPacketMaskBurstyTbl[12]; |
33 } | 33 } |
34 namespace test { | 34 namespace test { |
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
474 TEST(FecTest, MAYBE_UlpfecTest) { | 474 TEST(FecTest, MAYBE_UlpfecTest) { |
475 RunTest(false); | 475 RunTest(false); |
476 } | 476 } |
477 | 477 |
478 TEST(FecTest, MAYBE_FlexfecTest) { | 478 TEST(FecTest, MAYBE_FlexfecTest) { |
479 RunTest(true); | 479 RunTest(true); |
480 } | 480 } |
481 | 481 |
482 } // namespace test | 482 } // namespace test |
483 } // namespace webrtc | 483 } // namespace webrtc |
OLD | NEW |