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

Issue 45026: Prevent making real DNS lookups by chrome tests. (Closed)

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

Description

Prevent making real DNS lookups by chrome tests. - by default a test which makes external DNS lookup directly or indirectly will fail - added a quite simple way to allow a test to make external queries - added a way to make external queries fail (for tests which don't need them to succeed but it's hard to not make the query) - made neccessary adjustments to existing tests so that they still pass http://crbug.com/9109 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=12653

Patch Set 1 #

Total comments: 2

Patch Set 2 : simplified #

Unified diffs Side-by-side diffs Delta from patch set Stats (+104 lines, -18 lines) Patch
M chrome/browser/extensions/extension_view_unittest.cc View 1 4 chunks +14 lines, -0 lines 0 comments Download
M chrome/browser/net/dns_master_unittest.cc View 4 chunks +11 lines, -4 lines 0 comments Download
M chrome/browser/views/find_bar_win_unittest.cc View 3 chunks +12 lines, -1 line 0 comments Download
M chrome/test/unit/chrome_test_suite.h View 1 4 chunks +30 lines, -0 lines 0 comments Download
M net/base/host_resolver.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M net/base/host_resolver.cc View 1 1 chunk +7 lines, -4 lines 0 comments Download
M net/base/host_resolver_unittest.h View 1 3 chunks +26 lines, -7 lines 0 comments Download
M net/base/ssl_client_socket_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M net/http/http_network_layer_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
Paweł Hajdan Jr.
Please review: darin: main review aa: extensions-related part (I'm not sure where it does the ...
11 years, 9 months ago (2009-03-23 20:00:57 UTC) #1
Paweł Hajdan Jr.
ping. Just a note about HostMapper and simulating failing lookups. I added it to fix ...
11 years, 9 months ago (2009-03-24 10:30:22 UTC) #2
darin (slow to review)
LG, but... http://codereview.chromium.org/45026/diff/1/5 File chrome/test/unit/chrome_test_suite.h (right): http://codereview.chromium.org/45026/diff/1/5#newcode33 Line 33: const char* local_hostnames[] = {"localhost", "127.0.0.1"}; ...
11 years, 9 months ago (2009-03-24 20:10:20 UTC) #3
Paweł Hajdan Jr.
On 2009/03/24 20:10:20, darin wrote: > LG, but... > > http://codereview.chromium.org/45026/diff/1/5 > File chrome/test/unit/chrome_test_suite.h (right): ...
11 years, 9 months ago (2009-03-25 12:54:50 UTC) #4
Aaron Boodman
LGTM
11 years, 9 months ago (2009-03-25 22:59:39 UTC) #5
darin (slow to review)
11 years, 9 months ago (2009-03-26 17:04:32 UTC) #6
LGTM

Powered by Google App Engine
This is Rietveld 408576698