| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2011 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 "webrtc/modules/audio_coding/neteq/include/neteq.h" | 11 #include "webrtc/modules/audio_coding/neteq/include/neteq.h" |
| 12 | 12 |
| 13 #include <math.h> | 13 #include <math.h> |
| 14 #include <stdlib.h> | 14 #include <stdlib.h> |
| 15 #include <string.h> // memset | 15 #include <string.h> // memset |
| 16 | 16 |
| 17 #include <algorithm> | 17 #include <algorithm> |
| 18 #include <memory> | 18 #include <memory> |
| 19 #include <set> | 19 #include <set> |
| 20 #include <string> | 20 #include <string> |
| 21 #include <vector> | 21 #include <vector> |
| 22 | 22 |
| 23 #include "gflags/gflags.h" | 23 #include "gflags/gflags.h" |
| 24 #include "webrtc/test/gtest.h" | |
| 25 #include "webrtc/base/ignore_wundef.h" | 24 #include "webrtc/base/ignore_wundef.h" |
| 26 #include "webrtc/base/sha1digest.h" | 25 #include "webrtc/base/sha1digest.h" |
| 27 #include "webrtc/base/stringencode.h" | 26 #include "webrtc/base/stringencode.h" |
| 28 #include "webrtc/modules/audio_coding/codecs/builtin_audio_decoder_factory.h" | 27 #include "webrtc/modules/audio_coding/codecs/builtin_audio_decoder_factory.h" |
| 28 #include "webrtc/modules/audio_coding/codecs/pcm16b/pcm16b.h" |
| 29 #include "webrtc/modules/audio_coding/neteq/tools/audio_loop.h" | 29 #include "webrtc/modules/audio_coding/neteq/tools/audio_loop.h" |
| 30 #include "webrtc/modules/audio_coding/neteq/tools/rtp_file_source.h" | 30 #include "webrtc/modules/audio_coding/neteq/tools/rtp_file_source.h" |
| 31 #include "webrtc/modules/audio_coding/codecs/pcm16b/pcm16b.h" | |
| 32 #include "webrtc/modules/include/module_common_types.h" | 31 #include "webrtc/modules/include/module_common_types.h" |
| 32 #include "webrtc/test/gtest.h" |
| 33 #include "webrtc/test/testsupport/fileutils.h" | 33 #include "webrtc/test/testsupport/fileutils.h" |
| 34 #include "webrtc/typedefs.h" | 34 #include "webrtc/typedefs.h" |
| 35 | 35 |
| 36 #ifdef WEBRTC_NETEQ_UNITTEST_BITEXACT | 36 #ifdef WEBRTC_NETEQ_UNITTEST_BITEXACT |
| 37 RTC_PUSH_IGNORING_WUNDEF() | 37 RTC_PUSH_IGNORING_WUNDEF() |
| 38 #ifdef WEBRTC_ANDROID_PLATFORM_BUILD | 38 #ifdef WEBRTC_ANDROID_PLATFORM_BUILD |
| 39 #include "external/webrtc/webrtc/modules/audio_coding/neteq/neteq_unittest.pb.h" | 39 #include "external/webrtc/webrtc/modules/audio_coding/neteq/neteq_unittest.pb.h" |
| 40 #else | 40 #else |
| 41 #include "webrtc/audio_coding/neteq/neteq_unittest.pb.h" | 41 #include "webrtc/audio_coding/neteq/neteq_unittest.pb.h" |
| 42 #endif | 42 #endif |
| (...skipping 1546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1589 if (muted) { | 1589 if (muted) { |
| 1590 EXPECT_TRUE(AudioFramesEqualExceptData(out_frame1, out_frame2)); | 1590 EXPECT_TRUE(AudioFramesEqualExceptData(out_frame1, out_frame2)); |
| 1591 } else { | 1591 } else { |
| 1592 EXPECT_TRUE(AudioFramesEqual(out_frame1, out_frame2)); | 1592 EXPECT_TRUE(AudioFramesEqual(out_frame1, out_frame2)); |
| 1593 } | 1593 } |
| 1594 } | 1594 } |
| 1595 EXPECT_FALSE(muted); | 1595 EXPECT_FALSE(muted); |
| 1596 } | 1596 } |
| 1597 | 1597 |
| 1598 } // namespace webrtc | 1598 } // namespace webrtc |
| OLD | NEW |