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

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

Issue 2611613003: Add quic_logging (Closed)
Patch Set: fix failed test? Created 3 years, 11 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/quic_client_base.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. 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 24 matching lines...) Expand all
35 // 35 //
36 // Try to connect to a host which does not speak QUIC: 36 // Try to connect to a host which does not speak QUIC:
37 // Get IP address of the www.example.com 37 // Get IP address of the www.example.com
38 // IP=`dig www.example.com +short | head -1` 38 // IP=`dig www.example.com +short | head -1`
39 // quic_client http://www.example.com --host=${IP} 39 // quic_client http://www.example.com --host=${IP}
40 40
41 #include <iostream> 41 #include <iostream>
42 42
43 #include "base/at_exit.h" 43 #include "base/at_exit.h"
44 #include "base/command_line.h" 44 #include "base/command_line.h"
45 #include "base/logging.h"
46 #include "base/message_loop/message_loop.h" 45 #include "base/message_loop/message_loop.h"
47 #include "net/base/net_errors.h" 46 #include "net/base/net_errors.h"
48 #include "net/base/privacy_mode.h" 47 #include "net/base/privacy_mode.h"
49 #include "net/cert/cert_verifier.h" 48 #include "net/cert/cert_verifier.h"
50 #include "net/cert/multi_log_ct_verifier.h" 49 #include "net/cert/multi_log_ct_verifier.h"
51 #include "net/http/transport_security_state.h" 50 #include "net/http/transport_security_state.h"
52 #include "net/quic/chromium/crypto/proof_verifier_chromium.h" 51 #include "net/quic/chromium/crypto/proof_verifier_chromium.h"
53 #include "net/quic/core/quic_flags.h" 52 #include "net/quic/core/quic_flags.h"
54 #include "net/quic/core/quic_packets.h" 53 #include "net/quic/core/quic_packets.h"
55 #include "net/quic/core/quic_server_id.h" 54 #include "net/quic/core/quic_server_id.h"
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 return 0; 357 return 0;
359 } else { 358 } else {
360 cout << "Request failed (redirect " << response_code << ")." << endl; 359 cout << "Request failed (redirect " << response_code << ")." << endl;
361 return 1; 360 return 1;
362 } 361 }
363 } else { 362 } else {
364 cerr << "Request failed (" << response_code << ")." << endl; 363 cerr << "Request failed (" << response_code << ")." << endl;
365 return 1; 364 return 1;
366 } 365 }
367 } 366 }
OLDNEW
« no previous file with comments | « net/tools/quic/quic_client_base.cc ('k') | net/tools/quic/quic_client_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698