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

Side by Side Diff: webrtc/modules/audio_coding/codecs/isac/fix/test/isac_speed_test.cc

Issue 1921653002: Enable -Winconsistent-missing-override flag. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebase. Created 4 years, 7 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) 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2014 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/codecs/isac/fix/include/isacfix.h" 11 #include "webrtc/modules/audio_coding/codecs/isac/fix/include/isacfix.h"
12 #include "webrtc/modules/audio_coding/codecs/isac/fix/source/settings.h" 12 #include "webrtc/modules/audio_coding/codecs/isac/fix/source/settings.h"
13 #include "webrtc/modules/audio_coding/codecs/tools/audio_codec_speed_test.h" 13 #include "webrtc/modules/audio_coding/codecs/tools/audio_codec_speed_test.h"
14 14
15 using ::std::string; 15 using ::std::string;
16 16
17 namespace webrtc { 17 namespace webrtc {
18 18
19 static const int kIsacBlockDurationMs = 30; 19 static const int kIsacBlockDurationMs = 30;
20 static const int kIsacInputSamplingKhz = 16; 20 static const int kIsacInputSamplingKhz = 16;
21 static const int kIsacOutputSamplingKhz = 16; 21 static const int kIsacOutputSamplingKhz = 16;
22 22
23 class IsacSpeedTest : public AudioCodecSpeedTest { 23 class IsacSpeedTest : public AudioCodecSpeedTest {
24 protected: 24 protected:
25 IsacSpeedTest(); 25 IsacSpeedTest();
26 void SetUp() override; 26 void SetUp() override;
27 void TearDown() override; 27 void TearDown() override;
28 virtual float EncodeABlock(int16_t* in_data, uint8_t* bit_stream, 28 float EncodeABlock(int16_t* in_data, uint8_t* bit_stream,
29 size_t max_bytes, size_t* encoded_bytes); 29 size_t max_bytes, size_t* encoded_bytes) override;
30 virtual float DecodeABlock(const uint8_t* bit_stream, size_t encoded_bytes, 30 float DecodeABlock(const uint8_t* bit_stream, size_t encoded_bytes,
31 int16_t* out_data); 31 int16_t* out_data) override;
32 ISACFIX_MainStruct *ISACFIX_main_inst_; 32 ISACFIX_MainStruct *ISACFIX_main_inst_;
33 }; 33 };
34 34
35 IsacSpeedTest::IsacSpeedTest() 35 IsacSpeedTest::IsacSpeedTest()
36 : AudioCodecSpeedTest(kIsacBlockDurationMs, 36 : AudioCodecSpeedTest(kIsacBlockDurationMs,
37 kIsacInputSamplingKhz, 37 kIsacInputSamplingKhz,
38 kIsacOutputSamplingKhz), 38 kIsacOutputSamplingKhz),
39 ISACFIX_main_inst_(NULL) { 39 ISACFIX_main_inst_(NULL) {
40 } 40 }
41 41
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 } 102 }
103 103
104 const coding_param param_set[] = 104 const coding_param param_set[] =
105 {::std::tr1::make_tuple(1, 32000, string("audio_coding/speech_mono_16kHz"), 105 {::std::tr1::make_tuple(1, 32000, string("audio_coding/speech_mono_16kHz"),
106 string("pcm"), true)}; 106 string("pcm"), true)};
107 107
108 INSTANTIATE_TEST_CASE_P(AllTest, IsacSpeedTest, 108 INSTANTIATE_TEST_CASE_P(AllTest, IsacSpeedTest,
109 ::testing::ValuesIn(param_set)); 109 ::testing::ValuesIn(param_set));
110 110
111 } // namespace webrtc 111 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698