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

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

Issue 1753453003: Deprecate --gfe2_reloadable_flag_quic_supports_trailers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@115228444
Patch Set: Created 4 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 unified diff | Download patch
« no previous file with comments | « net/tools/quic/end_to_end_test.cc ('k') | net/tools/quic/quic_simple_client_bin.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. 5 // A binary wrapper for QuicClient.
6 // Connects to a host using QUIC, sends a request to the provided URL, and 6 // Connects to a host using QUIC, sends a request to the provided URL, and
7 // displays the response. 7 // displays the response.
8 // 8 //
9 // Some usage examples: 9 // Some usage examples:
10 // 10 //
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 153
154 int main(int argc, char* argv[]) { 154 int main(int argc, char* argv[]) {
155 base::CommandLine::Init(argc, argv); 155 base::CommandLine::Init(argc, argv);
156 base::CommandLine* line = base::CommandLine::ForCurrentProcess(); 156 base::CommandLine* line = base::CommandLine::ForCurrentProcess();
157 const base::CommandLine::StringVector& urls = line->GetArgs(); 157 const base::CommandLine::StringVector& urls = line->GetArgs();
158 158
159 logging::LoggingSettings settings; 159 logging::LoggingSettings settings;
160 settings.logging_dest = logging::LOG_TO_SYSTEM_DEBUG_LOG; 160 settings.logging_dest = logging::LOG_TO_SYSTEM_DEBUG_LOG;
161 CHECK(logging::InitLogging(settings)); 161 CHECK(logging::InitLogging(settings));
162 162
163 FLAGS_quic_supports_trailers = true;
164
165 if (line->HasSwitch("h") || line->HasSwitch("help") || urls.empty()) { 163 if (line->HasSwitch("h") || line->HasSwitch("help") || urls.empty()) {
166 const char* help_str = 164 const char* help_str =
167 "Usage: quic_client [options] <url>\n" 165 "Usage: quic_client [options] <url>\n"
168 "\n" 166 "\n"
169 "<url> with scheme must be provided (e.g. http://www.google.com)\n\n" 167 "<url> with scheme must be provided (e.g. http://www.google.com)\n\n"
170 "Options:\n" 168 "Options:\n"
171 "-h, --help show this help message and exit\n" 169 "-h, --help show this help message and exit\n"
172 "--host=<host> specify the IP address of the hostname to " 170 "--host=<host> specify the IP address of the hostname to "
173 "connect to\n" 171 "connect to\n"
174 "--port=<port> specify the port to connect to\n" 172 "--port=<port> specify the port to connect to\n"
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 return 0; 386 return 0;
389 } else { 387 } else {
390 cout << "Request failed (redirect " << response_code << ")." << endl; 388 cout << "Request failed (redirect " << response_code << ")." << endl;
391 return 1; 389 return 1;
392 } 390 }
393 } else { 391 } else {
394 cerr << "Request failed (" << response_code << ")." << endl; 392 cerr << "Request failed (" << response_code << ")." << endl;
395 return 1; 393 return 1;
396 } 394 }
397 } 395 }
OLDNEW
« no previous file with comments | « net/tools/quic/end_to_end_test.cc ('k') | net/tools/quic/quic_simple_client_bin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698