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 "webrtc/audio/audio_send_stream.h" | 14 #include "webrtc/audio/audio_send_stream.h" |
15 #include "webrtc/audio/audio_state.h" | 15 #include "webrtc/audio/audio_state.h" |
16 #include "webrtc/audio/conversion.h" | 16 #include "webrtc/audio/conversion.h" |
17 #include "webrtc/base/task_queue.h" | 17 #include "webrtc/base/task_queue.h" |
18 #include "webrtc/call/mock/mock_rtc_event_log.h" | 18 #include "webrtc/logging/rtc_event_log/mock/mock_rtc_event_log.h" |
19 #include "webrtc/modules/congestion_controller/include/congestion_controller.h" | 19 #include "webrtc/modules/congestion_controller/include/congestion_controller.h" |
20 #include "webrtc/modules/congestion_controller/include/mock/mock_congestion_cont
roller.h" | 20 #include "webrtc/modules/congestion_controller/include/mock/mock_congestion_cont
roller.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/gtest.h" | 23 #include "webrtc/test/gtest.h" |
24 #include "webrtc/test/mock_voe_channel_proxy.h" | 24 #include "webrtc/test/mock_voe_channel_proxy.h" |
25 #include "webrtc/test/mock_voice_engine.h" | 25 #include "webrtc/test/mock_voice_engine.h" |
26 | 26 |
27 namespace webrtc { | 27 namespace webrtc { |
28 namespace test { | 28 namespace test { |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 static_cast<internal::AudioState*>(helper.audio_state().get()); | 282 static_cast<internal::AudioState*>(helper.audio_state().get()); |
283 VoiceEngineObserver* voe_observer = | 283 VoiceEngineObserver* voe_observer = |
284 static_cast<VoiceEngineObserver*>(internal_audio_state); | 284 static_cast<VoiceEngineObserver*>(internal_audio_state); |
285 voe_observer->CallbackOnError(-1, VE_TYPING_NOISE_WARNING); | 285 voe_observer->CallbackOnError(-1, VE_TYPING_NOISE_WARNING); |
286 EXPECT_TRUE(send_stream.GetStats().typing_noise_detected); | 286 EXPECT_TRUE(send_stream.GetStats().typing_noise_detected); |
287 voe_observer->CallbackOnError(-1, VE_TYPING_NOISE_OFF_WARNING); | 287 voe_observer->CallbackOnError(-1, VE_TYPING_NOISE_OFF_WARNING); |
288 EXPECT_FALSE(send_stream.GetStats().typing_noise_detected); | 288 EXPECT_FALSE(send_stream.GetStats().typing_noise_detected); |
289 } | 289 } |
290 } // namespace test | 290 } // namespace test |
291 } // namespace webrtc | 291 } // namespace webrtc |
OLD | NEW |