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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 170 | 170 |
| 171 GURL GetURL(const std::string& path) const; | 171 GURL GetURL(const std::string& path) const; |
| 172 | 172 |
| 173 GURL GetURLWithUser(const std::string& path, | 173 GURL GetURLWithUser(const std::string& path, |
| 174 const std::string& user) const; | 174 const std::string& user) const; |
| 175 | 175 |
| 176 GURL GetURLWithUserAndPassword(const std::string& path, | 176 GURL GetURLWithUserAndPassword(const std::string& path, |
| 177 const std::string& user, | 177 const std::string& user, |
| 178 const std::string& password) const; | 178 const std::string& password) const; |
| 179 | 179 |
| 180 // Returns a URL which starts with not specified scheme, but http or https. | |
| 181 // GetURL() returns URL which starts with corresponding scheme as specified. | |
| 182 // TYPE_WS or TYPE_WSS serves HTTP or HTTPS simultaneously, and http:// like | |
|
Jay Civelli
2012/10/10 15:39:46
Did you mean respectively instead of simultaneousl
Takashi Toyoshima
2012/10/11 04:53:21
TYPE_WS serves WS and HTTP simultaneously.
TYPE_WS
| |
| 183 // URL is often used for providing JavaScripts that contain actual tests. | |
|
Ryan Sleevi
2012/10/10 17:59:57
The comment and name of this method are very confu
Takashi Toyoshima
2012/10/11 05:53:28
Thank you for advice.
GURL::Replacements looks use
| |
| 184 GURL GetAlternateURL(const std::string& path) const; | |
| 185 | |
| 180 static bool GetFilePathWithReplacements( | 186 static bool GetFilePathWithReplacements( |
| 181 const std::string& original_path, | 187 const std::string& original_path, |
| 182 const std::vector<StringPair>& text_to_replace, | 188 const std::vector<StringPair>& text_to_replace, |
| 183 std::string* replacement_path); | 189 std::string* replacement_path); |
| 184 | 190 |
| 185 static bool UsingSSL(Type type) { | 191 static bool UsingSSL(Type type) { |
| 186 return type == BaseTestServer::TYPE_HTTPS || | 192 return type == BaseTestServer::TYPE_HTTPS || |
| 187 type == BaseTestServer::TYPE_WSS; | 193 type == BaseTestServer::TYPE_WSS; |
| 188 } | 194 } |
| 189 | 195 |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 249 | 255 |
| 250 scoped_ptr<ScopedPortException> allowed_port_; | 256 scoped_ptr<ScopedPortException> allowed_port_; |
| 251 | 257 |
| 252 DISALLOW_COPY_AND_ASSIGN(BaseTestServer); | 258 DISALLOW_COPY_AND_ASSIGN(BaseTestServer); |
| 253 }; | 259 }; |
| 254 | 260 |
| 255 } // namespace net | 261 } // namespace net |
| 256 | 262 |
| 257 #endif // NET_TEST_BASE_TEST_SERVER_H_ | 263 #endif // NET_TEST_BASE_TEST_SERVER_H_ |
| 258 | 264 |
| OLD | NEW |