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

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: rebase Created 4 years, 7 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/call/call.cc ('k') | webrtc/common_types.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 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 312
313 RTPSender rtp_sender(false, // bool audio 313 RTPSender rtp_sender(false, // bool audio
314 clock, // Clock* clock 314 clock, // Clock* clock
315 nullptr, // Transport* 315 nullptr, // Transport*
316 nullptr, // PacedSender* 316 nullptr, // PacedSender*
317 nullptr, // PacketRouter* 317 nullptr, // PacketRouter*
318 nullptr, // SendTimeObserver* 318 nullptr, // SendTimeObserver*
319 nullptr, // BitrateStatisticsObserver* 319 nullptr, // BitrateStatisticsObserver*
320 nullptr, // FrameCountObserver* 320 nullptr, // FrameCountObserver*
321 nullptr, // SendSideDelayObserver* 321 nullptr, // SendSideDelayObserver*
322 nullptr); // RtcEventLog* 322 nullptr, // RtcEventLog*
323 nullptr); // SendPacketObserver*
323 324
324 std::vector<uint32_t> csrcs; 325 std::vector<uint32_t> csrcs;
325 for (unsigned i = 0; i < csrcs_count; i++) { 326 for (unsigned i = 0; i < csrcs_count; i++) {
326 csrcs.push_back(prng->Rand<uint32_t>()); 327 csrcs.push_back(prng->Rand<uint32_t>());
327 } 328 }
328 rtp_sender.SetCsrcs(csrcs); 329 rtp_sender.SetCsrcs(csrcs);
329 rtp_sender.SetSSRC(prng->Rand<uint32_t>()); 330 rtp_sender.SetSSRC(prng->Rand<uint32_t>());
330 rtp_sender.SetStartTimestamp(prng->Rand<uint32_t>(), true); 331 rtp_sender.SetStartTimestamp(prng->Rand<uint32_t>(), true);
331 rtp_sender.SetSequenceNumber(prng->Rand<uint16_t>()); 332 rtp_sender.SetSequenceNumber(prng->Rand<uint16_t>());
332 333
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
698 rtcp_packet.data(), rtcp_packet.size()); 699 rtcp_packet.data(), rtcp_packet.size());
699 700
700 VerifyLogEndEvent(parsed_stream.stream(3)); 701 VerifyLogEndEvent(parsed_stream.stream(3));
701 702
702 // Clean up temporary file - can be pretty slow. 703 // Clean up temporary file - can be pretty slow.
703 remove(temp_filename.c_str()); 704 remove(temp_filename.c_str());
704 } 705 }
705 } // namespace webrtc 706 } // namespace webrtc
706 707
707 #endif // ENABLE_RTC_EVENT_LOG 708 #endif // ENABLE_RTC_EVENT_LOG
OLDNEW
« no previous file with comments | « webrtc/call/call.cc ('k') | webrtc/common_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698