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 "webrtc/test/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/base/task_queue.h" | 19 #include "webrtc/base/task_queue.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/call/mock/mock_rtc_event_log.h" | 21 #include "webrtc/call/mock/mock_rtc_event_log.h" |
22 #include "webrtc/modules/congestion_controller/include/congestion_controller.h" | 22 #include "webrtc/modules/congestion_controller/include/congestion_controller.h" |
23 #include "webrtc/modules/pacing/paced_sender.h" | 23 #include "webrtc/modules/pacing/paced_sender.h" |
24 #include "webrtc/modules/remote_bitrate_estimator/include/mock/mock_remote_bitra
te_estimator.h" | 24 #include "webrtc/modules/remote_bitrate_estimator/include/mock/mock_remote_bitra
te_estimator.h" |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 static_cast<internal::AudioState*>(helper.audio_state().get()); | 283 static_cast<internal::AudioState*>(helper.audio_state().get()); |
284 VoiceEngineObserver* voe_observer = | 284 VoiceEngineObserver* voe_observer = |
285 static_cast<VoiceEngineObserver*>(internal_audio_state); | 285 static_cast<VoiceEngineObserver*>(internal_audio_state); |
286 voe_observer->CallbackOnError(-1, VE_TYPING_NOISE_WARNING); | 286 voe_observer->CallbackOnError(-1, VE_TYPING_NOISE_WARNING); |
287 EXPECT_TRUE(send_stream.GetStats().typing_noise_detected); | 287 EXPECT_TRUE(send_stream.GetStats().typing_noise_detected); |
288 voe_observer->CallbackOnError(-1, VE_TYPING_NOISE_OFF_WARNING); | 288 voe_observer->CallbackOnError(-1, VE_TYPING_NOISE_OFF_WARNING); |
289 EXPECT_FALSE(send_stream.GetStats().typing_noise_detected); | 289 EXPECT_FALSE(send_stream.GetStats().typing_noise_detected); |
290 } | 290 } |
291 } // namespace test | 291 } // namespace test |
292 } // namespace webrtc | 292 } // namespace webrtc |
OLD | NEW |