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

Unified Diff: net/tools/quic/quic_simple_server_bin.cc

Issue 1036023002: Move remaining QUIC server files from net/quic/ to net/tools/quic/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: correctly fix cronet Created 5 years, 9 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/tools/quic/quic_simple_server.cc ('k') | net/tools/quic/quic_simple_server_packet_writer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_simple_server_bin.cc
diff --git a/net/quic/quic_server_bin.cc b/net/tools/quic/quic_simple_server_bin.cc
similarity index 91%
rename from net/quic/quic_server_bin.cc
rename to net/tools/quic/quic_simple_server_bin.cc
index 8d6f47a1e1c05ac874828f1fe8807f2382fcf368..10440e27ad5b9d29f836d3e71c35597df73001f7 100644
--- a/net/quic/quic_server_bin.cc
+++ b/net/tools/quic/quic_simple_server_bin.cc
@@ -15,8 +15,8 @@
#include "base/strings/string_number_conversions.h"
#include "net/base/ip_endpoint.h"
#include "net/quic/quic_protocol.h"
-#include "net/quic/quic_server.h"
#include "net/tools/quic/quic_in_memory_cache.h"
+#include "net/tools/quic/quic_simple_server.h"
// The port the quic server will listen on.
int32 FLAGS_port = 6121;
@@ -47,7 +47,7 @@ int main(int argc, char *argv[]) {
if (line->HasSwitch("quic_in_memory_cache_dir")) {
net::tools::QuicInMemoryCache::GetInstance()->InitializeFromDirectory(
- line->GetSwitchValueNative("quic_in_memory_cache_dir"));
+ line->GetSwitchValueASCII("quic_in_memory_cache_dir"));
}
if (line->HasSwitch("port")) {
@@ -61,7 +61,7 @@ int main(int argc, char *argv[]) {
CHECK(net::ParseIPLiteralToNumber("::", &ip));
net::QuicConfig config;
- net::QuicServer server(config, net::QuicSupportedVersions());
+ net::tools::QuicSimpleServer server(config, net::QuicSupportedVersions());
int rc = server.Listen(net::IPEndPoint(ip, FLAGS_port));
if (rc < 0) {
« no previous file with comments | « net/tools/quic/quic_simple_server.cc ('k') | net/tools/quic/quic_simple_server_packet_writer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698