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

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

Issue 1512853002: Nuke TickTime::UseFakeClock. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: feedback 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 | « no previous file | 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
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
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, -451, -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 process_thread_(ProcessThread::Create("AudioTestThread")), 56 process_thread_(ProcessThread::Create("AudioTestThread")),
56 congestion_controller_(process_thread_.get(), 57 congestion_controller_(process_thread_.get(),
57 &call_stats_, 58 &call_stats_,
58 &bitrate_observer_) { 59 &bitrate_observer_) {
59 using testing::Invoke; 60 using testing::Invoke;
60 using testing::StrEq; 61 using testing::StrEq;
61 62
62 EXPECT_CALL(voice_engine_, 63 EXPECT_CALL(voice_engine_,
63 RegisterVoiceEngineObserver(_)).WillOnce(Return(0)); 64 RegisterVoiceEngineObserver(_)).WillOnce(Return(0));
64 EXPECT_CALL(voice_engine_, 65 EXPECT_CALL(voice_engine_,
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 static_cast<internal::AudioState*>(helper.audio_state().get()); 243 static_cast<internal::AudioState*>(helper.audio_state().get());
243 VoiceEngineObserver* voe_observer = 244 VoiceEngineObserver* voe_observer =
244 static_cast<VoiceEngineObserver*>(internal_audio_state); 245 static_cast<VoiceEngineObserver*>(internal_audio_state);
245 voe_observer->CallbackOnError(-1, VE_TYPING_NOISE_WARNING); 246 voe_observer->CallbackOnError(-1, VE_TYPING_NOISE_WARNING);
246 EXPECT_TRUE(send_stream.GetStats().typing_noise_detected); 247 EXPECT_TRUE(send_stream.GetStats().typing_noise_detected);
247 voe_observer->CallbackOnError(-1, VE_TYPING_NOISE_OFF_WARNING); 248 voe_observer->CallbackOnError(-1, VE_TYPING_NOISE_OFF_WARNING);
248 EXPECT_FALSE(send_stream.GetStats().typing_noise_detected); 249 EXPECT_FALSE(send_stream.GetStats().typing_noise_detected);
249 } 250 }
250 } // namespace test 251 } // namespace test
251 } // namespace webrtc 252 } // namespace webrtc
OLDNEW
« no previous file with comments | « no previous file | webrtc/call/call.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698