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

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

Issue 1534193008: Misc. small cleanups (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Unnecessary parens Created 4 years, 11 months 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
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
(...skipping 25 matching lines...) Expand all
36 const int kAudioLevelId = 2; 36 const int kAudioLevelId = 2;
37 const int kAbsSendTimeId = 3; 37 const int kAbsSendTimeId = 3;
38 const int kTransportSequenceNumberId = 4; 38 const int kTransportSequenceNumberId = 4;
39 const int kEchoDelayMedian = 254; 39 const int kEchoDelayMedian = 254;
40 const int kEchoDelayStdDev = -3; 40 const int kEchoDelayStdDev = -3;
41 const int kEchoReturnLoss = -65; 41 const int kEchoReturnLoss = -65;
42 const int kEchoReturnLossEnhancement = 101; 42 const int kEchoReturnLossEnhancement = 101;
43 const unsigned int kSpeechInputLevel = 96; 43 const unsigned int kSpeechInputLevel = 96;
44 const CallStatistics kCallStats = { 44 const CallStatistics kCallStats = {
45 1345, 1678, 1901, 1234, 112, 13456, 17890, 1567, -1890, -1123}; 45 1345, 1678, 1901, 1234, 112, 13456, 17890, 1567, -1890, -1123};
46 const CodecInst kCodecInst = {-121, "codec_name_send", 48000, -231, -451, -671}; 46 const CodecInst kCodecInst = {-121, "codec_name_send", 48000, -231, 0, -671};
47 const ReportBlock kReportBlock = {456, 780, 123, 567, 890, 132, 143, 13354}; 47 const ReportBlock kReportBlock = {456, 780, 123, 567, 890, 132, 143, 13354};
48 const int kTelephoneEventPayloadType = 123; 48 const int kTelephoneEventPayloadType = 123;
49 const uint8_t kTelephoneEventCode = 45; 49 const uint8_t kTelephoneEventCode = 45;
50 const uint32_t kTelephoneEventDuration = 6789; 50 const uint32_t kTelephoneEventDuration = 6789;
51 51
52 struct ConfigHelper { 52 struct ConfigHelper {
53 ConfigHelper() 53 ConfigHelper()
54 : stream_config_(nullptr), 54 : stream_config_(nullptr),
55 call_stats_(Clock::GetRealTimeClock()), 55 call_stats_(Clock::GetRealTimeClock()),
56 process_thread_(ProcessThread::Create("AudioTestThread")), 56 process_thread_(ProcessThread::Create("AudioTestThread")),
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 static_cast<internal::AudioState*>(helper.audio_state().get()); 243 static_cast<internal::AudioState*>(helper.audio_state().get());
244 VoiceEngineObserver* voe_observer = 244 VoiceEngineObserver* voe_observer =
245 static_cast<VoiceEngineObserver*>(internal_audio_state); 245 static_cast<VoiceEngineObserver*>(internal_audio_state);
246 voe_observer->CallbackOnError(-1, VE_TYPING_NOISE_WARNING); 246 voe_observer->CallbackOnError(-1, VE_TYPING_NOISE_WARNING);
247 EXPECT_TRUE(send_stream.GetStats().typing_noise_detected); 247 EXPECT_TRUE(send_stream.GetStats().typing_noise_detected);
248 voe_observer->CallbackOnError(-1, VE_TYPING_NOISE_OFF_WARNING); 248 voe_observer->CallbackOnError(-1, VE_TYPING_NOISE_OFF_WARNING);
249 EXPECT_FALSE(send_stream.GetStats().typing_noise_detected); 249 EXPECT_FALSE(send_stream.GetStats().typing_noise_detected);
250 } 250 }
251 } // namespace test 251 } // namespace test
252 } // namespace webrtc 252 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/audio/audio_receive_stream_unittest.cc ('k') | webrtc/common_audio/audio_converter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698