| 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 <stdlib.h> | 11 #include <stdlib.h> |
| 12 | 12 |
| 13 #include <algorithm> | 13 #include <algorithm> |
| 14 #include <memory> | 14 #include <memory> |
| 15 #include <vector> | 15 #include <vector> |
| 16 | 16 |
| 17 #include "webrtc/test/gtest.h" | |
| 18 #include "webrtc/base/rate_limiter.h" | 17 #include "webrtc/base/rate_limiter.h" |
| 19 #include "webrtc/common_types.h" | 18 #include "webrtc/common_types.h" |
| 20 #include "webrtc/modules/rtp_rtcp/include/rtp_payload_registry.h" | 19 #include "webrtc/modules/rtp_rtcp/include/rtp_payload_registry.h" |
| 21 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp.h" | 20 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp.h" |
| 22 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" | 21 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" |
| 23 #include "webrtc/modules/rtp_rtcp/source/byte_io.h" | 22 #include "webrtc/modules/rtp_rtcp/source/byte_io.h" |
| 24 #include "webrtc/modules/rtp_rtcp/source/rtp_receiver_video.h" | 23 #include "webrtc/modules/rtp_rtcp/source/rtp_receiver_video.h" |
| 25 #include "webrtc/modules/rtp_rtcp/test/testAPI/test_api.h" | 24 #include "webrtc/modules/rtp_rtcp/test/testAPI/test_api.h" |
| 25 #include "webrtc/test/gtest.h" |
| 26 | 26 |
| 27 namespace { | 27 namespace { |
| 28 | 28 |
| 29 const unsigned char kPayloadType = 100; | 29 const unsigned char kPayloadType = 100; |
| 30 | 30 |
| 31 }; | 31 }; |
| 32 | 32 |
| 33 namespace webrtc { | 33 namespace webrtc { |
| 34 | 34 |
| 35 class RtpRtcpVideoTest : public ::testing::Test { | 35 class RtpRtcpVideoTest : public ::testing::Test { |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 payload_specific, true)); | 184 payload_specific, true)); |
| 185 EXPECT_EQ(0u, receiver_->payload_size()); | 185 EXPECT_EQ(0u, receiver_->payload_size()); |
| 186 EXPECT_EQ(payload_length, receiver_->rtp_header().header.paddingLength); | 186 EXPECT_EQ(payload_length, receiver_->rtp_header().header.paddingLength); |
| 187 } | 187 } |
| 188 timestamp += 3000; | 188 timestamp += 3000; |
| 189 fake_clock.AdvanceTimeMilliseconds(33); | 189 fake_clock.AdvanceTimeMilliseconds(33); |
| 190 } | 190 } |
| 191 } | 191 } |
| 192 | 192 |
| 193 } // namespace webrtc | 193 } // namespace webrtc |
| OLD | NEW |