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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 static const SocketAddress kRelaySslTcpExtAddr("99.99.99.3", 5005); | 58 static const SocketAddress kRelaySslTcpExtAddr("99.99.99.3", 5005); |
59 static const SocketAddress kTurnUdpIntAddr("99.99.99.4", 3478); | 59 static const SocketAddress kTurnUdpIntAddr("99.99.99.4", 3478); |
60 static const SocketAddress kTurnTcpIntAddr("99.99.99.5", 3478); | 60 static const SocketAddress kTurnTcpIntAddr("99.99.99.5", 3478); |
61 static const SocketAddress kTurnUdpExtAddr("99.99.99.6", 0); | 61 static const SocketAddress kTurnUdpExtAddr("99.99.99.6", 0); |
62 | 62 |
63 // Minimum and maximum port for port range tests. | 63 // Minimum and maximum port for port range tests. |
64 static const int kMinPort = 10000; | 64 static const int kMinPort = 10000; |
65 static const int kMaxPort = 10099; | 65 static const int kMaxPort = 10099; |
66 | 66 |
67 // Based on ICE_UFRAG_LENGTH | 67 // Based on ICE_UFRAG_LENGTH |
68 static const char kIceUfrag0[] = "TESTICEUFRAG0000"; | 68 static const char kIceUfrag0[] = "UF00"; |
69 // Based on ICE_PWD_LENGTH | 69 // Based on ICE_PWD_LENGTH |
70 static const char kIcePwd0[] = "TESTICEPWD00000000000000"; | 70 static const char kIcePwd0[] = "TESTICEPWD00000000000000"; |
71 | 71 |
72 static const char kContentName[] = "test content"; | 72 static const char kContentName[] = "test content"; |
73 | 73 |
74 static const int kDefaultAllocationTimeout = 1000; | 74 static const int kDefaultAllocationTimeout = 1000; |
75 static const char kTurnUsername[] = "test"; | 75 static const char kTurnUsername[] = "test"; |
76 static const char kTurnPassword[] = "test"; | 76 static const char kTurnPassword[] = "test"; |
77 | 77 |
78 namespace cricket { | 78 namespace cricket { |
(...skipping 1412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1491 EXPECT_EQ(1, port->component()); | 1491 EXPECT_EQ(1, port->component()); |
1492 EXPECT_EQ(kIceUfrag0, port->username_fragment()); | 1492 EXPECT_EQ(kIceUfrag0, port->username_fragment()); |
1493 EXPECT_EQ(kIcePwd0, port->password()); | 1493 EXPECT_EQ(kIcePwd0, port->password()); |
1494 } | 1494 } |
1495 for (const cricket::Candidate& candidate : candidates) { | 1495 for (const cricket::Candidate& candidate : candidates) { |
1496 EXPECT_EQ(1, candidate.component()); | 1496 EXPECT_EQ(1, candidate.component()); |
1497 EXPECT_EQ(kIceUfrag0, candidate.username()); | 1497 EXPECT_EQ(kIceUfrag0, candidate.username()); |
1498 EXPECT_EQ(kIcePwd0, candidate.password()); | 1498 EXPECT_EQ(kIcePwd0, candidate.password()); |
1499 } | 1499 } |
1500 } | 1500 } |
OLD | NEW |