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

Issue 170016: Add a unit test for handling SSL certificate errors.... (Closed)

Created:
11 years, 4 months ago by wtc
Modified:
9 years, 7 months ago
Reviewers:
eroman
CC:
chromium-reviews_googlegroups.com, darin (slow to review), willchan no longer on Chromium
Visibility:
Public.

Description

Add a unit test for handling SSL certificate errors. Add CreateSSLClientSocket method to eliminate duplicate code in tests. R=eroman BUG=none TEST=new unit test

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -56 lines) Patch
M net/socket/ssl_client_socket_unittest.cc View 10 chunks +72 lines, -56 lines 4 comments Download

Messages

Total messages: 2 (0 generated)
wtc
This is work in progress. I need to wait for Chris Hawk to fix http://crbug.com/14733 ...
11 years, 4 months ago (2009-08-14 22:39:27 UTC) #1
eroman
11 years, 4 months ago (2009-08-15 02:04:28 UTC) #2
http://codereview.chromium.org/170016/diff/1/2
File net/socket/ssl_client_socket_unittest.cc (right):

http://codereview.chromium.org/170016/diff/1/2#newcode57
Line 57: net::ClientSocket *transport = new net::TCPClientSocket(addr);
style-nit: move * to the left.

http://codereview.chromium.org/170016/diff/1/2#newcode168
Line 168: EXPECT_EQ(net::CERT_STATUS_AUTHORITY_INVALID,
style-nit: why not just EXPECT_TRUE(ssl_info.cert_status &
net::CERT_STATUS_AUTHORITY_INVALID) ? or can you do
EXPECT_EQ(net::CERT_STATUS_AUTHORITY_INVALID, or ssl_info.cert_status) ?

http://codereview.chromium.org/170016/diff/1/2#newcode176
Line 176: ///////////////////////
style-nit: i haven't really seen the //// style in other places. I am not
opposed to it, just wandering if there is precedent.

http://codereview.chromium.org/170016/diff/1/2#newcode219
Line 219: CreateSSLClientSocket(addr, kDefaultSSLConfig));
Is this intentional? This used to use server_.kMismatchedHostName, but now it
uses server_.kHostName

Powered by Google App Engine
This is Rietveld 408576698