Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(578)

Side by Side Diff: webrtc/modules/audio_coding/neteq/audio_decoder_unittest.cc

Issue 2381013002: Sort #includes that got unsorted when gmock.h and gtest.h moved to webrtc/test/ (Closed)
Patch Set: rebase Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "webrtc/modules/audio_coding/neteq/audio_decoder_impl.h" 11 #include "webrtc/modules/audio_coding/neteq/audio_decoder_impl.h"
12 12
13 #include <assert.h> 13 #include <assert.h>
14 #include <stdlib.h> 14 #include <stdlib.h>
15 15
16 #include <memory> 16 #include <memory>
17 #include <string> 17 #include <string>
18 #include <vector> 18 #include <vector>
19 19
20 #include "webrtc/test/gtest.h"
21 #include "webrtc/modules/audio_coding/codecs/g711/audio_decoder_pcm.h" 20 #include "webrtc/modules/audio_coding/codecs/g711/audio_decoder_pcm.h"
22 #include "webrtc/modules/audio_coding/codecs/g711/audio_encoder_pcm.h" 21 #include "webrtc/modules/audio_coding/codecs/g711/audio_encoder_pcm.h"
23 #include "webrtc/modules/audio_coding/codecs/g722/audio_decoder_g722.h" 22 #include "webrtc/modules/audio_coding/codecs/g722/audio_decoder_g722.h"
24 #include "webrtc/modules/audio_coding/codecs/g722/audio_encoder_g722.h" 23 #include "webrtc/modules/audio_coding/codecs/g722/audio_encoder_g722.h"
25 #include "webrtc/modules/audio_coding/codecs/ilbc/audio_decoder_ilbc.h" 24 #include "webrtc/modules/audio_coding/codecs/ilbc/audio_decoder_ilbc.h"
26 #include "webrtc/modules/audio_coding/codecs/ilbc/audio_encoder_ilbc.h" 25 #include "webrtc/modules/audio_coding/codecs/ilbc/audio_encoder_ilbc.h"
27 #include "webrtc/modules/audio_coding/codecs/isac/fix/include/audio_decoder_isac fix.h" 26 #include "webrtc/modules/audio_coding/codecs/isac/fix/include/audio_decoder_isac fix.h"
28 #include "webrtc/modules/audio_coding/codecs/isac/fix/include/audio_encoder_isac fix.h" 27 #include "webrtc/modules/audio_coding/codecs/isac/fix/include/audio_encoder_isac fix.h"
29 #include "webrtc/modules/audio_coding/codecs/isac/main/include/audio_decoder_isa c.h" 28 #include "webrtc/modules/audio_coding/codecs/isac/main/include/audio_decoder_isa c.h"
30 #include "webrtc/modules/audio_coding/codecs/isac/main/include/audio_encoder_isa c.h" 29 #include "webrtc/modules/audio_coding/codecs/isac/main/include/audio_encoder_isa c.h"
31 #include "webrtc/modules/audio_coding/codecs/opus/audio_decoder_opus.h" 30 #include "webrtc/modules/audio_coding/codecs/opus/audio_decoder_opus.h"
32 #include "webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus.h" 31 #include "webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus.h"
33 #include "webrtc/modules/audio_coding/codecs/pcm16b/audio_decoder_pcm16b.h" 32 #include "webrtc/modules/audio_coding/codecs/pcm16b/audio_decoder_pcm16b.h"
34 #include "webrtc/modules/audio_coding/codecs/pcm16b/audio_encoder_pcm16b.h" 33 #include "webrtc/modules/audio_coding/codecs/pcm16b/audio_encoder_pcm16b.h"
35 #include "webrtc/modules/audio_coding/neteq/tools/resample_input_audio_file.h" 34 #include "webrtc/modules/audio_coding/neteq/tools/resample_input_audio_file.h"
36 #include "webrtc/system_wrappers/include/data_log.h" 35 #include "webrtc/system_wrappers/include/data_log.h"
36 #include "webrtc/test/gtest.h"
37 #include "webrtc/test/testsupport/fileutils.h" 37 #include "webrtc/test/testsupport/fileutils.h"
38 38
39 namespace webrtc { 39 namespace webrtc {
40 40
41 namespace { 41 namespace {
42 // The absolute difference between the input and output (the first channel) is 42 // The absolute difference between the input and output (the first channel) is
43 // compared vs |tolerance|. The parameter |delay| is used to correct for codec 43 // compared vs |tolerance|. The parameter |delay| is used to correct for codec
44 // delays. 44 // delays.
45 void CompareInputOutput(const std::vector<int16_t>& input, 45 void CompareInputOutput(const std::vector<int16_t>& input,
46 const std::vector<int16_t>& output, 46 const std::vector<int16_t>& output,
(...skipping 651 matching lines...) Expand 10 before | Expand all | Expand 10 after
698 EXPECT_TRUE(CodecSupported(NetEqDecoder::kDecoderCNGnb)); 698 EXPECT_TRUE(CodecSupported(NetEqDecoder::kDecoderCNGnb));
699 EXPECT_TRUE(CodecSupported(NetEqDecoder::kDecoderCNGwb)); 699 EXPECT_TRUE(CodecSupported(NetEqDecoder::kDecoderCNGwb));
700 EXPECT_TRUE(CodecSupported(NetEqDecoder::kDecoderCNGswb32kHz)); 700 EXPECT_TRUE(CodecSupported(NetEqDecoder::kDecoderCNGswb32kHz));
701 EXPECT_TRUE(CodecSupported(NetEqDecoder::kDecoderCNGswb48kHz)); 701 EXPECT_TRUE(CodecSupported(NetEqDecoder::kDecoderCNGswb48kHz));
702 EXPECT_TRUE(CodecSupported(NetEqDecoder::kDecoderArbitrary)); 702 EXPECT_TRUE(CodecSupported(NetEqDecoder::kDecoderArbitrary));
703 EXPECT_EQ(has_opus, CodecSupported(NetEqDecoder::kDecoderOpus)); 703 EXPECT_EQ(has_opus, CodecSupported(NetEqDecoder::kDecoderOpus));
704 EXPECT_EQ(has_opus, CodecSupported(NetEqDecoder::kDecoderOpus_2ch)); 704 EXPECT_EQ(has_opus, CodecSupported(NetEqDecoder::kDecoderOpus_2ch));
705 } 705 }
706 706
707 } // namespace webrtc 707 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698