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

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

Issue 1483323002: Enable cpplint for webrtc/audio and webrtc/call, and fix all uncovered cpplint errors. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: 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 | « webrtc/audio/audio_receive_stream_unittest.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>
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
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
OLDNEW
« no previous file with comments | « webrtc/audio/audio_receive_stream_unittest.cc ('k') | webrtc/call/call.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698