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 |
11 #include <algorithm> | 11 #include <algorithm> |
12 #include <memory> | 12 #include <memory> |
13 #include <vector> | 13 #include <vector> |
14 | 14 |
| 15 #include "webrtc/base/rate_limiter.h" |
15 #include "webrtc/common_types.h" | 16 #include "webrtc/common_types.h" |
16 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp.h" | 17 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp.h" |
17 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" | 18 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" |
18 #include "webrtc/modules/rtp_rtcp/source/rtp_receiver_audio.h" | 19 #include "webrtc/modules/rtp_rtcp/source/rtp_receiver_audio.h" |
19 #include "webrtc/modules/rtp_rtcp/test/testAPI/test_api.h" | 20 #include "webrtc/modules/rtp_rtcp/test/testAPI/test_api.h" |
20 #include "webrtc/rtc_base/rate_limiter.h" | |
21 #include "webrtc/test/gtest.h" | 21 #include "webrtc/test/gtest.h" |
22 | 22 |
23 namespace webrtc { | 23 namespace webrtc { |
24 namespace { | 24 namespace { |
25 | 25 |
26 const uint32_t kTestRate = 64000u; | 26 const uint32_t kTestRate = 64000u; |
27 const uint8_t kTestPayload[] = { 't', 'e', 's', 't' }; | 27 const uint8_t kTestPayload[] = { 't', 'e', 's', 't' }; |
28 const uint8_t kPcmuPayloadType = 96; | 28 const uint8_t kPcmuPayloadType = 96; |
29 const uint8_t kDtmfPayloadType = 97; | 29 const uint8_t kDtmfPayloadType = 97; |
30 | 30 |
(...skipping 247 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 |