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

Side by Side Diff: net/tools/quic/quic_client_bin.cc

Issue 82913011: LOG(INFO) tidying in net/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: revert dns_fuzz_stub changes Created 7 years 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/tools/quic/quic_client.cc ('k') | net/tools/quic/quic_client_session.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 // A binary wrapper for QuicClient. Connects to --hostname via --address 5 // A binary wrapper for QuicClient. Connects to --hostname via --address
6 // on --port and requests URLs specified on the command line. 6 // on --port and requests URLs specified on the command line.
7 // 7 //
8 // For example: 8 // For example:
9 // quic_client --address=127.0.0.1 --port=6122 --hostname=www.google.com 9 // quic_client --address=127.0.0.1 --port=6122 --hostname=www.google.com
10 // http://www.google.com/index.html http://www.google.com/favicon.ico 10 // http://www.google.com/index.html http://www.google.com/favicon.ico
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 if (base::StringToInt(line->GetSwitchValueASCII("port"), &port)) { 43 if (base::StringToInt(line->GetSwitchValueASCII("port"), &port)) {
44 FLAGS_port = port; 44 FLAGS_port = port;
45 } 45 }
46 } 46 }
47 if (line->HasSwitch("address")) { 47 if (line->HasSwitch("address")) {
48 FLAGS_address = line->GetSwitchValueASCII("address"); 48 FLAGS_address = line->GetSwitchValueASCII("address");
49 } 49 }
50 if (line->HasSwitch("hostname")) { 50 if (line->HasSwitch("hostname")) {
51 FLAGS_hostname = line->GetSwitchValueASCII("hostname"); 51 FLAGS_hostname = line->GetSwitchValueASCII("hostname");
52 } 52 }
53 LOG(INFO) << "server port: " << FLAGS_port 53 VLOG(0) << "server port: " << FLAGS_port
54 << " address: " << FLAGS_address 54 << " address: " << FLAGS_address
55 << " hostname: " << FLAGS_hostname; 55 << " hostname: " << FLAGS_hostname;
56 56
57 base::AtExitManager exit_manager; 57 base::AtExitManager exit_manager;
58 58
59 net::IPAddressNumber addr; 59 net::IPAddressNumber addr;
60 CHECK(net::ParseIPLiteralToNumber(FLAGS_address, &addr)); 60 CHECK(net::ParseIPLiteralToNumber(FLAGS_address, &addr));
61 // TODO(rjshade): Set version on command line. 61 // TODO(rjshade): Set version on command line.
62 net::tools::QuicClient client( 62 net::tools::QuicClient client(
63 net::IPEndPoint(addr, FLAGS_port), FLAGS_hostname, 63 net::IPEndPoint(addr, FLAGS_port), FLAGS_hostname,
64 net::QuicSupportedVersions(), true); 64 net::QuicSupportedVersions(), true);
65 65
66 client.Initialize(); 66 client.Initialize();
67 67
68 if (!client.Connect()) return 1; 68 if (!client.Connect()) return 1;
69 69
70 client.SendRequestsAndWaitForResponse(line->GetArgs()); 70 client.SendRequestsAndWaitForResponse(line->GetArgs());
71 return 0; 71 return 0;
72 } 72 }
OLDNEW
« no previous file with comments | « net/tools/quic/quic_client.cc ('k') | net/tools/quic/quic_client_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698