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

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

Issue 1344563002: Improving support for Android Audio Effects in WebRTC (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Improved comments Created 5 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) 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 TEST_F(AudioManagerTest, InitClose) { 54 TEST_F(AudioManagerTest, InitClose) {
55 EXPECT_TRUE(audio_manager()->Init()); 55 EXPECT_TRUE(audio_manager()->Init());
56 EXPECT_TRUE(audio_manager()->Close()); 56 EXPECT_TRUE(audio_manager()->Close());
57 } 57 }
58 58
59 TEST_F(AudioManagerTest, IsAcousticEchoCancelerSupported) { 59 TEST_F(AudioManagerTest, IsAcousticEchoCancelerSupported) {
60 PRINT("%sAcoustic Echo Canceler support: %s\n", kTag, 60 PRINT("%sAcoustic Echo Canceler support: %s\n", kTag,
61 audio_manager()->IsAcousticEchoCancelerSupported() ? "Yes" : "No"); 61 audio_manager()->IsAcousticEchoCancelerSupported() ? "Yes" : "No");
62 } 62 }
63 63
64 TEST_F(AudioManagerTest, IsAutomaticGainControlSupported) {
65 PRINT("%sAutomatic Gain Control support: %s\n", kTag,
66 audio_manager()->IsAutomaticGainControlSupported() ? "Yes" : "No");
67 }
68
69 TEST_F(AudioManagerTest, IsNoiseSuppressorSupported) {
70 PRINT("%sNoise Suppressor support: %s\n", kTag,
71 audio_manager()->IsNoiseSuppressorSupported() ? "Yes" : "No");
72 }
73
64 TEST_F(AudioManagerTest, IsLowLatencyPlayoutSupported) { 74 TEST_F(AudioManagerTest, IsLowLatencyPlayoutSupported) {
65 PRINT("%sLow latency output support: %s\n", kTag, 75 PRINT("%sLow latency output support: %s\n", kTag,
66 audio_manager()->IsLowLatencyPlayoutSupported() ? "Yes" : "No"); 76 audio_manager()->IsLowLatencyPlayoutSupported() ? "Yes" : "No");
67 } 77 }
68 78
69 TEST_F(AudioManagerTest, ShowAudioParameterInfo) { 79 TEST_F(AudioManagerTest, ShowAudioParameterInfo) {
70 const bool low_latency_out = audio_manager()->IsLowLatencyPlayoutSupported(); 80 const bool low_latency_out = audio_manager()->IsLowLatencyPlayoutSupported();
71 PRINT("PLAYOUT:\n"); 81 PRINT("PLAYOUT:\n");
72 PRINT("%saudio layer: %s\n", kTag, 82 PRINT("%saudio layer: %s\n", kTag,
73 low_latency_out ? "Low latency OpenSL" : "Java/JNI based AudioTrack"); 83 low_latency_out ? "Low latency OpenSL" : "Java/JNI based AudioTrack");
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 params.frames_per_10ms_buffer()); 145 params.frames_per_10ms_buffer());
136 EXPECT_EQ(kBytesPerFrame, params.GetBytesPerFrame()); 146 EXPECT_EQ(kBytesPerFrame, params.GetBytesPerFrame());
137 EXPECT_EQ(kBytesPerFrame * kFramesPerBuffer, params.GetBytesPerBuffer()); 147 EXPECT_EQ(kBytesPerFrame * kFramesPerBuffer, params.GetBytesPerBuffer());
138 EXPECT_EQ(kBytesPerFrame * kFramesPer10msBuffer, 148 EXPECT_EQ(kBytesPerFrame * kFramesPer10msBuffer,
139 params.GetBytesPer10msBuffer()); 149 params.GetBytesPer10msBuffer());
140 EXPECT_EQ(kBufferSizeInMs, params.GetBufferSizeInMilliseconds()); 150 EXPECT_EQ(kBufferSizeInMs, params.GetBufferSizeInMilliseconds());
141 } 151 }
142 152
143 } // namespace webrtc 153 } // namespace webrtc
144 154
OLDNEW
« no previous file with comments | « webrtc/modules/audio_device/android/audio_manager.cc ('k') | webrtc/modules/audio_device/android/audio_record_jni.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698