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

Issue 2837813004: Sync the browser test host resolver with the network process before a test runs. (Closed)

Created:
3 years, 8 months ago by jam
Modified:
3 years, 8 months ago
CC:
Aaron Boodman, abarth-chromium, asanka, cbentzel+watch_chromium.org, chromium-reviews, darin (slow to review), darin-cc_chromium.org, jochen+watch_chromium.org, loading-reviews_chromium.org, mlamouri+watch-content_chromium.org, net-reviews_chromium.org, Peter Beverloo, qsr+mojo_chromium.org, Randy Smith (Not in Mondays), viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Sync the browser test host resolver with the network process before a test runs. This fixes the browser tests which use the in-process host resolver, which depends on globals in the network code. Most of the tests already call host_resolver()->AddRule in their SetUpOnMainThread. This will be enforced once the remaining ones which don't do this are updated. BUG=713847 Review-Url: https://codereview.chromium.org/2837813004 Cr-Commit-Position: refs/heads/master@{#467082} Committed: https://chromium.googlesource.com/chromium/src/+/700d86f404cceb4d49e2a1ed0b6f584839e43fde

Patch Set 1 #

Patch Set 2 : fix clang #

Patch Set 3 : fix release builds #

Total comments: 21

Patch Set 4 : review comments #

Total comments: 7

Patch Set 5 : review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+359 lines, -112 lines) Patch
M content/network/manifest.json View 1 chunk +3 lines, -0 lines 0 comments Download
M content/network/network_service.h View 2 chunks +3 lines, -4 lines 0 comments Download
M content/network/network_service.cc View 1 chunk +6 lines, -10 lines 0 comments Download
M content/public/app/mojo/content_browser_manifest.json View 1 chunk +4 lines, -1 line 0 comments Download
M content/public/common/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
A content/public/common/network_service_test.mojom View 1 chunk +17 lines, -0 lines 0 comments Download
M content/public/test/browser_test_base.h View 5 chunks +7 lines, -6 lines 0 comments Download
M content/public/test/browser_test_base.cc View 1 2 3 5 chunks +45 lines, -54 lines 0 comments Download
A content/public/test/test_host_resolver.h View 1 chunk +39 lines, -0 lines 0 comments Download
A content/public/test/test_host_resolver.cc View 1 chunk +77 lines, -0 lines 0 comments Download
M content/public/utility/content_utility_client.h View 1 2 3 4 2 chunks +4 lines, -0 lines 0 comments Download
M content/shell/BUILD.gn View 2 chunks +2 lines, -0 lines 0 comments Download
M content/shell/utility/shell_content_utility_client.h View 1 2 3 4 1 chunk +12 lines, -0 lines 0 comments Download
M content/shell/utility/shell_content_utility_client.cc View 1 2 3 4 3 chunks +45 lines, -0 lines 0 comments Download
M content/test/BUILD.gn View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M content/utility/utility_service_factory.h View 1 2 3 4 2 chunks +7 lines, -0 lines 0 comments Download
M content/utility/utility_service_factory.cc View 1 2 3 4 3 chunks +11 lines, -2 lines 0 comments Download
M net/dns/mock_host_resolver.h View 1 2 3 4 4 chunks +37 lines, -2 lines 0 comments Download
M net/dns/mock_host_resolver.cc View 1 2 3 4 chunks +35 lines, -33 lines 0 comments Download

Messages

