Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef NET_TEST_BASE_TEST_SERVER_H_ | 5 #ifndef NET_TEST_BASE_TEST_SERVER_H_ |
| 6 #define NET_TEST_BASE_TEST_SERVER_H_ | 6 #define NET_TEST_BASE_TEST_SERVER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 20 matching lines...) Expand all Loading... | |
| 31 typedef std::pair<std::string, std::string> StringPair; | 31 typedef std::pair<std::string, std::string> StringPair; |
| 32 | 32 |
| 33 enum Type { | 33 enum Type { |
| 34 TYPE_FTP, | 34 TYPE_FTP, |
| 35 TYPE_GDATA, | 35 TYPE_GDATA, |
| 36 TYPE_HTTP, | 36 TYPE_HTTP, |
| 37 TYPE_HTTPS, | 37 TYPE_HTTPS, |
| 38 TYPE_SYNC, | 38 TYPE_SYNC, |
| 39 TYPE_TCP_ECHO, | 39 TYPE_TCP_ECHO, |
| 40 TYPE_UDP_ECHO, | 40 TYPE_UDP_ECHO, |
| 41 TYPE_BASIC_AUTH_PROXY, | |
|
wtc
2012/08/22 19:42:27
The enumerators are listed in alphabetical order,
bashi
2012/08/23 09:54:15
Done.
| |
| 41 }; | 42 }; |
| 42 | 43 |
| 43 // Container for various options to control how the HTTPS server is | 44 // Container for various options to control how the HTTPS server is |
| 44 // initialized. | 45 // initialized. |
| 45 struct HTTPSOptions { | 46 struct HTTPSOptions { |
| 46 enum ServerCertificate { | 47 enum ServerCertificate { |
| 47 CERT_OK, | 48 CERT_OK, |
| 48 | 49 |
| 49 // CERT_AUTO causes the testserver to generate a test certificate issued | 50 // CERT_AUTO causes the testserver to generate a test certificate issued |
| 50 // by "Testing CA" (see net/data/ssl/certificates/ocsp-test-root.pem). | 51 // by "Testing CA" (see net/data/ssl/certificates/ocsp-test-root.pem). |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 238 | 239 |
| 239 scoped_ptr<ScopedPortException> allowed_port_; | 240 scoped_ptr<ScopedPortException> allowed_port_; |
| 240 | 241 |
| 241 DISALLOW_COPY_AND_ASSIGN(BaseTestServer); | 242 DISALLOW_COPY_AND_ASSIGN(BaseTestServer); |
| 242 }; | 243 }; |
| 243 | 244 |
| 244 } // namespace net | 245 } // namespace net |
| 245 | 246 |
| 246 #endif // NET_TEST_BASE_TEST_SERVER_H_ | 247 #endif // NET_TEST_BASE_TEST_SERVER_H_ |
| 247 | 248 |
| OLD | NEW |