OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2011 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 <memory> | 11 #include <memory> |
12 #include <set> | 12 #include <set> |
13 | 13 |
14 #include "webrtc/p2p/base/dtlstransportchannel.h" | 14 #include "webrtc/p2p/base/dtlstransportchannel.h" |
15 #include "webrtc/p2p/base/fakeicetransport.h" | 15 #include "webrtc/p2p/base/fakeicetransport.h" |
16 #include "webrtc/p2p/base/packettransportinternal.h" | 16 #include "webrtc/p2p/base/packettransportinternal.h" |
17 #include "webrtc/base/checks.h" | 17 #include "webrtc/rtc_base/checks.h" |
18 #include "webrtc/base/dscp.h" | 18 #include "webrtc/rtc_base/dscp.h" |
19 #include "webrtc/base/gunit.h" | 19 #include "webrtc/rtc_base/gunit.h" |
20 #include "webrtc/base/helpers.h" | 20 #include "webrtc/rtc_base/helpers.h" |
21 #include "webrtc/base/ssladapter.h" | 21 #include "webrtc/rtc_base/ssladapter.h" |
22 #include "webrtc/base/sslidentity.h" | 22 #include "webrtc/rtc_base/sslidentity.h" |
23 #include "webrtc/base/sslstreamadapter.h" | 23 #include "webrtc/rtc_base/sslstreamadapter.h" |
24 #include "webrtc/base/stringutils.h" | 24 #include "webrtc/rtc_base/stringutils.h" |
25 | 25 |
26 #define MAYBE_SKIP_TEST(feature) \ | 26 #define MAYBE_SKIP_TEST(feature) \ |
27 if (!(rtc::SSLStreamAdapter::feature())) { \ | 27 if (!(rtc::SSLStreamAdapter::feature())) { \ |
28 LOG(LS_INFO) << #feature " feature disabled... skipping"; \ | 28 LOG(LS_INFO) << #feature " feature disabled... skipping"; \ |
29 return; \ | 29 return; \ |
30 } | 30 } |
31 | 31 |
32 static const char kIceUfrag1[] = "TESTICEUFRAG0001"; | 32 static const char kIceUfrag1[] = "TESTICEUFRAG0001"; |
33 static const char kIcePwd1[] = "TESTICEPWD00000000000001"; | 33 static const char kIcePwd1[] = "TESTICEPWD00000000000001"; |
34 static const size_t kPacketNumOffset = 8; | 34 static const size_t kPacketNumOffset = 8; |
(...skipping 1074 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1109 std::vector<DtlsTransportEvent>{ | 1109 std::vector<DtlsTransportEvent>{ |
1110 CALLER_RECEIVES_CLIENTHELLO, CALLER_RECEIVES_FINGERPRINT, | 1110 CALLER_RECEIVES_CLIENTHELLO, CALLER_RECEIVES_FINGERPRINT, |
1111 CALLER_WRITABLE, HANDSHAKE_FINISHES}, | 1111 CALLER_WRITABLE, HANDSHAKE_FINISHES}, |
1112 std::vector<DtlsTransportEvent>{ | 1112 std::vector<DtlsTransportEvent>{ |
1113 CALLER_RECEIVES_CLIENTHELLO, CALLER_WRITABLE, | 1113 CALLER_RECEIVES_CLIENTHELLO, CALLER_WRITABLE, |
1114 CALLER_RECEIVES_FINGERPRINT, HANDSHAKE_FINISHES}, | 1114 CALLER_RECEIVES_FINGERPRINT, HANDSHAKE_FINISHES}, |
1115 std::vector<DtlsTransportEvent>{CALLER_RECEIVES_CLIENTHELLO, | 1115 std::vector<DtlsTransportEvent>{CALLER_RECEIVES_CLIENTHELLO, |
1116 CALLER_WRITABLE, HANDSHAKE_FINISHES, | 1116 CALLER_WRITABLE, HANDSHAKE_FINISHES, |
1117 CALLER_RECEIVES_FINGERPRINT}), | 1117 CALLER_RECEIVES_FINGERPRINT}), |
1118 ::testing::Bool())); | 1118 ::testing::Bool())); |
OLD | NEW |