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

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

Issue 2600183002: Clean up quic_simple_client_bin.cc to sync with quic_client_bin.cc (Closed)
Patch Set: Rebase Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | net/tools/quic/quic_simple_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_client_bin.cc
diff --git a/net/tools/quic/quic_client_bin.cc b/net/tools/quic/quic_client_bin.cc
index 2f4ac4d804d8987f1d473ef8d5cfefcc1b9da9fb..31a1d69470b1fc92609082a02e297545f6fd9025 100644
--- a/net/tools/quic/quic_client_bin.cc
+++ b/net/tools/quic/quic_client_bin.cc
@@ -53,7 +53,6 @@
#include "net/quic/core/quic_flags.h"
#include "net/quic/core/quic_packets.h"
#include "net/quic/core/quic_server_id.h"
-#include "net/quic/core/quic_utils.h"
#include "net/quic/platform/api/quic_socket_address.h"
#include "net/quic/platform/api/quic_str_cat.h"
#include "net/quic/platform/api/quic_text_utils.h"
@@ -70,13 +69,13 @@ using net::CTVerifier;
using net::MultiLogCTVerifier;
using net::ProofVerifier;
using net::ProofVerifierChromium;
+using net::QuicTextUtils;
using net::SpdyHeaderBlock;
using net::TransportSecurityState;
-using net::QuicTextUtils;
using std::cout;
using std::cerr;
-using std::string;
using std::endl;
+using std::string;
// The IP or hostname the quic client will connect to.
string FLAGS_host = "";
@@ -260,7 +259,6 @@ int main(int argc, char* argv[]) {
std::unique_ptr<CertVerifier> cert_verifier(CertVerifier::CreateDefault());
std::unique_ptr<TransportSecurityState> transport_security_state(
new TransportSecurityState);
- transport_security_state.reset(new TransportSecurityState);
std::unique_ptr<CTVerifier> ct_verifier(new MultiLogCTVerifier());
std::unique_ptr<CTPolicyEnforcer> ct_policy_enforcer(new CTPolicyEnforcer());
std::unique_ptr<ProofVerifier> proof_verifier;
@@ -321,6 +319,7 @@ int main(int argc, char* argv[]) {
// Make sure to store the response, for later output.
client.set_store_response(true);
+
// Send the request.
client.SendRequestAndWaitForResponse(header_block, body, /*fin=*/true);
« no previous file with comments | « no previous file | net/tools/quic/quic_simple_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698