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/api/audio_codecs/builtin_audio_decoder_factory.h" |
24 #include "webrtc/base/ignore_wundef.h" | 25 #include "webrtc/base/ignore_wundef.h" |
25 #include "webrtc/base/sha1digest.h" | 26 #include "webrtc/base/sha1digest.h" |
26 #include "webrtc/base/stringencode.h" | 27 #include "webrtc/base/stringencode.h" |
27 #include "webrtc/modules/audio_coding/codecs/builtin_audio_decoder_factory.h" | |
28 #include "webrtc/modules/audio_coding/codecs/pcm16b/pcm16b.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/include/module_common_types.h" | 31 #include "webrtc/modules/include/module_common_types.h" |
32 #include "webrtc/test/gtest.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() |
(...skipping 1543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1581 if (muted) { | 1581 if (muted) { |
1582 EXPECT_TRUE(AudioFramesEqualExceptData(out_frame1, out_frame2)); | 1582 EXPECT_TRUE(AudioFramesEqualExceptData(out_frame1, out_frame2)); |
1583 } else { | 1583 } else { |
1584 EXPECT_TRUE(AudioFramesEqual(out_frame1, out_frame2)); | 1584 EXPECT_TRUE(AudioFramesEqual(out_frame1, out_frame2)); |
1585 } | 1585 } |
1586 } | 1586 } |
1587 EXPECT_FALSE(muted); | 1587 EXPECT_FALSE(muted); |
1588 } | 1588 } |
1589 | 1589 |
1590 } // namespace webrtc | 1590 } // namespace webrtc |
OLD | NEW |