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

Side by Side Diff: webrtc/call/rtc_event_log_unittest.cc

Issue 1478253002: Add histogram stats for send delay for a sent video stream. (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
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 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 307
308 RTPSender rtp_sender(false, // bool audio 308 RTPSender rtp_sender(false, // bool audio
309 clock, // Clock* clock 309 clock, // Clock* clock
310 nullptr, // Transport* 310 nullptr, // Transport*
311 nullptr, // RtpAudioFeedback* 311 nullptr, // RtpAudioFeedback*
312 nullptr, // PacedSender* 312 nullptr, // PacedSender*
313 nullptr, // PacketRouter* 313 nullptr, // PacketRouter*
314 nullptr, // SendTimeObserver* 314 nullptr, // SendTimeObserver*
315 nullptr, // BitrateStatisticsObserver* 315 nullptr, // BitrateStatisticsObserver*
316 nullptr, // FrameCountObserver* 316 nullptr, // FrameCountObserver*
317 nullptr); // SendSideDelayObserver* 317 nullptr, // SendSideDelayObserver*
318 nullptr); // SendPacketObserver*
318 319
319 std::vector<uint32_t> csrcs; 320 std::vector<uint32_t> csrcs;
320 for (unsigned i = 0; i < csrcs_count; i++) { 321 for (unsigned i = 0; i < csrcs_count; i++) {
321 csrcs.push_back(prng->Rand<uint32_t>()); 322 csrcs.push_back(prng->Rand<uint32_t>());
322 } 323 }
323 rtp_sender.SetCsrcs(csrcs); 324 rtp_sender.SetCsrcs(csrcs);
324 rtp_sender.SetSSRC(prng->Rand<uint32_t>()); 325 rtp_sender.SetSSRC(prng->Rand<uint32_t>());
325 rtp_sender.SetStartTimestamp(prng->Rand<uint32_t>(), true); 326 rtp_sender.SetStartTimestamp(prng->Rand<uint32_t>(), true);
326 rtp_sender.SetSequenceNumber(prng->Rand<uint16_t>()); 327 rtp_sender.SetSequenceNumber(prng->Rand<uint16_t>());
327 328
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
682 // Enable all header extensions 683 // Enable all header extensions
683 uint32_t extensions = (1u << kNumExtensions) - 1; 684 uint32_t extensions = (1u << kNumExtensions) - 1;
684 uint32_t csrcs_count = 2; 685 uint32_t csrcs_count = 2;
685 DropOldEvents(extensions, csrcs_count, 141421356); 686 DropOldEvents(extensions, csrcs_count, 141421356);
686 DropOldEvents(extensions, csrcs_count, 173205080); 687 DropOldEvents(extensions, csrcs_count, 173205080);
687 } 688 }
688 689
689 } // namespace webrtc 690 } // namespace webrtc
690 691
691 #endif // ENABLE_RTC_EVENT_LOG 692 #endif // ENABLE_RTC_EVENT_LOG
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698