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

Unified Diff: net/tools/testserver/run_testserver.cc

Issue 3034038: GTTF: Move more test server code from net/url_request/url_request_unittest.h (Closed)
Patch Set: hopefully final Created 10 years, 5 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
« no previous file with comments | « net/test/test_server.h ('k') | net/url_request/url_request_unittest.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/testserver/run_testserver.cc
diff --git a/net/tools/testserver/run_testserver.cc b/net/tools/testserver/run_testserver.cc
index dc16a16c52bde03472da2c75d1a30f176a75b6e9..edfecb7445e0fe8e41447a601551cb3432c815c1 100644
--- a/net/tools/testserver/run_testserver.cc
+++ b/net/tools/testserver/run_testserver.cc
@@ -8,7 +8,7 @@
#include "base/command_line.h"
#include "base/logging.h"
#include "base/message_loop.h"
-#include "net/url_request/url_request_unittest.h"
+#include "net/test/test_server.h"
static void PrintUsage() {
printf("run_testserver --doc-root=relpath [--http|--https|--ftp]\n");
@@ -36,10 +36,10 @@ int main(int argc, const char* argv[]) {
port = net::TestServerLauncher::kOKHTTPSPort;
} else if (command_line->HasSwitch("ftp")) {
protocol = "ftp";
- port = kFTPDefaultPort;
+ port = net::kFTPDefaultPort;
} else {
protocol = "http";
- port = kHTTPDefaultPort;
+ port = net::kHTTPDefaultPort;
}
std::wstring doc_root = command_line->GetSwitchValue("doc-root");
if (doc_root.empty()) {
@@ -49,13 +49,13 @@ int main(int argc, const char* argv[]) {
}
// Launch testserver
- scoped_refptr<BaseTestServer> test_server;
+ scoped_refptr<net::BaseTestServer> test_server;
if (protocol == "https") {
- test_server = HTTPSTestServer::CreateGoodServer(doc_root);
+ test_server = net::HTTPSTestServer::CreateGoodServer(doc_root);
} else if (protocol == "ftp") {
- test_server = FTPTestServer::CreateServer(doc_root);
+ test_server = net::FTPTestServer::CreateServer(doc_root);
} else if (protocol == "http") {
- test_server = HTTPTestServer::CreateServer(doc_root);
+ test_server = net::HTTPTestServer::CreateServer(doc_root);
} else {
NOTREACHED();
}
« no previous file with comments | « net/test/test_server.h ('k') | net/url_request/url_request_unittest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698