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

Issue 16207: Make ssl_client_socket_unittest use a local server (Closed)

Created:
12 years ago by dank
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

ssl_client_socket_unittest.cc: launch local server with TestServerLauncher rather than use bugs.webkit.org, fixes TODO(darin) Add tests with bad server certs ssl_client_socket_nss.cc: fix bugs revealed by new tests tcp_pinger.cc: helper class to do synchronous connect from tests. Has to work inside ui tests where one can't use TestCompletionCallback. ssl_test_util: renamed class TestServerLauncher, added Start/Stop methods. Make part of net.lib to work around link error in test_shell_tests. url_request_unittest.h: use TestServerLauncher to manage server. SSL client tests disabled for now on Mac. BUG=7114 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=9823

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 7

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Patch Set 9 : '' #

Total comments: 1

Patch Set 10 : '' #

Patch Set 11 : '' #

Patch Set 12 : '' #

Patch Set 13 : '' #

Patch Set 14 : '' #

Patch Set 15 : '' #

Patch Set 16 : '' #

Patch Set 17 : '' #

Patch Set 18 : '' #

Patch Set 19 : '' #

Patch Set 20 : '' #

Patch Set 21 : '' #

Patch Set 22 : '' #

Patch Set 23 : '' #

Total comments: 15

Patch Set 24 : '' #

Patch Set 25 : '' #

Patch Set 26 : '' #

Patch Set 27 : '' #

Patch Set 28 : '' #

Patch Set 29 : '' #

Patch Set 30 : '' #

Patch Set 31 : '' #

Total comments: 5

Patch Set 32 : '' #

Patch Set 33 : '' #

Total comments: 1

Patch Set 34 : '' #

Total comments: 7

Patch Set 35 : '' #

Patch Set 36 : '' #

Patch Set 37 : '' #

Patch Set 38 : '' #

Patch Set 39 : '' #

Total comments: 6

Patch Set 40 : '' #

Patch Set 41 : '' #

Patch Set 42 : '' #

Total comments: 2

Patch Set 43 : '' #

