ChromeDriver FetchUrlTest unit test failures in debug builds
network::mojom::URLLoaderFactory has stricter threading restrictions than its predecessor (URLRequestContextGetter) - see [1]. This CL adapts an existing subset of chromedriver unittests (namely FetchUrlTest), that deals with url fetching, to this threading restrictions. Basically, the CL allows the test to inject the TaskRunner that the URLLoaderFactory handle was created on, and use it afterwards. A similar approach to this one (of injecting a test-specific TaskRunner instance) was also used in [2]. [1] https://crrev.com/c/1292933 [2] https://crrev.com/c/1174655/14/components/sync/engine/net/http_bridge.cc#148 BUG=902618 Change-Id: If37bfee8cc891c1a95491cfeb3febf5fe673f52e Reviewed-on: https://chromium-review.googlesource.com/c/1327443Reviewed-by:John Chen <johnchen@chromium.org> Commit-Queue: Antonio Gomes <tonikitoo@igalia.com> Cr-Commit-Position: refs/heads/master@{#606726}
Showing
Please register or sign in to comment