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

Issue 847813005: Updates quic_client_bin.cc to be more user friendly, and support more (Closed)

Created:
5 years, 11 months ago by ramant (doing other things)
Modified:
5 years, 11 months ago
Reviewers:
rjshade, Ryan Hamilton
CC:
chromium-reviews, cbentzel+watch_chromium.org, rjshade
Base URL:
https://chromium.googlesource.com/chromium/src.git@Refactoring_code_for_readability_83493327
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Updates quic_client_bin.cc to be more user friendly, and support more options. Deprecates quic_prober.cc in the process as all (used) functionality now also in quic_client_bin.cc. Uses std::cout/cerr instead of LOG() statements, and is has hopefully more easily parseable output (especially for those off-team) than the previous tool. Removed the "print_response" argument to QuicClient, instead QuicClient has accessor's to the latest response code/headers/body if a user wants to print details (the only user of this feature is quic_client_bin). Examples of output: $ quic_client http://www.google.com/ipz --quiet --host=74.125.137.103 Connected to 74.125.137.103:80 Request succeeded (200). $ quic_client http://www.google.com/invalid --quiet --host=74.125.137.103 Connected to 74.125.196.105:80 Request failed (404). $ quic_client http://www.example.com --host=93.184.216.34 Failed to connect to 93.184.216.34:80. Error: QUIC_CONNECTION_TIMED_OUT $ quic_client http://www.google.com/ipz --host=74.125.137.103 Connected to 173.194.37.84:80 Request: headers: :authority: http://www.google.com :method: GET :path: /ipz :scheme: http body: Response:headers: HTTP/1.1 200 OK Content-Length: 13 content-type: text/html; charset=UTF-8 date: Tue, 30 Dec 2014 20:34:50 GMT server: GFE/2.0 x-google-backends: acdd12:80 x-google-gfe-request-trace: acdd12:80 x-google-gfe-response-code-details-trace: handling_ipz x-google-gfe-service-trace: x-google-service: _internal body: 172.26.18.85 Request succeeded (200). TODO: make --host optional by getting IP Address of URL's host. Merge internal change: 83518478 R=rch@chromium.org Committed: https://crrev.com/48fc029001d5e6956ef1a3db2ffe22b74b493a5b Cr-Commit-Position: refs/heads/master@{#311323}

Patch Set 1 #

Patch Set 2 : Added DumpHeadersToString to dump response headers #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+346 lines, -106 lines) Patch
M net/tools/balsa/balsa_headers.h View 1 1 chunk +8 lines, -5 lines 0 comments Download
M net/tools/balsa/balsa_headers.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download
M net/tools/quic/quic_client.h View 5 chunks +26 lines, -5 lines 0 comments Download
M net/tools/quic/quic_client.cc View 1 7 chunks +47 lines, -25 lines 0 comments Download
M net/tools/quic/quic_client_bin.cc View 4 chunks +192 lines, -67 lines 2 comments Download
M net/tools/quic/quic_client_test.cc View 1 chunk +1 line, -2 lines 0 comments Download
M net/tools/quic/spdy_utils.h View 1 chunk +3 lines, -0 lines 0 comments Download
M net/tools/quic/spdy_utils.cc View 3 chunks +64 lines, -0 lines 2 comments Download
M net/tools/quic/test_tools/quic_test_client.cc View 2 chunks +0 lines, -2 lines 0 comments Download

Messages

Total messages: 10 (2 generated)
ramant (doing other things)
5 years, 11 months ago (2015-01-13 00:13:33 UTC) #1
ramant (doing other things)
https://codereview.chromium.org/847813005/diff/20001/net/tools/quic/quic_client_bin.cc File net/tools/quic/quic_client_bin.cc (right): https://codereview.chromium.org/847813005/diff/20001/net/tools/quic/quic_client_bin.cc#newcode231 net/tools/quic/quic_client_bin.cc:231: net::tools::SpdyUtils::RequestHeadersToSpdy4Headers(headers); rjshade: rch pointed out an issue with RequestHeadersToSpdy4Headers. ...
5 years, 11 months ago (2015-01-13 01:35:47 UTC) #2
rjshade
https://codereview.chromium.org/847813005/diff/20001/net/tools/quic/quic_client_bin.cc File net/tools/quic/quic_client_bin.cc (right): https://codereview.chromium.org/847813005/diff/20001/net/tools/quic/quic_client_bin.cc#newcode231 net/tools/quic/quic_client_bin.cc:231: net::tools::SpdyUtils::RequestHeadersToSpdy4Headers(headers); On 2015/01/13 01:35:47, ramant wrote: > rjshade: rch ...
5 years, 11 months ago (2015-01-13 15:22:36 UTC) #4
Ryan Hamilton
On 2015/01/13 15:22:36, rjshade wrote: > https://codereview.chromium.org/847813005/diff/20001/net/tools/quic/quic_client_bin.cc > File net/tools/quic/quic_client_bin.cc (right): > > https://codereview.chromium.org/847813005/diff/20001/net/tools/quic/quic_client_bin.cc#newcode231 > ...
5 years, 11 months ago (2015-01-13 18:47:14 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/847813005/20001
5 years, 11 months ago (2015-01-13 20:10:51 UTC) #7
ramant (doing other things)
On 2015/01/13 18:47:14, Ryan Hamilton wrote: > On 2015/01/13 15:22:36, rjshade wrote: > > > ...
5 years, 11 months ago (2015-01-13 20:11:15 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 11 months ago (2015-01-13 21:09:41 UTC) #9
commit-bot: I haz the power
5 years, 11 months ago (2015-01-13 21:10:41 UTC) #10
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/48fc029001d5e6956ef1a3db2ffe22b74b493a5b
Cr-Commit-Position: refs/heads/master@{#311323}

Powered by Google App Engine
This is Rietveld 408576698