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

Side by Side Diff: modules/audio_coding/acm2/audio_coding_module_unittest.cc

Issue 3019543002: Remove various IDs (Closed)
Patch Set: compatibility version of UpdateFrame Created 3 years, 3 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 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 EXPECT_EQ(0, stats.decoded_muted_output); 307 EXPECT_EQ(0, stats.decoded_muted_output);
308 // TODO(henrik.lundin) Add a test with muted state enabled. 308 // TODO(henrik.lundin) Add a test with muted state enabled.
309 } 309 }
310 310
311 TEST_F(AudioCodingModuleTestOldApi, VerifyOutputFrame) { 311 TEST_F(AudioCodingModuleTestOldApi, VerifyOutputFrame) {
312 AudioFrame audio_frame; 312 AudioFrame audio_frame;
313 const int kSampleRateHz = 32000; 313 const int kSampleRateHz = 32000;
314 bool muted; 314 bool muted;
315 EXPECT_EQ(0, acm_->PlayoutData10Ms(kSampleRateHz, &audio_frame, &muted)); 315 EXPECT_EQ(0, acm_->PlayoutData10Ms(kSampleRateHz, &audio_frame, &muted));
316 ASSERT_FALSE(muted); 316 ASSERT_FALSE(muted);
317 EXPECT_EQ(id_, audio_frame.id_);
318 EXPECT_EQ(0u, audio_frame.timestamp_); 317 EXPECT_EQ(0u, audio_frame.timestamp_);
319 EXPECT_GT(audio_frame.num_channels_, 0u); 318 EXPECT_GT(audio_frame.num_channels_, 0u);
320 EXPECT_EQ(static_cast<size_t>(kSampleRateHz / 100), 319 EXPECT_EQ(static_cast<size_t>(kSampleRateHz / 100),
321 audio_frame.samples_per_channel_); 320 audio_frame.samples_per_channel_);
322 EXPECT_EQ(kSampleRateHz, audio_frame.sample_rate_hz_); 321 EXPECT_EQ(kSampleRateHz, audio_frame.sample_rate_hz_);
323 } 322 }
324 323
325 // The below test is temporarily disabled on Windows due to problems 324 // The below test is temporarily disabled on Windows due to problems
326 // with clang debug builds. 325 // with clang debug builds.
327 // TODO(tommi): Re-enable when we've figured out what the problem is. 326 // TODO(tommi): Re-enable when we've figured out what the problem is.
(...skipping 1628 matching lines...) Expand 10 before | Expand all | Expand 10 after
1956 Run(16000, 8000, 1000); 1955 Run(16000, 8000, 1000);
1957 } 1956 }
1958 1957
1959 TEST_F(AcmSwitchingOutputFrequencyOldApi, Toggle8KhzTo16Khz) { 1958 TEST_F(AcmSwitchingOutputFrequencyOldApi, Toggle8KhzTo16Khz) {
1960 Run(8000, 16000, 1000); 1959 Run(8000, 16000, 1000);
1961 } 1960 }
1962 1961
1963 #endif 1962 #endif
1964 1963
1965 } // namespace webrtc 1964 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698