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
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.
Just ignore that please review thing. I'm going to land with the changes you suggested. ...
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
>
>
Issue 250320043: Bug 1084669
(Closed)
Created 8 years, 9 months ago by mt
Modified 7 years, 8 months ago
Reviewers: ekr, ekr-rietveld
Base URL:
Comments: 7