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/rtp_demuxer.h" | 11 #include "webrtc/call/rtp_demuxer.h" |
12 | 12 |
13 #include <memory> | 13 #include <memory> |
14 | 14 |
15 #include "webrtc/base/arraysize.h" | 15 #include "webrtc/base/arraysize.h" |
16 #include "webrtc/base/checks.h" | 16 #include "webrtc/base/checks.h" |
17 #include "webrtc/base/ptr_util.h" | 17 #include "webrtc/base/ptr_util.h" |
| 18 #include "webrtc/call/rtp_packet_sink_interface.h" |
18 #include "webrtc/modules/rtp_rtcp/source/rtp_packet_received.h" | 19 #include "webrtc/modules/rtp_rtcp/source/rtp_packet_received.h" |
19 #include "webrtc/test/gmock.h" | 20 #include "webrtc/test/gmock.h" |
20 #include "webrtc/test/gtest.h" | 21 #include "webrtc/test/gtest.h" |
21 | 22 |
22 namespace webrtc { | 23 namespace webrtc { |
23 | 24 |
24 namespace { | 25 namespace { |
25 | 26 |
26 using ::testing::_; | 27 using ::testing::_; |
27 | 28 |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 #if RTC_DCHECK_IS_ON && GTEST_HAS_DEATH_TEST && !defined(WEBRTC_ANDROID) | 139 #if RTC_DCHECK_IS_ON && GTEST_HAS_DEATH_TEST && !defined(WEBRTC_ANDROID) |
139 TEST_F(RtpDemuxerTest, RepeatedAssociationsForbidden) { | 140 TEST_F(RtpDemuxerTest, RepeatedAssociationsForbidden) { |
140 // Set-up already associated sinks[0] with kSsrcs[0]. Repeating the | 141 // Set-up already associated sinks[0] with kSsrcs[0]. Repeating the |
141 // association is an error. | 142 // association is an error. |
142 EXPECT_DEATH(demuxer.AddSink(kSsrcs[0], &sinks[0]), ""); | 143 EXPECT_DEATH(demuxer.AddSink(kSsrcs[0], &sinks[0]), ""); |
143 } | 144 } |
144 #endif | 145 #endif |
145 | 146 |
146 } // namespace | 147 } // namespace |
147 } // namespace webrtc | 148 } // namespace webrtc |
OLD | NEW |