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

Side by Side Diff: webrtc/modules/audio_device/android/audio_manager_unittest.cc

Issue 2402883003: Removes usage of hardware AGC and any related APIs on Android (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | webrtc/modules/audio_device/android/audio_record_jni.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2015 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 EXPECT_TRUE(audio_manager()->Init()); 106 EXPECT_TRUE(audio_manager()->Init());
107 EXPECT_TRUE(audio_manager()->Close()); 107 EXPECT_TRUE(audio_manager()->Close());
108 } 108 }
109 109
110 TEST_F(AudioManagerTest, IsAcousticEchoCancelerSupported) { 110 TEST_F(AudioManagerTest, IsAcousticEchoCancelerSupported) {
111 PRINT("%sAcoustic Echo Canceler support: %s\n", kTag, 111 PRINT("%sAcoustic Echo Canceler support: %s\n", kTag,
112 audio_manager()->IsAcousticEchoCancelerSupported() ? "Yes" : "No"); 112 audio_manager()->IsAcousticEchoCancelerSupported() ? "Yes" : "No");
113 } 113 }
114 114
115 TEST_F(AudioManagerTest, IsAutomaticGainControlSupported) { 115 TEST_F(AudioManagerTest, IsAutomaticGainControlSupported) {
116 PRINT("%sAutomatic Gain Control support: %s\n", kTag, 116 EXPECT_FALSE(audio_manager()->IsAutomaticGainControlSupported());
117 audio_manager()->IsAutomaticGainControlSupported() ? "Yes" : "No");
118 } 117 }
119 118
120 TEST_F(AudioManagerTest, IsNoiseSuppressorSupported) { 119 TEST_F(AudioManagerTest, IsNoiseSuppressorSupported) {
121 PRINT("%sNoise Suppressor support: %s\n", kTag, 120 PRINT("%sNoise Suppressor support: %s\n", kTag,
122 audio_manager()->IsNoiseSuppressorSupported() ? "Yes" : "No"); 121 audio_manager()->IsNoiseSuppressorSupported() ? "Yes" : "No");
123 } 122 }
124 123
125 TEST_F(AudioManagerTest, IsLowLatencyPlayoutSupported) { 124 TEST_F(AudioManagerTest, IsLowLatencyPlayoutSupported) {
126 PRINT("%sLow latency output support: %s\n", kTag, 125 PRINT("%sLow latency output support: %s\n", kTag,
127 audio_manager()->IsLowLatencyPlayoutSupported() ? "Yes" : "No"); 126 audio_manager()->IsLowLatencyPlayoutSupported() ? "Yes" : "No");
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 params.frames_per_10ms_buffer()); 222 params.frames_per_10ms_buffer());
224 EXPECT_EQ(kBytesPerFrame, params.GetBytesPerFrame()); 223 EXPECT_EQ(kBytesPerFrame, params.GetBytesPerFrame());
225 EXPECT_EQ(kBytesPerFrame * kFramesPerBuffer, params.GetBytesPerBuffer()); 224 EXPECT_EQ(kBytesPerFrame * kFramesPerBuffer, params.GetBytesPerBuffer());
226 EXPECT_EQ(kBytesPerFrame * kFramesPer10msBuffer, 225 EXPECT_EQ(kBytesPerFrame * kFramesPer10msBuffer,
227 params.GetBytesPer10msBuffer()); 226 params.GetBytesPer10msBuffer());
228 EXPECT_EQ(kBufferSizeInMs, params.GetBufferSizeInMilliseconds()); 227 EXPECT_EQ(kBufferSizeInMs, params.GetBufferSizeInMilliseconds());
229 } 228 }
230 229
231 } // namespace webrtc 230 } // namespace webrtc
232 231
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/audio_device/android/audio_record_jni.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698