Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(256)

Side by Side Diff: webrtc/audio/audio_send_stream_unittest.cc

Issue 1506773002: Merge webrtc/video_engine/ into webrtc/video/ (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « talk/media/base/videocommon.cc ('k') | webrtc/call/call.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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" 19 #include "webrtc/call/congestion_controller.h"
20 #include "webrtc/modules/bitrate_controller/include/bitrate_controller.h" 20 #include "webrtc/modules/bitrate_controller/include/bitrate_controller.h"
21 #include "webrtc/modules/pacing/paced_sender.h" 21 #include "webrtc/modules/pacing/paced_sender.h"
22 #include "webrtc/test/mock_voe_channel_proxy.h" 22 #include "webrtc/test/mock_voe_channel_proxy.h"
23 #include "webrtc/test/mock_voice_engine.h" 23 #include "webrtc/test/mock_voice_engine.h"
24 #include "webrtc/video_engine/call_stats.h" 24 #include "webrtc/video/call_stats.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::_;
31 using testing::Return; 31 using testing::Return;
32 32
33 const int kChannelId = 1; 33 const int kChannelId = 1;
34 const uint32_t kSsrc = 1234; 34 const uint32_t kSsrc = 1234;
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 static_cast<internal::AudioState*>(helper.audio_state().get()); 242 static_cast<internal::AudioState*>(helper.audio_state().get());
243 VoiceEngineObserver* voe_observer = 243 VoiceEngineObserver* voe_observer =
244 static_cast<VoiceEngineObserver*>(internal_audio_state); 244 static_cast<VoiceEngineObserver*>(internal_audio_state);
245 voe_observer->CallbackOnError(-1, VE_TYPING_NOISE_WARNING); 245 voe_observer->CallbackOnError(-1, VE_TYPING_NOISE_WARNING);
246 EXPECT_TRUE(send_stream.GetStats().typing_noise_detected); 246 EXPECT_TRUE(send_stream.GetStats().typing_noise_detected);
247 voe_observer->CallbackOnError(-1, VE_TYPING_NOISE_OFF_WARNING); 247 voe_observer->CallbackOnError(-1, VE_TYPING_NOISE_OFF_WARNING);
248 EXPECT_FALSE(send_stream.GetStats().typing_noise_detected); 248 EXPECT_FALSE(send_stream.GetStats().typing_noise_detected);
249 } 249 }
250 } // namespace test 250 } // namespace test
251 } // namespace webrtc 251 } // namespace webrtc
OLDNEW
« no previous file with comments | « talk/media/base/videocommon.cc ('k') | webrtc/call/call.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698