Use mock proxy client socket in some tests.
This is necessary to avoid creating a DefaultClientSocketFactory, which is a leaky singleton and therefore would hold a reference to ScopedTaskEnvironment's reference counted MockTimeTaskRunner forever, thus preventing the creating of another ScopedTaskEnvironment. This is prework for https://crrev.com/c/1037405. Bug: 791831 Change-Id: Iba9e17cc51d7002318f3a27d694b3d9230f36d4e Reviewed-on: https://chromium-review.googlesource.com/1037324Reviewed-by:Helen Li <xunjieli@chromium.org> Commit-Queue: Bence Béky <bnc@chromium.org> Cr-Commit-Position: refs/heads/master@{#556028}
Showing
Please register or sign in to comment