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

Issue 210160043: Bug 1139082 - Refactor (Closed)

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

Description

Bug 1139082 - Refactor

Patch Set 1 #

Total comments: 53

Patch Set 2 : ekr review fixup #

Patch Set 3 : Adding memset #

Total comments: 1

Patch Set 4 : Actually fixing the bugs #

Total comments: 21

Patch Set 5 : Fixing splice error #

Patch Set 6 : Final pass on review comments. #

Total comments: 1

Patch Set 7 : mercurial is complete ass #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1293 lines, -697 lines) Patch
M external_tests/ssl_gtest/databuffer.h View 1 2 3 4 5 1 chunk +117 lines, -8 lines 0 comments Download
M external_tests/ssl_gtest/manifest.mn View 1 chunk +4 lines, -1 line 0 comments Download
M external_tests/ssl_gtest/ssl_loopback_unittest.cc View 2 chunks +32 lines, -573 lines 0 comments Download
M external_tests/ssl_gtest/test_io.h View 1 1 chunk +19 lines, -12 lines 0 comments Download
M external_tests/ssl_gtest/test_io.cc View 1 4 chunks +60 lines, -36 lines 0 comments Download
A external_tests/ssl_gtest/tls_agent.h View 1 1 chunk +170 lines, -0 lines 0 comments Download
A external_tests/ssl_gtest/tls_agent.cc View 1 2 3 1 chunk +208 lines, -0 lines 0 comments Download
A external_tests/ssl_gtest/tls_connect.h View 1 2 3 4 5 1 chunk +79 lines, -0 lines 0 comments Download
A external_tests/ssl_gtest/tls_connect.cc View 1 1 chunk +170 lines, -0 lines 0 comments Download
A external_tests/ssl_gtest/tls_filter.h View 1 1 chunk +113 lines, -0 lines 0 comments Download
A external_tests/ssl_gtest/tls_filter.cc View 1 2 3 4 5 6 1 chunk +226 lines, -0 lines 0 comments Download
M external_tests/ssl_gtest/tls_parser.h View 1 1 chunk +52 lines, -38 lines 0 comments Download
M external_tests/ssl_gtest/tls_parser.cc View 1 1 chunk +43 lines, -29 lines 0 comments Download

Messages

Total messages: 6
ekr-rietveld
https://codereview.appspot.com/210160043/diff/1/external_tests/ssl_gtest/databuffer.h File external_tests/ssl_gtest/databuffer.h (right): https://codereview.appspot.com/210160043/diff/1/external_tests/ssl_gtest/databuffer.h#newcode22 external_tests/ssl_gtest/databuffer.h:22: explicit DataBuffer(const DataBuffer& other) : data_(nullptr), len_(0) { If ...
9 years, 2 months ago (2015-03-03 22:41:45 UTC) #1
mt
I fixed all the things you pointed out aside from one ugh regarding names (recorder ...
9 years, 2 months ago (2015-03-03 23:45:48 UTC) #2
ekr-rietveld
https://codereview.appspot.com/210160043/diff/1/external_tests/ssl_gtest/databuffer.h File external_tests/ssl_gtest/databuffer.h (right): https://codereview.appspot.com/210160043/diff/1/external_tests/ssl_gtest/databuffer.h#newcode41 external_tests/ssl_gtest/databuffer.h:41: if (index + count > len()) { On 2015/03/03 ...
9 years, 2 months ago (2015-03-04 01:07:04 UTC) #3
mt
All fixed up now. https://codereview.appspot.com/210160043/diff/1/external_tests/ssl_gtest/tls_agent.cc File external_tests/ssl_gtest/tls_agent.cc (right): https://codereview.appspot.com/210160043/diff/1/external_tests/ssl_gtest/tls_agent.cc#newcode135 external_tests/ssl_gtest/tls_agent.cc:135: &chosen_len, sizeof(chosen_len)); On 2015/03/03 22:41:44, ...
9 years, 2 months ago (2015-03-04 19:18:18 UTC) #4
mt
I think that I got the last batch. I'm not sure that we'll ever be ...
9 years, 2 months ago (2015-03-04 20:06:49 UTC) #5
ekr-rietveld
9 years, 2 months ago (2015-03-04 20:20:01 UTC) #6
LGTM

https://codereview.appspot.com/210160043/diff/60001/external_tests/ssl_gtest/...
File external_tests/ssl_gtest/databuffer.h (right):

https://codereview.appspot.com/210160043/diff/60001/external_tests/ssl_gtest/...
external_tests/ssl_gtest/databuffer.h:25: Assign(other.data(), other.len());
On 2015/03/04 01:07:03, ekr-webrtc wrote:
> Aren't you supposed to be checking that &other != this?

Done.

https://codereview.appspot.com/210160043/diff/60001/external_tests/ssl_gtest/...
external_tests/ssl_gtest/databuffer.h:31: return *this;
On 2015/03/04 01:07:03, ekr-webrtc wrote:
> Check that &other != this

Done.

https://codereview.appspot.com/210160043/diff/60001/external_tests/ssl_gtest/...
File external_tests/ssl_gtest/test_io.cc (right):

https://codereview.appspot.com/210160043/diff/60001/external_tests/ssl_gtest/...
external_tests/ssl_gtest/test_io.cc:38: offset_ = std::min(len(), offset_ +
delta);
On 2015/03/04 20:06:49, mt wrote:
> On 2015/03/04 01:07:03, ekr-webrtc wrote:
> > len_
> 
> ...is private.  len() is all that can be seen.

Acknowledged.

https://codereview.appspot.com/210160043/diff/60001/external_tests/ssl_gtest/...
external_tests/ssl_gtest/test_io.cc:356: LOG("Wrote: " << packet);
On 2015/03/04 20:06:49, mt wrote:
> On 2015/03/04 01:07:03, ekr-webrtc wrote:
> > I actually logged logging the Filtered/Wrote
> 
> Done.

Acknowledged.

https://codereview.appspot.com/210160043/diff/60001/external_tests/ssl_gtest/...
external_tests/ssl_gtest/test_io.cc:356: LOG("Wrote: " << packet);
On 2015/03/04 20:06:49, mt wrote:
> On 2015/03/04 01:07:03, ekr-webrtc wrote:
> > I actually logged logging the Filtered/Wrote
> 
> Done.

What I was suggesting was logging the before and after both at the LOG level.
But I can live with this.

https://codereview.appspot.com/210160043/diff/100001/external_tests/ssl_gtest...
File external_tests/ssl_gtest/tls_filter.cc (right):

https://codereview.appspot.com/210160043/diff/100001/external_tests/ssl_gtest...
external_tests/ssl_gtest/tls_filter.cc:162: // Back up and overwrite the (two)
length field(s) that appear: the handshake
s/that appear/that may have changed/?
Sign in to reply to this message.

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