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

Issue 18775: Add more unit tests for net/base/host_resolver. (Closed)

Created:
11 years, 11 months ago by Paweł Hajdan Jr.
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Add more unit tests for net/base/host_resolver. BUG=6661

Patch Set 1 #

Total comments: 1

Patch Set 2 : reduce potential for flakiness #

Patch Set 3 : fix msvc warning #

Patch Set 4 : use reference counting #

Patch Set 5 : comment new behavior #

Total comments: 1

Patch Set 6 : try to fix pointed out problems #

Patch Set 7 : fix wrong sed results #

Total comments: 8

Patch Set 8 : add fixes, and actually use previous mapper #

Unified diffs Side-by-side diffs Delta from patch set Stats (+315 lines, -116 lines) Patch
M net/base/host_resolver.h View 4 5 6 7 1 chunk +15 lines, -1 line 0 comments Download
M net/base/host_resolver.cc View 4 5 6 7 6 chunks +17 lines, -6 lines 0 comments Download
A net/base/host_resolver_unittest.h View 6 7 1 chunk +143 lines, -0 lines 0 comments Download
M net/base/host_resolver_unittest.cc View 1 2 3 4 5 6 1 chunk +110 lines, -2 lines 0 comments Download
M net/base/run_all_unittests.cc View 6 2 chunks +9 lines, -4 lines 0 comments Download
M net/base/scoped_host_mapper.h View 1 2 3 4 5 1 chunk +0 lines, -91 lines 0 comments Download
M net/base/ssl_client_socket_unittest.cc View 6 2 chunks +9 lines, -5 lines 0 comments Download
M net/http/http_network_layer_unittest.cc View 6 2 chunks +9 lines, -4 lines 0 comments Download
M net/net.xcodeproj/project.pbxproj View 6 4 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Paweł Hajdan Jr.
11 years, 11 months ago (2009-01-26 19:53:48 UTC) #1
darin (slow to review)
LGTM!
11 years, 11 months ago (2009-01-26 20:01:31 UTC) #2
jar (doing other things)
See suggestion below. Other than that, LGTM. http://codereview.chromium.org/18775/diff/1/2 File net/base/host_resolver_unittest.cc (right): http://codereview.chromium.org/18775/diff/1/2#newcode81 Line 81: 3000); ...
11 years, 11 months ago (2009-01-26 21:21:07 UTC) #3
Paweł Hajdan Jr.
jar: thanks for suggestion. Applied. Testing uncovered weird failures with memory corruption. After adding reference ...
11 years, 11 months ago (2009-01-27 21:59:18 UTC) #4
darin (slow to review)
http://codereview.chromium.org/18775/diff/7/219 File net/base/scoped_host_mapper.h (right): http://codereview.chromium.org/18775/diff/7/219#newcode95 Line 95: // This class sets the HostMapper for a ...
11 years, 11 months ago (2009-01-27 22:26:17 UTC) #5
Paweł Hajdan Jr.
On 2009/01/27 22:26:17, darin wrote: > http://codereview.chromium.org/18775/diff/7/219 > File net/base/scoped_host_mapper.h (right): > > http://codereview.chromium.org/18775/diff/7/219#newcode95 > ...
11 years, 11 months ago (2009-01-28 08:13:46 UTC) #6
darin (slow to review)
OK... I see now. Thanks for the detailed explanation. The core problem is that the ...
11 years, 11 months ago (2009-01-28 08:33:13 UTC) #7
Paweł Hajdan Jr.
On 2009/01/28 08:33:13, darin wrote: > OK... I see now. Thanks for the detailed explanation. ...
11 years, 11 months ago (2009-01-28 17:37:37 UTC) #8
darin (slow to review)
I like this approach... http://codereview.chromium.org/18775/diff/611/612 File net/base/host_resolver.cc (right): http://codereview.chromium.org/18775/diff/611/612#newcode84 Line 84: original_host_mapper_(host_mapper), nit: it seems ...
11 years, 11 months ago (2009-01-28 18:11:41 UTC) #9
Paweł Hajdan Jr.
Fixed, except get() because it would require a down_cast. I also added set_previous_mapper call which ...
11 years, 11 months ago (2009-01-28 19:16:39 UTC) #10
darin (slow to review)
11 years, 11 months ago (2009-01-28 19:26:02 UTC) #11
LGTM

I wish there were a simpler way for the host_mapper_ business, but OK.

Powered by Google App Engine
This is Rietveld 408576698