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

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

Issue 1984983002: Remove use of RtpHeaderExtension and clean up (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Addressed nit Created 4 years, 6 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 30 matching lines...) Expand all
41 namespace webrtc { 41 namespace webrtc {
42 42
43 namespace { 43 namespace {
44 44
45 const RTPExtensionType kExtensionTypes[] = { 45 const RTPExtensionType kExtensionTypes[] = {
46 RTPExtensionType::kRtpExtensionTransmissionTimeOffset, 46 RTPExtensionType::kRtpExtensionTransmissionTimeOffset,
47 RTPExtensionType::kRtpExtensionAudioLevel, 47 RTPExtensionType::kRtpExtensionAudioLevel,
48 RTPExtensionType::kRtpExtensionAbsoluteSendTime, 48 RTPExtensionType::kRtpExtensionAbsoluteSendTime,
49 RTPExtensionType::kRtpExtensionVideoRotation, 49 RTPExtensionType::kRtpExtensionVideoRotation,
50 RTPExtensionType::kRtpExtensionTransportSequenceNumber}; 50 RTPExtensionType::kRtpExtensionTransportSequenceNumber};
51 const char* kExtensionNames[] = {RtpExtension::kTOffset, 51 const char* kExtensionNames[] = {
52 RtpExtension::kAudioLevel, 52 RtpExtension::kTimestampOffsetUri, RtpExtension::kAudioLevelUri,
53 RtpExtension::kAbsSendTime, 53 RtpExtension::kAbsSendTimeUri, RtpExtension::kVideoRotationUri,
54 RtpExtension::kVideoRotation, 54 RtpExtension::kTransportSequenceNumberUri};
55 RtpExtension::kTransportSequenceNumber};
56 const size_t kNumExtensions = 5; 55 const size_t kNumExtensions = 5;
57 56
58 void PrintActualEvents(const ParsedRtcEventLog& parsed_log) { 57 void PrintActualEvents(const ParsedRtcEventLog& parsed_log) {
59 std::map<int, size_t> actual_event_counts; 58 std::map<int, size_t> actual_event_counts;
60 for (size_t i = 0; i < parsed_log.GetNumberOfEvents(); i++) { 59 for (size_t i = 0; i < parsed_log.GetNumberOfEvents(); i++) {
61 actual_event_counts[parsed_log.GetEventType(i)]++; 60 actual_event_counts[parsed_log.GetEventType(i)]++;
62 } 61 }
63 printf("Actual events: "); 62 printf("Actual events: ");
64 for (auto kv : actual_event_counts) { 63 for (auto kv : actual_event_counts) {
65 printf("%d_count = %zu, ", kv.first, kv.second); 64 printf("%d_count = %zu, ", kv.first, kv.second);
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
472 rtcp_packet.size()); 471 rtcp_packet.size());
473 472
474 RtcEventLogTestHelper::VerifyLogEndEvent(parsed_log, 3); 473 RtcEventLogTestHelper::VerifyLogEndEvent(parsed_log, 3);
475 474
476 // Clean up temporary file - can be pretty slow. 475 // Clean up temporary file - can be pretty slow.
477 remove(temp_filename.c_str()); 476 remove(temp_filename.c_str());
478 } 477 }
479 } // namespace webrtc 478 } // namespace webrtc
480 479
481 #endif // ENABLE_RTC_EVENT_LOG 480 #endif // ENABLE_RTC_EVENT_LOG
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698