OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2004 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/base/autodetectproxy.h" | 11 #include "webrtc/base/autodetectproxy.h" |
12 #include "webrtc/base/gunit.h" | 12 #include "webrtc/base/gunit.h" |
13 #include "webrtc/base/httpcommon.h" | 13 #include "webrtc/base/httpcommon.h" |
14 #include "webrtc/base/httpcommon-inl.h" | 14 #include "webrtc/base/httpcommon-inl.h" |
15 #include "webrtc/test/testsupport/gtest_disable.h" | |
16 | 15 |
17 namespace rtc { | 16 namespace rtc { |
18 | 17 |
19 static const char kUserAgent[] = ""; | 18 static const char kUserAgent[] = ""; |
20 static const char kPath[] = "/"; | 19 static const char kPath[] = "/"; |
21 static const char kHost[] = "relay.google.com"; | 20 static const char kHost[] = "relay.google.com"; |
22 static const uint16_t kPort = 443; | 21 static const uint16_t kPort = 443; |
23 static const bool kSecure = true; | 22 static const bool kSecure = true; |
24 // At most, AutoDetectProxy should take ~6 seconds. Each connect step is | 23 // At most, AutoDetectProxy should take ~6 seconds. Each connect step is |
25 // allotted 2 seconds, with the initial resolution + connect given an | 24 // allotted 2 seconds, with the initial resolution + connect given an |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 ASSERT_TRUE(Create(kUserAgent, | 122 ASSERT_TRUE(Create(kUserAgent, |
124 kPath, | 123 kPath, |
125 kHost, | 124 kHost, |
126 kPort, | 125 kPort, |
127 kSecure, | 126 kSecure, |
128 true)); | 127 true)); |
129 ASSERT_TRUE(Run(kTimeoutMs)); | 128 ASSERT_TRUE(Run(kTimeoutMs)); |
130 } | 129 } |
131 | 130 |
132 } // namespace rtc | 131 } // namespace rtc |
OLD | NEW |