OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 // CNG types should be recognized properly. | 63 // CNG types should be recognized properly. |
64 EXPECT_EQ(kAudioFrameCN, rtpHeader->frameType); | 64 EXPECT_EQ(kAudioFrameCN, rtpHeader->frameType); |
65 EXPECT_TRUE(rtpHeader->type.Audio.isCNG); | 65 EXPECT_TRUE(rtpHeader->type.Audio.isCNG); |
66 } | 66 } |
67 return 0; | 67 return 0; |
68 } | 68 } |
69 }; | 69 }; |
70 | 70 |
71 class RTPCallback : public NullRtpFeedback { | 71 class RTPCallback : public NullRtpFeedback { |
72 public: | 72 public: |
73 int32_t OnInitializeDecoder(const int8_t payloadType, | 73 int32_t OnInitializeDecoder(int8_t payloadType, |
74 const char payloadName[RTP_PAYLOAD_NAME_SIZE], | 74 const char payloadName[RTP_PAYLOAD_NAME_SIZE], |
75 const int frequency, | 75 int frequency, |
76 const size_t channels, | 76 size_t channels, |
77 const uint32_t rate) override { | 77 uint32_t rate) override { |
78 EXPECT_EQ(0u, rate) << "The rate should be zero"; | 78 EXPECT_EQ(0u, rate) << "The rate should be zero"; |
79 return 0; | 79 return 0; |
80 } | 80 } |
81 }; | 81 }; |
82 | 82 |
83 } // namespace | 83 } // namespace |
84 | 84 |
85 class RtpRtcpAudioTest : public ::testing::Test { | 85 class RtpRtcpAudioTest : public ::testing::Test { |
86 protected: | 86 protected: |
87 RtpRtcpAudioTest() | 87 RtpRtcpAudioTest() |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 nullptr, nullptr, nullptr)); | 278 nullptr, nullptr, nullptr)); |
279 | 279 |
280 EXPECT_EQ(test_ssrc, rtp_receiver2_->SSRC()); | 280 EXPECT_EQ(test_ssrc, rtp_receiver2_->SSRC()); |
281 EXPECT_TRUE(rtp_receiver2_->Timestamp(×tamp)); | 281 EXPECT_TRUE(rtp_receiver2_->Timestamp(×tamp)); |
282 EXPECT_EQ(test_timestamp + in_timestamp, timestamp); | 282 EXPECT_EQ(test_timestamp + in_timestamp, timestamp); |
283 in_timestamp += 10; | 283 in_timestamp += 10; |
284 } | 284 } |
285 } | 285 } |
286 | 286 |
287 } // namespace webrtc | 287 } // namespace webrtc |
OLD | NEW |