| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 // The base class of Test server implementation. | 29 // The base class of Test server implementation. |
| 30 class BaseTestServer { | 30 class BaseTestServer { |
| 31 public: | 31 public: |
| 32 typedef std::pair<std::string, std::string> StringPair; | 32 typedef std::pair<std::string, std::string> StringPair; |
| 33 | 33 |
| 34 enum Type { | 34 enum Type { |
| 35 TYPE_FTP, | 35 TYPE_FTP, |
| 36 TYPE_GDATA, | 36 TYPE_GDATA, |
| 37 TYPE_HTTP, | 37 TYPE_HTTP, |
| 38 TYPE_HTTPS, | 38 TYPE_HTTPS, |
| 39 TYPE_SAFEBROWSING, |
| 39 TYPE_SYNC, | 40 TYPE_SYNC, |
| 40 TYPE_TCP_ECHO, | 41 TYPE_TCP_ECHO, |
| 41 TYPE_UDP_ECHO, | 42 TYPE_UDP_ECHO, |
| 42 }; | 43 }; |
| 43 | 44 |
| 44 // Container for various options to control how the HTTPS server is | 45 // Container for various options to control how the HTTPS server is |
| 45 // initialized. | 46 // initialized. |
| 46 struct HTTPSOptions { | 47 struct HTTPSOptions { |
| 47 enum ServerCertificate { | 48 enum ServerCertificate { |
| 48 CERT_OK, | 49 CERT_OK, |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 bool log_to_console_; | 224 bool log_to_console_; |
| 224 | 225 |
| 225 scoped_ptr<ScopedPortException> allowed_port_; | 226 scoped_ptr<ScopedPortException> allowed_port_; |
| 226 | 227 |
| 227 DISALLOW_COPY_AND_ASSIGN(BaseTestServer); | 228 DISALLOW_COPY_AND_ASSIGN(BaseTestServer); |
| 228 }; | 229 }; |
| 229 | 230 |
| 230 } // namespace net | 231 } // namespace net |
| 231 | 232 |
| 232 #endif // NET_TEST_BASE_TEST_SERVER_H_ | 233 #endif // NET_TEST_BASE_TEST_SERVER_H_ |
| 233 | |
| OLD | NEW |