Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(716)

Unified Diff: net/test/local_test_server.cc

Issue 10878003: Refactoring for merging WebSocket test server to net::TestServer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 5 Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/test/local_test_server.cc
diff --git a/net/test/local_test_server.cc b/net/test/local_test_server.cc
index e67d4f950df380d833d3503203ed898d24fedfb0..87795f8a4da9cbb9e148659199b9b3c3ac6b1ee5 100644
--- a/net/test/local_test_server.cc
+++ b/net/test/local_test_server.cc
@@ -65,9 +65,10 @@ LocalTestServer::LocalTestServer(Type type,
NOTREACHED();
}
-LocalTestServer::LocalTestServer(const HTTPSOptions& https_options,
+LocalTestServer::LocalTestServer(Type type,
+ const SSLOptions& ssl_options,
const FilePath& document_root)
- : BaseTestServer(https_options) {
+ : BaseTestServer(type, ssl_options) {
if (!Init(document_root))
NOTREACHED();
}
@@ -152,9 +153,9 @@ bool LocalTestServer::Init(const FilePath& document_root) {
return false;
SetResourcePath(src_dir.Append(document_root),
src_dir.AppendASCII("net")
- .AppendASCII("data")
- .AppendASCII("ssl")
- .AppendASCII("certificates"));
+ .AppendASCII("data")
+ .AppendASCII("ssl")
+ .AppendASCII("certificates"));
return true;
}
@@ -226,6 +227,10 @@ bool LocalTestServer::AddCommandLineArguments(CommandLine* command_line) const {
case TYPE_HTTPS:
// The default type is HTTP, no argument required.
break;
+ case TYPE_WS:
+ case TYPE_WSS:
+ // TODO(toyoshim): Handle correctly.
Ryan Sleevi 2012/08/22 09:21:16 nit: BUG # here?
Takashi Toyoshima 2012/08/22 13:39:16 Done.
+ break;
case TYPE_FTP:
command_line->AppendArg("-f");
break;

Powered by Google App Engine
This is Rietveld 408576698