OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |