forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor intended to make ConnectJob construction logic more testable. Each ConnectJob type now has its own mockable Factory class to allow replacing the individual construction in tests. The new ConnectJobFactory contains the logic that was previously in ConnectJob::CreateConnectJob() but now in a stateful class to keep the individual type factories and allow replacing them for tests. The ConnectJobFactory instances are owned by the ClientSocketPools (or by network::ProxyResolvingClientSocketFactory for mojo socket creation). ConnectJobFactory also replaces the previously-used TransportClientSocketPool::ConnectJobFactory. But where that lived in TransportClientSocketPool and called into ClientSocketPool::CreateConnectJob() (where ClientSocketPool added a bit of extra logic to create an OnHostResolutionCallback), now the ConnectJobFactory lives in the ClientSocketPool and the extra callback stuff is done before calling into the factory. Change-Id: Id28959a7eb2180399f3a79ed64a323b1ee225461 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2986127 Commit-Queue: Eric Orth <ericorth@chromium.org> Commit-Queue: Matt Menke <mmenke@chromium.org> Auto-Submit: Eric Orth <ericorth@chromium.org> Reviewed-by: Matt Menke <mmenke@chromium.org> Cr-Commit-Position: refs/heads/master@{#897145}
- Loading branch information
Eric Orth
authored and
Chromium LUCI CQ
committed
Jun 29, 2021
1 parent
b831eab
commit a9b8be0
Showing
28 changed files
with
915 additions
and
264 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.