Patch Set 44 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+794 lines, -500 lines) Patch
M chrome/browser/net/url_fetcher_unittest.cc View 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 3 chunks +1 line, -10 lines 0 comments Download
M chrome/browser/ssl/ssl_uitest.cc View 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 4 chunks +4 lines, -10 lines 0 comments Download
M net/base/ssl_client_socket_nss.h View 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 4 chunks +10 lines, -8 lines 0 comments Download
M net/base/ssl_client_socket_nss.cc View 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 8 chunks +27 lines, -26 lines 0 comments Download
M net/base/ssl_client_socket_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 6 chunks +130 lines, -28 lines 0 comments Download
M net/base/ssl_test_util.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 1 chunk +61 lines, -12 lines 0 comments Download
M net/base/ssl_test_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 4 chunks +202 lines, -24 lines 0 comments Download
A net/base/tcp_pinger.h View 1 chunk +131 lines, -0 lines 0 comments Download
A net/base/tcp_pinger_unittest.cc View 1 chunk +92 lines, -0 lines 0 comments Download
M net/build/net_unittests.vcproj View 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 1 chunk +4 lines, -0 lines 0 comments Download
M net/net.xcodeproj/project.pbxproj View 3 4 5 6 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 10 chunks +10 lines, -8 lines 0 comments Download
M net/net_unittests.scons View 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 1 chunk +1 line, -0 lines 0 comments Download
M net/url_request/url_request_unittest.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 10 chunks +110 lines, -363 lines 0 comments Download
M net/url_request/url_request_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 3 chunks +7 lines, -10 lines 0 comments Download
M webkit/glue/unittest_test_server.h View 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 25 (0 generated)
dank
Hi Avi, could you have a look at the mac parts of this? A few ...
12 years ago (2008-12-23 01:21:16 UTC) #1
darin (slow to review)
ok, i see that you are trying to support blocking socket IO. why do we ...
12 years ago (2008-12-23 05:08:28 UTC) #2
darin (slow to review)
if in unit tests, you wish to block until a network operation completes, our typical ...
12 years ago (2008-12-23 05:09:28 UTC) #3
Avi (use Gerrit)
http://codereview.chromium.org/16207/diff/222/227 File net/base/ssl_client_socket_unittest.cc (right): http://codereview.chromium.org/16207/diff/222/227#newcode28 Line 28: void Start() { It looks like we're calling ...
12 years ago (2008-12-23 17:16:04 UTC) #4
Erik does not do reviews
The trace_event.h change LGTM. I didn't look at your overall CL, but I noticed that ...
12 years ago (2008-12-23 17:21:21 UTC) #5
ibrar
http://codereview.chromium.org/16207/diff/826/830 File net/url_request/url_request_unittest.h (right): http://codereview.chromium.org/16207/diff/826/830#newcode452 Line 452: // this shortcut could cause hangs? Dank, I ...
11 years, 11 months ago (2009-01-21 18:01:57 UTC) #6
darin (slow to review)
The new FTP stack should not have that "single thread" limitation. Perhaps we can just ...
11 years, 11 months ago (2009-01-21 18:11:31 UTC) #7
dank
OK, ready for review again. net_unittests --gtest_filter=SSLClientSocketTest.Connect will fail on Mac and Win with CERT_AUTHORITY_INVALID ...
11 years, 11 months ago (2009-01-23 19:31:53 UTC) #8
dank
This iteration of the change adds unit tests with invalid certs to the lowest level ...
11 years, 11 months ago (2009-01-27 03:21:51 UTC) #9
darin (slow to review)
So, I was expecting to see some unification between the HTTPSTestServer and this new mechanism ...
11 years, 11 months ago (2009-01-27 19:57:03 UTC) #10
agl
LGTM. Given the amount of time this has been dragging on for, the code review ...
11 years, 11 months ago (2009-01-27 23:45:08 UTC) #11
darin (slow to review)
I don't understand... the comments I made before were seemingly ignored. Some times passed... and ...
11 years, 11 months ago (2009-01-27 23:48:53 UTC) #12
dank
Darin asked: > So, I was expecting to see some unification between > HTTPSTestServer and ...
11 years, 11 months ago (2009-01-27 23:51:11 UTC) #13
dank
Talked with Darin on the phone. It turns out that his key objection is that ...
11 years, 11 months ago (2009-01-28 00:17:59 UTC) #14
wtc
I only reviewed the changes to net/base/ssl_client_socket_nss.*, net/base/ssl_client_socket_nss_unittest.cc in this CL. They look good to ...
11 years, 11 months ago (2009-01-28 01:11:27 UTC) #15
dank
Sorry this is taking so dang long. Avi: please review mac portion. (It would be ...
11 years, 10 months ago (2009-02-10 22:43:20 UTC) #16
Avi (use Gerrit)
http://codereview.chromium.org/16207/diff/3164/2153 File net/base/client_socket_test_helper_unittest.cc (right): http://codereview.chromium.org/16207/diff/3164/2153#newcode27 Line 27: // to accept a connection until the client ...
11 years, 10 months ago (2009-02-10 22:56:23 UTC) #17
wtc
LGTM on ssl_client_socket_nss*. I'll try to review some of the other files.
11 years, 10 months ago (2009-02-11 00:17:35 UTC) #18
Avi (use Gerrit)
lgtm. The crash is really disappointing; we need to look into that. http://codereview.chromium.org/16207/diff/3180/2209 File net/net.xcodeproj/project.pbxproj ...
11 years, 10 months ago (2009-02-11 00:18:31 UTC) #19
dank
Took care of Avi's issue. Waiting for Darin's review with bated breath.
11 years, 10 months ago (2009-02-12 00:21:34 UTC) #20
darin (slow to review)
http://codereview.chromium.org/16207/diff/3192/3208 File base/platform_thread.h (right): http://codereview.chromium.org/16207/diff/3192/3208#newcode47 Line 47: static void Sleep(base::TimeDelta duration) { IIRC, paulg tried ...
11 years, 10 months ago (2009-02-12 03:58:03 UTC) #21
dank
OK, all issues addressed (one just by a comment) except for ReleaseLater, which I couldn't ...
11 years, 10 months ago (2009-02-12 22:21:28 UTC) #22
darin (slow to review)
much better... some minor issues: http://codereview.chromium.org/16207/diff/2296/3267 File net/base/client_socket_test_helper.h (right): http://codereview.chromium.org/16207/diff/2296/3267#newcode48 Line 48: // Timeout here ...
11 years, 10 months ago (2009-02-13 02:48:15 UTC) #23
dank
Sorry 'bout that TimedWait bit, I was obviously insane. All should be fixed, please re-re-re-hic-re-review. ...
11 years, 10 months ago (2009-02-13 21:43:03 UTC) #24
darin (slow to review)
11 years, 10 months ago (2009-02-13 23:43:15 UTC) #25
LGTM

http://codereview.chromium.org/16207/diff/2317/3332
File net/base/client_socket_test_helper.h (right):

http://codereview.chromium.org/16207/diff/2317/3332#newcode23
Line 23: class TCPPinger {
looks good.  please change this file to be named tcp_pinger.h to match the name
of the class :)

http://codereview.chromium.org/16207/diff/2317/3332#newcode110
Line 110: int WaitForResult() {
you never use this return value, but that doesn't seem to be a problem.

Powered by Google App Engine
This is Rietveld 408576698