summaryrefslogtreecommitdiffstats
path: root/net/test
diff options
context:
space:
mode:
Diffstat (limited to 'net/test')
-rw-r--r--net/test/test_server.cc3
-rw-r--r--net/test/test_server.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/net/test/test_server.cc b/net/test/test_server.cc
index 9a89cc9..0e8c461 100644
--- a/net/test/test_server.cc
+++ b/net/test/test_server.cc
@@ -191,6 +191,7 @@ std::string TestServer::GetScheme() const {
case TYPE_FTP:
return "ftp";
case TYPE_HTTP:
+ case TYPE_SYNC:
return "http";
case TYPE_HTTPS:
return "https";
@@ -330,6 +331,8 @@ bool TestServer::AddCommandLineArguments(CommandLine* command_line) const {
if (type_ == TYPE_FTP) {
command_line->AppendArg("-f");
+ } else if (type_ == TYPE_SYNC) {
+ command_line->AppendArg("--sync");
} else if (type_ == TYPE_HTTPS) {
FilePath certificate_path(certificates_dir_);
certificate_path = certificate_path.Append(
diff --git a/net/test/test_server.h b/net/test/test_server.h
index b639094..f819365 100644
--- a/net/test/test_server.h
+++ b/net/test/test_server.h
@@ -42,6 +42,7 @@ class TestServer {
TYPE_FTP,
TYPE_HTTP,
TYPE_HTTPS,
+ TYPE_SYNC,
};
// Container for various options to control how the HTTPS server is