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> | 11 #include <string> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
15 | 15 |
16 #include "webrtc/audio/audio_send_stream.h" | 16 #include "webrtc/audio/audio_send_stream.h" |
17 #include "webrtc/audio/audio_state.h" | 17 #include "webrtc/audio/audio_state.h" |
18 #include "webrtc/audio/conversion.h" | 18 #include "webrtc/audio/conversion.h" |
19 #include "webrtc/call/congestion_controller.h" | |
20 #include "webrtc/modules/bitrate_controller/include/mock/mock_bitrate_controller
.h" | 19 #include "webrtc/modules/bitrate_controller/include/mock/mock_bitrate_controller
.h" |
| 20 #include "webrtc/modules/congestion_controller/include/congestion_controller.h" |
21 #include "webrtc/modules/pacing/paced_sender.h" | 21 #include "webrtc/modules/pacing/paced_sender.h" |
22 #include "webrtc/modules/remote_bitrate_estimator/include/mock/mock_remote_bitra
te_estimator.h" | 22 #include "webrtc/modules/remote_bitrate_estimator/include/mock/mock_remote_bitra
te_estimator.h" |
23 #include "webrtc/test/mock_voe_channel_proxy.h" | 23 #include "webrtc/test/mock_voe_channel_proxy.h" |
24 #include "webrtc/test/mock_voice_engine.h" | 24 #include "webrtc/test/mock_voice_engine.h" |
25 | 25 |
26 namespace webrtc { | 26 namespace webrtc { |
27 namespace test { | 27 namespace test { |
28 namespace { | 28 namespace { |
29 | 29 |
30 using testing::_; | 30 using testing::_; |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 static_cast<internal::AudioState*>(helper.audio_state().get()); | 234 static_cast<internal::AudioState*>(helper.audio_state().get()); |
235 VoiceEngineObserver* voe_observer = | 235 VoiceEngineObserver* voe_observer = |
236 static_cast<VoiceEngineObserver*>(internal_audio_state); | 236 static_cast<VoiceEngineObserver*>(internal_audio_state); |
237 voe_observer->CallbackOnError(-1, VE_TYPING_NOISE_WARNING); | 237 voe_observer->CallbackOnError(-1, VE_TYPING_NOISE_WARNING); |
238 EXPECT_TRUE(send_stream.GetStats().typing_noise_detected); | 238 EXPECT_TRUE(send_stream.GetStats().typing_noise_detected); |
239 voe_observer->CallbackOnError(-1, VE_TYPING_NOISE_OFF_WARNING); | 239 voe_observer->CallbackOnError(-1, VE_TYPING_NOISE_OFF_WARNING); |
240 EXPECT_FALSE(send_stream.GetStats().typing_noise_detected); | 240 EXPECT_FALSE(send_stream.GetStats().typing_noise_detected); |
241 } | 241 } |
242 } // namespace test | 242 } // namespace test |
243 } // namespace webrtc | 243 } // namespace webrtc |
OLD | NEW |