Add a unit test to ensure that if RESOURCE_TYPE_PREFETCH is specified in...
Add a unit test to ensure that if RESOURCE_TYPE_PREFETCH is specified in content::ResourceRequest, it's translated into the proper net:: flag on URLRequest. The test is for the network service case. The old navigation code path has this covered already in RequestDataResourceDispatcherHostBrowserTest.LinkRelPrefetch. The motivation is to convert a few prefetch browser tests from checking the URLLRequest object (which won't work with network service) to instead look at the ResourceRequest object. Also de-duplicate BuildLoadFlagsForRequest. BUG=776589 Cq-Include-Trybots: master.tryserver.chromium.linux:linux_mojo Change-Id: I29a66944d17a7e99b2bacbcb0766fa1b1174bd57 Reviewed-on: https://chromium-review.googlesource.com/797926Reviewed-by:Matt Menke <mmenke@chromium.org> Commit-Queue: John Abd-El-Malek <jam@chromium.org> Cr-Commit-Position: refs/heads/master@{#520594}
Showing
Please register or sign in to comment