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 #include "webrtc/test/gtest.h" | |
15 | |
16 #include "webrtc/modules/rtp_rtcp/test/testAPI/test_api.h" | |
17 | 14 |
18 #include "webrtc/base/rate_limiter.h" | 15 #include "webrtc/base/rate_limiter.h" |
19 #include "webrtc/common_types.h" | 16 #include "webrtc/common_types.h" |
20 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp.h" | 17 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp.h" |
21 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" | 18 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" |
22 #include "webrtc/modules/rtp_rtcp/source/rtp_receiver_audio.h" | 19 #include "webrtc/modules/rtp_rtcp/source/rtp_receiver_audio.h" |
| 20 #include "webrtc/modules/rtp_rtcp/test/testAPI/test_api.h" |
| 21 #include "webrtc/test/gtest.h" |
23 | 22 |
24 namespace webrtc { | 23 namespace webrtc { |
25 namespace { | 24 namespace { |
26 #define test_rate 64000u | 25 #define test_rate 64000u |
27 | 26 |
28 class VerifyingAudioReceiver : public NullRtpData { | 27 class VerifyingAudioReceiver : public NullRtpData { |
29 public: | 28 public: |
30 int32_t OnReceivedPayloadData( | 29 int32_t OnReceivedPayloadData( |
31 const uint8_t* payloadData, | 30 const uint8_t* payloadData, |
32 size_t payloadSize, | 31 size_t payloadSize, |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 EXPECT_TRUE(module1->SendOutgoingData(webrtc::kAudioFrameSpeech, 96, | 273 EXPECT_TRUE(module1->SendOutgoingData(webrtc::kAudioFrameSpeech, 96, |
275 timeStamp, -1, test, 4, nullptr, | 274 timeStamp, -1, test, 4, nullptr, |
276 nullptr, nullptr)); | 275 nullptr, nullptr)); |
277 fake_clock.AdvanceTimeMilliseconds(20); | 276 fake_clock.AdvanceTimeMilliseconds(20); |
278 module1->Process(); | 277 module1->Process(); |
279 } | 278 } |
280 } | 279 } |
281 | 280 |
282 } // namespace | 281 } // namespace |
283 } // namespace webrtc | 282 } // namespace webrtc |
OLD | NEW |