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

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

Issue 1782053002: Relanding https://codereview.webrtc.org/1715883002/ in pieces. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase Created 4 years, 9 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
« no previous file with comments | « webrtc/audio/audio_send_stream.cc ('k') | webrtc/audio_send_stream.h » ('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
(...skipping 28 matching lines...) Expand all
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, 0, -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 int kTelephoneEventCode = 45;
50 const uint32_t kTelephoneEventDuration = 6789; 50 const int kTelephoneEventDuration = 6789;
51 51
52 struct ConfigHelper { 52 struct ConfigHelper {
53 ConfigHelper() 53 ConfigHelper()
54 : simulated_clock_(123456), 54 : simulated_clock_(123456),
55 stream_config_(nullptr), 55 stream_config_(nullptr),
56 congestion_controller_(&simulated_clock_, 56 congestion_controller_(&simulated_clock_,
57 &bitrate_observer_, 57 &bitrate_observer_,
58 &remote_bitrate_observer_) { 58 &remote_bitrate_observer_) {
59 using testing::Invoke; 59 using testing::Invoke;
60 using testing::StrEq; 60 using testing::StrEq;
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 static_cast<internal::AudioState*>(helper.audio_state().get()); 234 static_cast<internal::AudioState*>(helper.audio_state().get());
235 VoiceEngineObserver* voe_observer = 235 VoiceEngineObserver* voe_observer =
236 static_cast<VoiceEngineObserver*>(internal_audio_state); 236 static_cast<VoiceEngineObserver*>(internal_audio_state);
237 voe_observer->CallbackOnError(-1, VE_TYPING_NOISE_WARNING); 237 voe_observer->CallbackOnError(-1, VE_TYPING_NOISE_WARNING);
238 EXPECT_TRUE(send_stream.GetStats().typing_noise_detected); 238 EXPECT_TRUE(send_stream.GetStats().typing_noise_detected);
239 voe_observer->CallbackOnError(-1, VE_TYPING_NOISE_OFF_WARNING); 239 voe_observer->CallbackOnError(-1, VE_TYPING_NOISE_OFF_WARNING);
240 EXPECT_FALSE(send_stream.GetStats().typing_noise_detected); 240 EXPECT_FALSE(send_stream.GetStats().typing_noise_detected);
241 } 241 }
242 } // namespace test 242 } // namespace test
243 } // namespace webrtc 243 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/audio/audio_send_stream.cc ('k') | webrtc/audio_send_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698