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

Side by Side Diff: webrtc/voice_engine/test/auto_test/standard/rtp_rtcp_extensions.cc

Issue 2455013003: Clean up abs-send-time for audio. (Closed)
Patch Set: Rebase. Created 4 years, 1 month 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/voice_engine/include/voe_rtp_rtcp.h ('k') | webrtc/voice_engine/voe_rtp_rtcp_impl.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) 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2014 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 } 111 }
112 112
113 TEST_F(SendRtpRtcpHeaderExtensionsTest, SentPacketsIncludeAudioLevel) { 113 TEST_F(SendRtpRtcpHeaderExtensionsTest, SentPacketsIncludeAudioLevel) {
114 EXPECT_EQ(0, voe_rtp_rtcp_->SetSendAudioLevelIndicationStatus(channel_, true, 114 EXPECT_EQ(0, voe_rtp_rtcp_->SetSendAudioLevelIndicationStatus(channel_, true,
115 9)); 115 9));
116 verifying_transport_.SetAudioLevelId(9); 116 verifying_transport_.SetAudioLevelId(9);
117 ResumePlaying(); 117 ResumePlaying();
118 EXPECT_TRUE(verifying_transport_.Wait()); 118 EXPECT_TRUE(verifying_transport_.Wait());
119 } 119 }
120 120
121 TEST_F(SendRtpRtcpHeaderExtensionsTest, SentPacketsIncludeNoAbsoluteSenderTime)
122 {
123 verifying_transport_.SetAbsoluteSenderTimeId(0);
124 ResumePlaying();
125 EXPECT_FALSE(verifying_transport_.Wait());
126 }
127
128 TEST_F(SendRtpRtcpHeaderExtensionsTest, SentPacketsIncludeAbsoluteSenderTime) {
129 EXPECT_EQ(0, voe_rtp_rtcp_->SetSendAbsoluteSenderTimeStatus(channel_, true,
130 11));
131 verifying_transport_.SetAbsoluteSenderTimeId(11);
132 ResumePlaying();
133 EXPECT_TRUE(verifying_transport_.Wait());
134 }
135
136 TEST_F(SendRtpRtcpHeaderExtensionsTest, SentPacketsIncludeAllExtensions1) {
137 EXPECT_EQ(0, voe_rtp_rtcp_->SetSendAudioLevelIndicationStatus(channel_, true,
138 9));
139 EXPECT_EQ(0, voe_rtp_rtcp_->SetSendAbsoluteSenderTimeStatus(channel_, true,
140 11));
141 verifying_transport_.SetAudioLevelId(9);
142 verifying_transport_.SetAbsoluteSenderTimeId(11);
143 ResumePlaying();
144 EXPECT_TRUE(verifying_transport_.Wait());
145 }
146
147 TEST_F(SendRtpRtcpHeaderExtensionsTest, SentPacketsIncludeAllExtensions2) {
148 EXPECT_EQ(0, voe_rtp_rtcp_->SetSendAbsoluteSenderTimeStatus(channel_, true,
149 3));
150 EXPECT_EQ(0, voe_rtp_rtcp_->SetSendAudioLevelIndicationStatus(channel_, true,
151 9));
152 verifying_transport_.SetAbsoluteSenderTimeId(3);
153 // Don't register audio level with header parser - unknown extensions should
154 // be ignored when parsing.
155 ResumePlaying();
156 EXPECT_TRUE(verifying_transport_.Wait());
157 }
OLDNEW
« no previous file with comments | « webrtc/voice_engine/include/voe_rtp_rtcp.h ('k') | webrtc/voice_engine/voe_rtp_rtcp_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698