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

Issue 4130005: Cleanup style nits in SSLClientSocketTest (Closed)

Created:
10 years, 1 month ago by Ryan Sleevi
Modified:
9 years, 7 months ago
Reviewers:
wtc
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, Paweł Hajdan Jr., pam+watch_chromium.org, ben+cc_chromium.org
Visibility:
Public.

Description

Cleanup style nits in SSLClientSocketTest R=wtc BUG=none TEST=SSLClientSocketTest* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=65626

Patch Set 1 : #

Total comments: 4

Patch Set 2 : Fix two tests that broke - the existing comments implied one behaviour, but another was expected #

Total comments: 2

Patch Set 3 : Rebase to trunk #

Patch Set 4 : Change expectations per wtc #

Total comments: 3

Patch Set 5 : Upload before commit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -101 lines) Patch
M net/socket/ssl_client_socket_unittest.cc View 1 2 3 4 12 chunks +55 lines, -101 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Ryan Sleevi
@wtc: Would you mind taking a look? Several of the style nits you pointed out ...
10 years, 1 month ago (2010-10-26 23:37:58 UTC) #1
wtc
Thanks for the CL. It looks good except for the problem marked with "IMPORTANT" below. ...
10 years, 1 month ago (2010-10-28 01:18:13 UTC) #2
Ryan Sleevi
PTAL http://codereview.chromium.org/4130005/diff/5001/6001 File net/socket/ssl_client_socket_unittest.cc (right): http://codereview.chromium.org/4130005/diff/5001/6001#newcode124 net/socket/ssl_client_socket_unittest.cc:124: EXPECT_FALSE(sock->IsConnected()); On 2010/10/28 01:18:13, wtc wrote: > Hmm... ...
10 years, 1 month ago (2010-11-07 23:40:51 UTC) #3
wtc
10 years, 1 month ago (2010-11-10 01:05:50 UTC) #4
LGTM.

I had trouble doing good code review today, so please check
this CL carefully yourself before checking it in.  Thanks!

http://codereview.chromium.org/4130005/diff/15001/net/socket/ssl_client_socke...
File net/socket/ssl_client_socket_unittest.cc (left):

http://codereview.chromium.org/4130005/diff/15001/net/socket/ssl_client_socke...
net/socket/ssl_client_socket_unittest.cc:170: EXPECT_FALSE(sock->IsConnected());
On second thought, I think these two EXPECT statements (lines
170-171) are correct because of the way our message-driven IO
works -- after the sock->Connect() call on line 164 returns,
we have not given the current message loop a chance to process
more messages/run any tasks, so the state of 'sock' cannot
possibly change, and no new events will have been written to
the log.

But this point is not obvious, and is not important, so
I don't think we should add these two EXPECT statements back.

http://codereview.chromium.org/4130005/diff/15001/net/socket/ssl_client_socke...
File net/socket/ssl_client_socket_unittest.cc (right):

http://codereview.chromium.org/4130005/diff/15001/net/socket/ssl_client_socke...
net/socket/ssl_client_socket_unittest.cc:121: // Rather than testing whether or
not the underlying socket, test that the
Nit: "whether or not the underlying socket" is incomplete.
I guess it's missing "is connected" at the end?

http://codereview.chromium.org/4130005/diff/15001/net/socket/ssl_client_socke...
net/socket/ssl_client_socket_unittest.cc:338: if (rv != net::OK)
BUG: this should say
  if (rv == net::ERR_IO_PENDING)

Powered by Google App Engine
This is Rietveld 408576698