OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2017 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 "webrtc/call/rtcp_demuxer.h" | 11 #include "webrtc/call/rtcp_demuxer.h" |
12 | 12 |
13 #include <memory> | 13 #include <memory> |
14 | 14 |
15 #include "webrtc/base/arraysize.h" | |
16 #include "webrtc/base/basictypes.h" | |
17 #include "webrtc/base/checks.h" | |
18 #include "webrtc/base/ptr_util.h" | |
19 #include "webrtc/call/rtcp_packet_sink_interface.h" | 15 #include "webrtc/call/rtcp_packet_sink_interface.h" |
20 #include "webrtc/common_types.h" | 16 #include "webrtc/common_types.h" |
21 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/bye.h" | 17 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/bye.h" |
| 18 #include "webrtc/rtc_base/arraysize.h" |
| 19 #include "webrtc/rtc_base/basictypes.h" |
| 20 #include "webrtc/rtc_base/checks.h" |
| 21 #include "webrtc/rtc_base/ptr_util.h" |
22 #include "webrtc/test/gmock.h" | 22 #include "webrtc/test/gmock.h" |
23 #include "webrtc/test/gtest.h" | 23 #include "webrtc/test/gtest.h" |
24 | 24 |
25 namespace webrtc { | 25 namespace webrtc { |
26 | 26 |
27 namespace { | 27 namespace { |
28 | 28 |
29 using ::testing::_; | 29 using ::testing::_; |
30 using ::testing::AtLeast; | 30 using ::testing::AtLeast; |
31 using ::testing::ElementsAreArray; | 31 using ::testing::ElementsAreArray; |
(...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
575 } | 575 } |
576 | 576 |
577 TEST(RtcpDemuxerTest, RsidMustNotExceedMaximumLength) { | 577 TEST(RtcpDemuxerTest, RsidMustNotExceedMaximumLength) { |
578 RtcpDemuxer demuxer; | 578 RtcpDemuxer demuxer; |
579 MockRtcpPacketSink sink; | 579 MockRtcpPacketSink sink; |
580 std::string rsid(StreamId::kMaxSize + 1, 'a'); | 580 std::string rsid(StreamId::kMaxSize + 1, 'a'); |
581 EXPECT_DEATH(demuxer.AddSink(rsid, &sink), ""); | 581 EXPECT_DEATH(demuxer.AddSink(rsid, &sink), ""); |
582 } | 582 } |
583 #endif | 583 #endif |
584 } // namespace webrtc | 584 } // namespace webrtc |
OLD | NEW |