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

Side by Side Diff: webrtc/modules/audio_coding/neteq/test/neteq_isac_quality_test.cc

Issue 1316523002: Convert channel counts to size_t. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Fix compile Created 4 years, 11 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
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 52
53 NetEqIsacQualityTest::NetEqIsacQualityTest() 53 NetEqIsacQualityTest::NetEqIsacQualityTest()
54 : NetEqQualityTest(kIsacBlockDurationMs, 54 : NetEqQualityTest(kIsacBlockDurationMs,
55 kIsacInputSamplingKhz, 55 kIsacInputSamplingKhz,
56 kIsacOutputSamplingKhz, 56 kIsacOutputSamplingKhz,
57 NetEqDecoder::kDecoderISAC), 57 NetEqDecoder::kDecoderISAC),
58 isac_encoder_(NULL), 58 isac_encoder_(NULL),
59 bit_rate_kbps_(FLAGS_bit_rate_kbps) {} 59 bit_rate_kbps_(FLAGS_bit_rate_kbps) {}
60 60
61 void NetEqIsacQualityTest::SetUp() { 61 void NetEqIsacQualityTest::SetUp() {
62 ASSERT_EQ(1, channels_) << "iSAC supports only mono audio."; 62 ASSERT_EQ(1u, channels_) << "iSAC supports only mono audio.";
63 // Create encoder memory. 63 // Create encoder memory.
64 WebRtcIsacfix_Create(&isac_encoder_); 64 WebRtcIsacfix_Create(&isac_encoder_);
65 ASSERT_TRUE(isac_encoder_ != NULL); 65 ASSERT_TRUE(isac_encoder_ != NULL);
66 EXPECT_EQ(0, WebRtcIsacfix_EncoderInit(isac_encoder_, 1)); 66 EXPECT_EQ(0, WebRtcIsacfix_EncoderInit(isac_encoder_, 1));
67 // Set bitrate and block length. 67 // Set bitrate and block length.
68 EXPECT_EQ(0, WebRtcIsacfix_Control(isac_encoder_, bit_rate_kbps_ * 1000, 68 EXPECT_EQ(0, WebRtcIsacfix_Control(isac_encoder_, bit_rate_kbps_ * 1000,
69 kIsacBlockDurationMs)); 69 kIsacBlockDurationMs));
70 NetEqQualityTest::SetUp(); 70 NetEqQualityTest::SetUp();
71 } 71 }
72 72
(...skipping 21 matching lines...) Expand all
94 EXPECT_GT(value, 0); 94 EXPECT_GT(value, 0);
95 return value; 95 return value;
96 } 96 }
97 97
98 TEST_F(NetEqIsacQualityTest, Test) { 98 TEST_F(NetEqIsacQualityTest, Test) {
99 Simulate(); 99 Simulate();
100 } 100 }
101 101
102 } // namespace test 102 } // namespace test
103 } // namespace webrtc 103 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698