• John Abd-El-Malek's avatar
    Add a unit test to ensure that if RESOURCE_TYPE_PREFETCH is specified in... · f1db9abb
    John Abd-El-Malek authored
    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: default avatarMatt Menke <mmenke@chromium.org>
    Commit-Queue: John Abd-El-Malek <jam@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#520594}
    f1db9abb
resource_dispatcher_host_impl.cc 110 KB