Total messages: 58 (41 generated)
jam
Matt: net/ Tom: mojom & manifest Ken: the rest. This uses the temporary hooks we ...
3 years, 8 months ago (2017-04-24 21:33:27 UTC) #9
Tom Sepez
On 2017/04/24 21:33:27, jam wrote: > Matt: net/ > Tom: mojom & manifest > Ken: ...
3 years, 8 months ago (2017-04-24 22:14:39 UTC) #15
jam
On 2017/04/24 22:14:39, Tom Sepez wrote: > On 2017/04/24 21:33:27, jam wrote: > > Matt: ...
3 years, 8 months ago (2017-04-24 22:25:15 UTC) #20
mmenke
How do you see things going from here? Since presumably we won't have a HostResolver ...
3 years, 8 months ago (2017-04-25 15:14:43 UTC) #33
jam
On 2017/04/25 15:14:43, mmenke wrote: > How do you see things going from here? Since ...
3 years, 8 months ago (2017-04-25 16:18:10 UTC) #34
mmenke
On 2017/04/25 16:18:10, jam wrote: > On 2017/04/25 15:14:43, mmenke wrote: > > How do ...
3 years, 8 months ago (2017-04-25 16:22:34 UTC) #35
jam
On 2017/04/25 16:22:34, mmenke wrote: > On 2017/04/25 16:18:10, jam wrote: > > On 2017/04/25 ...
3 years, 8 months ago (2017-04-25 16:30:18 UTC) #36
mmenke
https://codereview.chromium.org/2837813004/diff/90001/content/public/test/browser_test_base.cc File content/public/test/browser_test_base.cc (right): https://codereview.chromium.org/2837813004/diff/90001/content/public/test/browser_test_base.cc#newcode378 content/public/test/browser_test_base.cc:378: return; add braces https://codereview.chromium.org/2837813004/diff/90001/net/dns/mock_host_resolver.cc File net/dns/mock_host_resolver.cc (right): https://codereview.chromium.org/2837813004/diff/90001/net/dns/mock_host_resolver.cc#newcode358 net/dns/mock_host_resolver.cc:358: ...
3 years, 8 months ago (2017-04-25 16:37:58 UTC) #37
jam
https://codereview.chromium.org/2837813004/diff/90001/content/public/test/browser_test_base.cc File content/public/test/browser_test_base.cc (right): https://codereview.chromium.org/2837813004/diff/90001/content/public/test/browser_test_base.cc#newcode378 content/public/test/browser_test_base.cc:378: return; On 2017/04/25 16:37:51, mmenke wrote: > add braces ...
3 years, 8 months ago (2017-04-25 17:04:41 UTC) #38
mmenke
LGTM https://codereview.chromium.org/2837813004/diff/90001/content/public/test/browser_test_base.cc File content/public/test/browser_test_base.cc (right): https://codereview.chromium.org/2837813004/diff/90001/content/public/test/browser_test_base.cc#newcode378 content/public/test/browser_test_base.cc:378: return; On 2017/04/25 17:04:40, jam wrote: > On ...
3 years, 8 months ago (2017-04-25 17:29:47 UTC) #41
Ken Rockot(use gerrit already)
lgtm https://codereview.chromium.org/2837813004/diff/110001/content/shell/utility/shell_content_utility_client.h File content/shell/utility/shell_content_utility_client.h (right): https://codereview.chromium.org/2837813004/diff/110001/content/shell/utility/shell_content_utility_client.h#newcode25 content/shell/utility/shell_content_utility_client.h:25: void RegisterNetworkServices( nit: RegisterNetworkBinders? https://codereview.chromium.org/2837813004/diff/110001/content/shell/utility/shell_content_utility_client.h#newcode29 content/shell/utility/shell_content_utility_client.h:29: void Create(const ...
3 years, 8 months ago (2017-04-25 17:36:09 UTC) #42
mmenke
https://codereview.chromium.org/2837813004/diff/90001/net/dns/mock_host_resolver.h File net/dns/mock_host_resolver.h (right): https://codereview.chromium.org/2837813004/diff/90001/net/dns/mock_host_resolver.h#newcode215 net/dns/mock_host_resolver.h:215: // Asserts if any changes are made to the ...
3 years, 8 months ago (2017-04-25 17:44:44 UTC) #43
mmenke
https://codereview.chromium.org/2837813004/diff/90001/net/dns/mock_host_resolver.h File net/dns/mock_host_resolver.h (right): https://codereview.chromium.org/2837813004/diff/90001/net/dns/mock_host_resolver.h#newcode215 net/dns/mock_host_resolver.h:215: // Asserts if any changes are made to the ...
3 years, 8 months ago (2017-04-25 18:10:09 UTC) #44
jam
https://codereview.chromium.org/2837813004/diff/90001/net/dns/mock_host_resolver.h File net/dns/mock_host_resolver.h (right): https://codereview.chromium.org/2837813004/diff/90001/net/dns/mock_host_resolver.h#newcode215 net/dns/mock_host_resolver.h:215: // Asserts if any changes are made to the ...
3 years, 8 months ago (2017-04-25 18:19:37 UTC) #48
mmenke
net/ still LGTM. Thanks!
3 years, 8 months ago (2017-04-25 18:21:01 UTC) #50
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2837813004/130001
3 years, 8 months ago (2017-04-25 19:57:14 UTC) #55
commit-bot: I haz the power
3 years, 8 months ago (2017-04-25 20:04:41 UTC) #58
Message was sent while issue was closed.
Committed patchset #5 (id:130001) as
https://chromium.googlesource.com/chromium/src/+/700d86f404cceb4d49e2a1ed0b6f...

Powered by Google App Engine
This is Rietveld 408576698