| Index: net/test/base_test_server.h
|
| diff --git a/net/test/base_test_server.h b/net/test/base_test_server.h
|
| index 173abf7542537ca6c31f29c1d4fa06acb2d25adf..9f1290ebf17401b04271bc4156361fc4982bc67b 100644
|
| --- a/net/test/base_test_server.h
|
| +++ b/net/test/base_test_server.h
|
| @@ -30,6 +30,8 @@ class BaseTestServer {
|
| public:
|
| typedef std::pair<std::string, std::string> StringPair;
|
|
|
| + // Following types represent protocol schemes. See also
|
| + // http://www.iana.org/assignments/uri-schemes.html
|
| enum Type {
|
| TYPE_BASIC_AUTH_PROXY,
|
| TYPE_FTP,
|
| @@ -180,6 +182,11 @@ class BaseTestServer {
|
| const std::vector<StringPair>& text_to_replace,
|
| std::string* replacement_path);
|
|
|
| + static bool UsingSSL(Type type) {
|
| + return type == BaseTestServer::TYPE_HTTPS ||
|
| + type == BaseTestServer::TYPE_WSS;
|
| + }
|
| +
|
| protected:
|
| virtual ~BaseTestServer();
|
| Type type() const { return type_; }
|
|
|