OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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> |
11 | 11 |
(...skipping 20 matching lines...) Expand all Loading... |
32 | 32 |
33 // Following types represent protocol schemes. See also | 33 // Following types represent protocol schemes. See also |
34 // http://www.iana.org/assignments/uri-schemes.html | 34 // http://www.iana.org/assignments/uri-schemes.html |
35 enum Type { | 35 enum Type { |
36 TYPE_BASIC_AUTH_PROXY, | 36 TYPE_BASIC_AUTH_PROXY, |
37 TYPE_FTP, | 37 TYPE_FTP, |
38 TYPE_HTTP, | 38 TYPE_HTTP, |
39 TYPE_HTTPS, | 39 TYPE_HTTPS, |
40 TYPE_WS, | 40 TYPE_WS, |
41 TYPE_WSS, | 41 TYPE_WSS, |
42 TYPE_SYNC, | |
43 TYPE_TCP_ECHO, | 42 TYPE_TCP_ECHO, |
44 TYPE_UDP_ECHO, | 43 TYPE_UDP_ECHO, |
45 }; | 44 }; |
46 | 45 |
47 // Container for various options to control how the HTTPS or WSS server is | 46 // Container for various options to control how the HTTPS or WSS server is |
48 // initialized. | 47 // initialized. |
49 struct SSLOptions { | 48 struct SSLOptions { |
50 enum ServerCertificate { | 49 enum ServerCertificate { |
51 CERT_OK, | 50 CERT_OK, |
52 | 51 |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 | 250 |
252 scoped_ptr<ScopedPortException> allowed_port_; | 251 scoped_ptr<ScopedPortException> allowed_port_; |
253 | 252 |
254 DISALLOW_COPY_AND_ASSIGN(BaseTestServer); | 253 DISALLOW_COPY_AND_ASSIGN(BaseTestServer); |
255 }; | 254 }; |
256 | 255 |
257 } // namespace net | 256 } // namespace net |
258 | 257 |
259 #endif // NET_TEST_BASE_TEST_SERVER_H_ | 258 #endif // NET_TEST_BASE_TEST_SERVER_H_ |
260 | 259 |
OLD | NEW |