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

Issue 1102463002: Add a MockAsyncProxyResolverFactory and update some tests to use it. (Closed)

Created:
5 years, 8 months ago by Sam McNally
Modified:
5 years, 7 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@proxy-factory-refactor
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a MockAsyncProxyResolverFactory and update some tests to use it. This CL: - adds a mock implementation of ProxyResolverFactory; - changes the ProxyService tests to use MockAsyncProxyResolverFactory instead of using a LegacyProxyResolverFactor; and - removes ForwardingProxyResolverFactory and updates the tests that used it. BUG=467403 Committed: https://crrev.com/e64b23614bff59704dbd24202bfc4c266d2d7fa3 Cr-Commit-Position: refs/heads/master@{#327431}

Patch Set 1 : #

Total comments: 14

Patch Set 2 : rebase #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+525 lines, -326 lines) Patch
M content/browser/resolve_proxy_msg_helper_unittest.cc View 1 2 3 5 chunks +14 lines, -8 lines 0 comments Download
M net/http/http_network_transaction_unittest.cc View 1 2 3 4 5 2 chunks +19 lines, -1 line 0 comments Download
M net/proxy/mock_proxy_resolver.h View 1 2 3 4 5 1 chunk +57 lines, -9 lines 0 comments Download
M net/proxy/mock_proxy_resolver.cc View 1 2 2 chunks +87 lines, -11 lines 0 comments Download
M net/proxy/multi_threaded_proxy_resolver_unittest.cc View 1 2 3 4 5 11 chunks +26 lines, -18 lines 0 comments Download
M net/proxy/proxy_resolver_factory.h View 1 2 3 chunks +11 lines, -1 line 0 comments Download
M net/proxy/proxy_resolver_factory.cc View 1 2 3 chunks +39 lines, -20 lines 0 comments Download
M net/proxy/proxy_resolver_factory_unittest.cc View 1 2 3 4 3 chunks +32 lines, -8 lines 0 comments Download
M net/proxy/proxy_service_unittest.cc View 1 2 3 4 5 101 chunks +240 lines, -250 lines 0 comments Download

Messages

Total messages: 20 (9 generated)
Sam McNally
5 years, 8 months ago (2015-04-22 05:24:29 UTC) #5
eroman
https://codereview.chromium.org/1102463002/diff/60001/net/proxy/mock_proxy_resolver.cc File net/proxy/mock_proxy_resolver.cc (right): https://codereview.chromium.org/1102463002/diff/60001/net/proxy/mock_proxy_resolver.cc#newcode132 net/proxy/mock_proxy_resolver.cc:132: CompletionCallback callback = callback_; How about instead: scoped_refptr<Request> keep_alive(this); ...
5 years, 8 months ago (2015-04-22 16:30:38 UTC) #6
Sam McNally
https://codereview.chromium.org/1102463002/diff/60001/net/proxy/mock_proxy_resolver.cc File net/proxy/mock_proxy_resolver.cc (right): https://codereview.chromium.org/1102463002/diff/60001/net/proxy/mock_proxy_resolver.cc#newcode132 net/proxy/mock_proxy_resolver.cc:132: CompletionCallback callback = callback_; On 2015/04/22 16:30:38, eroman wrote: ...
5 years, 8 months ago (2015-04-23 03:04:44 UTC) #9
eroman
LGTM. Judging from the try results there is another modification needed for content/browser/resolve_proxy_msg_helper_unittest.cc. Assuming that ...
5 years, 8 months ago (2015-04-23 03:17:21 UTC) #10
eroman
One more thing: the CL description still talks about forwardingproxyresolverfactory and should be updated
5 years, 8 months ago (2015-04-23 03:17:54 UTC) #11
Sam McNally
avi@chromium.org: Please review changes in content/browser/resolve_proxy_msg_helper_unittest.cc
5 years, 8 months ago (2015-04-23 04:06:18 UTC) #13
Sam McNally
Avi: ping.
5 years, 7 months ago (2015-04-28 23:37:22 UTC) #14
Avi (use Gerrit)
LGTM Feel free to ping me earlier if something seems to have fallen off my ...
5 years, 7 months ago (2015-04-29 00:38:11 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1102463002/200001
5 years, 7 months ago (2015-04-29 00:40:34 UTC) #18
commit-bot: I haz the power
Committed patchset #6 (id:200001)
5 years, 7 months ago (2015-04-29 03:50:38 UTC) #19
commit-bot: I haz the power
5 years, 7 months ago (2015-04-29 03:51:38 UTC) #20
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/e64b23614bff59704dbd24202bfc4c266d2d7fa3
Cr-Commit-Position: refs/heads/master@{#327431}

Powered by Google App Engine
This is Rietveld 408576698