| 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 "testing/gtest/include/gtest/gtest.h" | 21 #include "webrtc/test/gtest.h" |
| 22 #include "webrtc/base/random.h" | 22 #include "webrtc/base/random.h" |
| 23 #include "webrtc/modules/rtp_rtcp/source/byte_io.h" | 23 #include "webrtc/modules/rtp_rtcp/source/byte_io.h" |
| 24 #include "webrtc/modules/rtp_rtcp/source/forward_error_correction.h" | 24 #include "webrtc/modules/rtp_rtcp/source/forward_error_correction.h" |
| 25 #include "webrtc/modules/rtp_rtcp/source/forward_error_correction_internal.h" | 25 #include "webrtc/modules/rtp_rtcp/source/forward_error_correction_internal.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 { |
| (...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 448 } // loop over mask types | 448 } // loop over mask types |
| 449 | 449 |
| 450 // Have DecodeFec clear the recovered packet list. | 450 // Have DecodeFec clear the recovered packet list. |
| 451 fec->ResetState(&recovered_packet_list); | 451 fec->ResetState(&recovered_packet_list); |
| 452 ASSERT_TRUE(recovered_packet_list.empty()) | 452 ASSERT_TRUE(recovered_packet_list.empty()) |
| 453 << "Recovered packet list is not empty"; | 453 << "Recovered packet list is not empty"; |
| 454 } | 454 } |
| 455 | 455 |
| 456 } // namespace test | 456 } // namespace test |
| 457 } // namespace webrtc | 457 } // namespace webrtc |
| OLD | NEW |