Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(314)

Issue 250320043: Bug 1084669 (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
8 years, 9 months ago by mt
Modified:
7 years, 8 months ago
Reviewers:
ekr, ekr-rietveld
Visibility:
Public.

Description

It looks like I'm going to need this to do multiple certificates on WebRTC properly, so I rebased it this morning.

Patch Set 1 #

Total comments: 7
Unified diffs Side-by-side diffs Delta from patch set Stats (+370 lines, -90 lines) Patch
M external_tests/ssl_gtest/ssl_loopback_unittest.cc View 2 chunks +45 lines, -21 lines 0 comments Download
M external_tests/ssl_gtest/tls_agent.h View 3 chunks +45 lines, -40 lines 1 comment Download
M external_tests/ssl_gtest/tls_agent.cc View 5 chunks +138 lines, -19 lines 5 comments Download
M external_tests/ssl_gtest/tls_connect.h View 1 chunk +9 lines, -2 lines 1 comment Download
M external_tests/ssl_gtest/tls_connect.cc View 4 chunks +24 lines, -5 lines 0 comments Download
M lib/ssl/ssl.h View 1 chunk +19 lines, -2 lines 0 comments Download
M lib/ssl/ssl.def View 1 chunk +6 lines, -0 lines 0 comments Download
M lib/ssl/ssl3con.c View 14 chunks +21 lines, -1 line 0 comments Download
M lib/ssl/ssl3ext.c View 1 chunk +5 lines, -0 lines 0 comments Download
M lib/ssl/sslimpl.h View 1 chunk +2 lines, -0 lines 0 comments Download
M lib/ssl/sslinfo.c View 1 chunk +36 lines, -0 lines 0 comments Download
M lib/ssl/sslsecur.c View 1 chunk +3 lines, -0 lines 0 comments Download
M lib/ssl/sslt.h View 1 chunk +17 lines, -0 lines 0 comments Download

Messages

Total messages: 4
ekr-rietveld
LGTM https://codereview.appspot.com/250320043/diff/1/external_tests/ssl_gtest/tls_agent.cc File external_tests/ssl_gtest/tls_agent.cc (right): https://codereview.appspot.com/250320043/diff/1/external_tests/ssl_gtest/tls_agent.cc#newcode161 external_tests/ssl_gtest/tls_agent.cc:161: { { goes on the opening line. https://codereview.appspot.com/250320043/diff/1/external_tests/ssl_gtest/tls_agent.cc#newcode237 ...
8 years, 9 months ago (2015-07-08 21:42:54 UTC) #1
ekr-rietveld
IMPORTANT: Per MT's comments, I did not check the code, just the tests
8 years, 9 months ago (2015-07-08 21:48:17 UTC) #2
mt
https://codereview.appspot.com/250320043/diff/1/external_tests/ssl_gtest/tls_agent.cc File external_tests/ssl_gtest/tls_agent.cc (right): https://codereview.appspot.com/250320043/diff/1/external_tests/ssl_gtest/tls_agent.cc#newcode237 external_tests/ssl_gtest/tls_agent.cc:237: // A version of 0 is invalid and indicates ...
8 years, 9 months ago (2015-07-09 19:27:57 UTC) #3
mt
8 years, 9 months ago (2015-07-09 19:39:58 UTC) #4
Just ignore that please review thing.  I'm going to land with the
changes you suggested.

On 9 July 2015 at 12:27,  <martin.thomson@gmail.com> wrote:
> Reviewers: ekr, ekr-webrtc,
>
>
>
https://codereview.appspot.com/250320043/diff/1/external_tests/ssl_gtest/tls_...
> File external_tests/ssl_gtest/tls_agent.cc (right):
>
>
https://codereview.appspot.com/250320043/diff/1/external_tests/ssl_gtest/tls_...
> external_tests/ssl_gtest/tls_agent.cc:237: // A version of 0 is invalid
> and indicates no expectation.
> On 2015/07/08 21:42:54, ekr-webrtc wrote:
>>
>> The idea here is that you don't always know the version so you're
>
> storing it for
>>
>> later? Can you make these comments clearer.
>
>
> Yep.
>
>> Minor note:
>> You could remove this else y doing
>
>
>> if (!expected_version_) { expected_version_ = info.protocolVersion;}
>> EXPECT_EQ(expected_version_, info.protocolVersion);
>
>
> Done.
>
>> Finally, why isn't this ASSERT_EQ()
>
>
> EXPECT_EQ causes the test to fail.  ASSERT_EQ causes the test to fail
> AND it stops.  Wan-Teh suggested that EXPECT_EQ be used unless we have
> good cause to stop going.  I wrote this patch before that recommendation
> and forgot to update some of the ASSERT_* instances.  We have little
> cause to use ASSERT_* here.  There are few places where failure needs to
> be immediately fatal.
>
>
https://codereview.appspot.com/250320043/diff/1/external_tests/ssl_gtest/tls_...
> external_tests/ssl_gtest/tls_agent.cc:267:
> ASSERT_EQ(expect_falsestart_hook_ && !expect_resumption_,
> On 2015/07/08 21:42:54, ekr-webrtc wrote:
>>
>> It seems like expect_falsestart_hook_ doesn't actually mean that.
>
> Perhaps rename
>>
>> it "enable_falsestart_"
>
>
> falsestart_enabled_ I think works.
>
> Description:
> It looks like I'm going to need this to do multiple certificates on
> WebRTC properly, so I rebased it this morning.
>
> Please review this at https://codereview.appspot.com/250320043/
>
> Affected files (+370, -90 lines):
>   M external_tests/ssl_gtest/ssl_loopback_unittest.cc
>   M external_tests/ssl_gtest/tls_agent.h
>   M external_tests/ssl_gtest/tls_agent.cc
>   M external_tests/ssl_gtest/tls_connect.h
>   M external_tests/ssl_gtest/tls_connect.cc
>   M lib/ssl/ssl.h
>   M lib/ssl/ssl.def
>   M lib/ssl/ssl3con.c
>   M lib/ssl/ssl3ext.c
>   M lib/ssl/sslimpl.h
>   M lib/ssl/sslinfo.c
>   M lib/ssl/sslsecur.c
>   M lib/ssl/sslt.h
>
>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b