OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2017 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 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/pc/srtptransport.h" | 11 #include "webrtc/pc/srtptransport.h" |
12 | 12 |
| 13 #include <memory> |
| 14 |
13 #include "webrtc/media/base/fakertp.h" | 15 #include "webrtc/media/base/fakertp.h" |
14 #include "webrtc/p2p/base/dtlstransportinternal.h" | 16 #include "webrtc/p2p/base/dtlstransportinternal.h" |
15 #include "webrtc/p2p/base/fakepackettransport.h" | 17 #include "webrtc/p2p/base/fakepackettransport.h" |
16 #include "webrtc/pc/rtptransport.h" | 18 #include "webrtc/pc/rtptransport.h" |
17 #include "webrtc/pc/rtptransporttestutil.h" | 19 #include "webrtc/pc/rtptransporttestutil.h" |
18 #include "webrtc/pc/srtptestutil.h" | 20 #include "webrtc/pc/srtptestutil.h" |
19 #include "webrtc/rtc_base/asyncpacketsocket.h" | 21 #include "webrtc/rtc_base/asyncpacketsocket.h" |
20 #include "webrtc/rtc_base/gunit.h" | 22 #include "webrtc/rtc_base/gunit.h" |
21 #include "webrtc/rtc_base/ptr_util.h" | 23 #include "webrtc/rtc_base/ptr_util.h" |
22 #include "webrtc/rtc_base/sslstreamadapter.h" | 24 #include "webrtc/rtc_base/sslstreamadapter.h" |
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
413 TEST_F(SrtpTransportTest, TestSetParamsKeyTooShort) { | 415 TEST_F(SrtpTransportTest, TestSetParamsKeyTooShort) { |
414 EXPECT_FALSE(srtp_transport1_->SetRtpParams( | 416 EXPECT_FALSE(srtp_transport1_->SetRtpParams( |
415 rtc::SRTP_AES128_CM_SHA1_80, kTestKey1, kTestKeyLen - 1, | 417 rtc::SRTP_AES128_CM_SHA1_80, kTestKey1, kTestKeyLen - 1, |
416 rtc::SRTP_AES128_CM_SHA1_80, kTestKey1, kTestKeyLen - 1)); | 418 rtc::SRTP_AES128_CM_SHA1_80, kTestKey1, kTestKeyLen - 1)); |
417 EXPECT_FALSE(srtp_transport1_->SetRtcpParams( | 419 EXPECT_FALSE(srtp_transport1_->SetRtcpParams( |
418 rtc::SRTP_AES128_CM_SHA1_80, kTestKey1, kTestKeyLen - 1, | 420 rtc::SRTP_AES128_CM_SHA1_80, kTestKey1, kTestKeyLen - 1, |
419 rtc::SRTP_AES128_CM_SHA1_80, kTestKey1, kTestKeyLen - 1)); | 421 rtc::SRTP_AES128_CM_SHA1_80, kTestKey1, kTestKeyLen - 1)); |
420 } | 422 } |
421 | 423 |
422 } // namespace webrtc | 424 } // namespace webrtc |
OLD | NEW |