| OLD | NEW | 
|---|
| 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  Loading... | 
| 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 } |  | 
| OLD | NEW | 
|---|