| 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 |
| 11 #include <string> |
| 12 #include <vector> |
| 13 |
| 11 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
| 12 | 15 |
| 13 #include "webrtc/audio/audio_send_stream.h" | 16 #include "webrtc/audio/audio_send_stream.h" |
| 14 #include "webrtc/audio/audio_state.h" | 17 #include "webrtc/audio/audio_state.h" |
| 15 #include "webrtc/audio/conversion.h" | 18 #include "webrtc/audio/conversion.h" |
| 16 #include "webrtc/test/mock_voe_channel_proxy.h" | 19 #include "webrtc/test/mock_voe_channel_proxy.h" |
| 17 #include "webrtc/test/mock_voice_engine.h" | 20 #include "webrtc/test/mock_voice_engine.h" |
| 18 | 21 |
| 19 namespace webrtc { | 22 namespace webrtc { |
| 20 namespace test { | 23 namespace test { |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 static_cast<internal::AudioState*>(helper.audio_state().get()); | 179 static_cast<internal::AudioState*>(helper.audio_state().get()); |
| 177 VoiceEngineObserver* voe_observer = | 180 VoiceEngineObserver* voe_observer = |
| 178 static_cast<VoiceEngineObserver*>(internal_audio_state); | 181 static_cast<VoiceEngineObserver*>(internal_audio_state); |
| 179 voe_observer->CallbackOnError(-1, VE_TYPING_NOISE_WARNING); | 182 voe_observer->CallbackOnError(-1, VE_TYPING_NOISE_WARNING); |
| 180 EXPECT_TRUE(send_stream.GetStats().typing_noise_detected); | 183 EXPECT_TRUE(send_stream.GetStats().typing_noise_detected); |
| 181 voe_observer->CallbackOnError(-1, VE_TYPING_NOISE_OFF_WARNING); | 184 voe_observer->CallbackOnError(-1, VE_TYPING_NOISE_OFF_WARNING); |
| 182 EXPECT_FALSE(send_stream.GetStats().typing_noise_detected); | 185 EXPECT_FALSE(send_stream.GetStats().typing_noise_detected); |
| 183 } | 186 } |
| 184 } // namespace test | 187 } // namespace test |
| 185 } // namespace webrtc | 188 } // namespace webrtc |
| OLD | NEW |