OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2009 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2009 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 |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 static const SocketAddress kRelaySslTcpExtAddr("99.99.99.3", 5005); | 83 static const SocketAddress kRelaySslTcpExtAddr("99.99.99.3", 5005); |
84 // The addresses for the public turn server. | 84 // The addresses for the public turn server. |
85 static const SocketAddress kTurnUdpIntAddr("99.99.99.4", | 85 static const SocketAddress kTurnUdpIntAddr("99.99.99.4", |
86 cricket::STUN_SERVER_PORT); | 86 cricket::STUN_SERVER_PORT); |
87 static const SocketAddress kTurnTcpIntAddr("99.99.99.4", | 87 static const SocketAddress kTurnTcpIntAddr("99.99.99.4", |
88 cricket::STUN_SERVER_PORT + 1); | 88 cricket::STUN_SERVER_PORT + 1); |
89 static const SocketAddress kTurnUdpExtAddr("99.99.99.5", 0); | 89 static const SocketAddress kTurnUdpExtAddr("99.99.99.5", 0); |
90 static const cricket::RelayCredentials kRelayCredentials("test", "test"); | 90 static const cricket::RelayCredentials kRelayCredentials("test", "test"); |
91 | 91 |
92 // Based on ICE_UFRAG_LENGTH | 92 // Based on ICE_UFRAG_LENGTH |
93 static const char* kIceUfrag[4] = {"UF00", "UF01", | 93 static const char* kIceUfrag[4] = {"TESTICEUFRAG0000", "TESTICEUFRAG0001", |
94 "UF02", "UF03"}; | 94 "TESTICEUFRAG0002", "TESTICEUFRAG0003"}; |
95 // Based on ICE_PWD_LENGTH | 95 // Based on ICE_PWD_LENGTH |
96 static const char* kIcePwd[4] = {"TESTICEPWD00000000000000", | 96 static const char* kIcePwd[4] = {"TESTICEPWD00000000000000", |
97 "TESTICEPWD00000000000001", | 97 "TESTICEPWD00000000000001", |
98 "TESTICEPWD00000000000002", | 98 "TESTICEPWD00000000000002", |
99 "TESTICEPWD00000000000003"}; | 99 "TESTICEPWD00000000000003"}; |
100 | 100 |
101 static const uint64_t kTiebreaker1 = 11111; | 101 static const uint64_t kTiebreaker1 = 11111; |
102 static const uint64_t kTiebreaker2 = 22222; | 102 static const uint64_t kTiebreaker2 = 22222; |
103 | 103 |
104 enum { MSG_ADD_CANDIDATES, MSG_REMOVE_CANDIDATES }; | 104 enum { MSG_ADD_CANDIDATES, MSG_REMOVE_CANDIDATES }; |
(...skipping 2789 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2894 | 2894 |
2895 // TCP Relay/Relay is the next. | 2895 // TCP Relay/Relay is the next. |
2896 VerifyNextPingableConnection(cricket::RELAY_PORT_TYPE, | 2896 VerifyNextPingableConnection(cricket::RELAY_PORT_TYPE, |
2897 cricket::RELAY_PORT_TYPE, | 2897 cricket::RELAY_PORT_TYPE, |
2898 cricket::TCP_PROTOCOL_NAME); | 2898 cricket::TCP_PROTOCOL_NAME); |
2899 | 2899 |
2900 // Finally, Local/Relay will be pinged. | 2900 // Finally, Local/Relay will be pinged. |
2901 VerifyNextPingableConnection(cricket::LOCAL_PORT_TYPE, | 2901 VerifyNextPingableConnection(cricket::LOCAL_PORT_TYPE, |
2902 cricket::RELAY_PORT_TYPE); | 2902 cricket::RELAY_PORT_TYPE); |
2903 } | 2903 } |
OLD | NEW |