Rewrite URLDownloaderTest::SingleDownloadPDF to exercise the new URLLoader path
In [1], iOS' URLDownloader switched from URLFetcher to SimpleURLLoader. However, it was observed during the migration that its existing unit test SingleDownloadPDF does not actually exercise the actual fetch/load code path. This CL fixes SingleDownloadPDF so that it actually loads a testing PDF file through SimpleURLLoader and URLLoaderFactory machinery. [1] https://crrev.com/c/1234635 BUG=None Cq-Include-Trybots: luci.chromium.try:ios-simulator-cronet;luci.chromium.try:ios-simulator-full-configs Change-Id: I6b3006f8e021bb97c8d839307c741f7071708683 Reviewed-on: https://chromium-review.googlesource.com/1236855Reviewed-by:Olivier Robin <olivierrobin@chromium.org> Commit-Queue: Antonio Gomes <tonikitoo@igalia.com> Cr-Commit-Position: refs/heads/master@{#593176}
Showing
Please register or sign in to comment