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

Issue 11633030: Send the ClientHello handshake message. Fix a bug in (Closed)

Created:
8 years ago by wtc
Modified:
7 years, 11 months ago
Reviewers:
Ryan Hamilton
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Send the ClientHello handshake message. Add most of the fields to ClientHello. Add the QuicCryptoClientStream::CryptoConnect method and have QuicClientSession::CryptoConnect call it. Add a unit test for QuicCryptoClientStream to check a ClientHello message by parsing it and checking the fields. Define the value in CryptoTagValueMap as string instead of StringPiece. This causes CryptoTagValueMap to copy the values, which is less efficient but much safer. Merge internal CLs: 39503243, 39692710 R=rch@chromium.org BUG=none TEST=net_unittests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=177102

Patch Set 1 #

Total comments: 8

Patch Set 2 : Fix QuicStreamFactoryTest properly #

Total comments: 17

Patch Set 3 : #

Total comments: 4

Patch Set 4 : Add QuicCryptoClientStreamTest.CryptoConnect #

Total comments: 5

Patch Set 5 : List one parameter per line #

Patch Set 6 : Sync with ToT #

Patch Set 7 : Export QuicClientCryptoConfig #

Patch Set 8 : Define QuicClientCryptoConfig destructor out of line, fix forward declaration #

Patch Set 9 : Upload again #

Patch Set 10 : Remove an extraneous test:: before TestCryptoVisitor #

Unified diffs Side-by-side diffs Delta from patch set Stats (+473 lines, -71 lines) Patch
M net/net.gyp View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M net/quic/crypto/crypto_framer.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M net/quic/crypto/crypto_framer_test.cc View 1 2 3 4 5 4 chunks +20 lines, -32 lines 0 comments Download
M net/quic/crypto/crypto_protocol.h View 1 2 3 4 5 6 7 2 chunks +55 lines, -2 lines 0 comments Download
M net/quic/crypto/crypto_protocol.cc View 1 2 3 4 5 6 7 1 chunk +30 lines, -0 lines 0 comments Download
A net/quic/crypto/crypto_utils.h View 1 2 3 4 5 6 7 1 chunk +35 lines, -0 lines 0 comments Download
A net/quic/crypto/crypto_utils.cc View 1 2 1 chunk +76 lines, -0 lines 0 comments Download
M net/quic/quic_client_session.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M net/quic/quic_client_session.cc View 1 2 3 4 5 1 chunk +5 lines, -3 lines 0 comments Download
M net/quic/quic_client_session_test.cc View 1 2 3 4 5 3 chunks +3 lines, -2 lines 0 comments Download
M net/quic/quic_crypto_client_stream.h View 1 2 3 4 5 2 chunks +10 lines, -0 lines 0 comments Download
M net/quic/quic_crypto_client_stream.cc View 1 2 3 4 5 2 chunks +13 lines, -0 lines 0 comments Download
M net/quic/quic_crypto_client_stream_test.cc View 1 2 3 4 5 6 7 8 9 3 chunks +156 lines, -2 lines 0 comments Download
M net/quic/quic_crypto_stream_test.cc View 1 2 3 4 5 3 chunks +12 lines, -22 lines 0 comments Download
M net/quic/quic_stream_factory_test.cc View 1 2 3 4 5 2 chunks +7 lines, -4 lines 0 comments Download
M net/quic/test_tools/quic_test_utils.h View 1 2 3 4 5 3 chunks +8 lines, -2 lines 0 comments Download
M net/quic/test_tools/quic_test_utils.cc View 1 2 3 4 5 3 chunks +39 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
wtc
rch: if my questions are unclear, I'll be happy to explain them in person. Thanks. ...
8 years ago (2012-12-20 00:33:08 UTC) #1
Ryan Hamilton
https://codereview.chromium.org/11633030/diff/1/net/quic/quic_client_session.cc File net/quic/quic_client_session.cc (right): https://codereview.chromium.org/11633030/diff/1/net/quic/quic_client_session.cc#newcode58 net/quic/quic_client_session.cc:58: } On 2012/12/20 00:33:08, wtc wrote: > > Do ...
8 years ago (2012-12-20 18:51:06 UTC) #2
wtc
Please review patch set 2. I hope this is closer to what you have in ...
8 years ago (2012-12-22 04:21:51 UTC) #3
Ryan Hamilton
https://codereview.chromium.org/11633030/diff/7001/net/quic/crypto/crypto_framer_test.cc File net/quic/crypto/crypto_framer_test.cc (right): https://codereview.chromium.org/11633030/diff/7001/net/quic/crypto/crypto_framer_test.cc#newcode216 net/quic/crypto/crypto_framer_test.cc:216: EXPECT_EQ("abcdef",visitor.messages_[0].tag_value_map[0x12345678]); nit: missing space. https://codereview.chromium.org/11633030/diff/7001/net/quic/crypto/crypto_framer_test.cc#newcode261 net/quic/crypto/crypto_framer_test.cc:261: EXPECT_EQ("abcdef",visitor.messages_[0].tag_value_map[0x12345678]); nit: missing ...
8 years ago (2012-12-22 22:31:32 UTC) #4
wtc
Please review patch set 3. Thank you for your thoughtful review comments. I made all ...
7 years, 11 months ago (2013-01-15 03:57:59 UTC) #5
Ryan Hamilton
lgtm https://codereview.chromium.org/11633030/diff/19001/net/quic/crypto/crypto_protocol.cc File net/quic/crypto/crypto_protocol.cc (right): https://codereview.chromium.org/11633030/diff/19001/net/quic/crypto/crypto_protocol.cc#newcode34 net/quic/crypto/crypto_protocol.cc:34: idle_connection_state_lifetime = QuicTime::Delta::FromMilliseconds(300000); On 2013/01/15 03:57:59, wtc wrote: ...
7 years, 11 months ago (2013-01-15 04:27:41 UTC) #6
wtc
Please review patch set 4, which has the new QuicCryptoClientStreamTest that you suggested. Thanks. You ...
7 years, 11 months ago (2013-01-15 23:11:03 UTC) #7
Ryan Hamilton
LGTM, modulo the style question. Can you ping jar (since he sits next to you). ...
7 years, 11 months ago (2013-01-16 00:29:36 UTC) #8
wtc
https://codereview.chromium.org/11633030/diff/31001/net/quic/test_tools/quic_test_utils.h File net/quic/test_tools/quic_test_utils.h (right): https://codereview.chromium.org/11633030/diff/31001/net/quic/test_tools/quic_test_utils.h#newcode157 net/quic/test_tools/quic_test_utils.h:157: QuicConnectionHelperInterface* helper); On 2013/01/16 00:29:36, Ryan Hamilton wrote: > ...
7 years, 11 months ago (2013-01-16 00:43:49 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wtc@chromium.org/11633030/57005
7 years, 11 months ago (2013-01-16 03:42:40 UTC) #10
commit-bot: I haz the power
7 years, 11 months ago (2013-01-16 08:51:19 UTC) #11
Message was sent while issue was closed.
Change committed as 177102

Powered by Google App Engine
This is Rietveld 408576698