• Matthew Denton's avatar
    Fix unittests to use CertVerifierService · 24f00a5f
    Matthew Denton authored
    The Network Service previously used concrete net::CertVerifier
    implementations, but is now switching to use the CertVerifierService.
    When creating a NetworkContext, a remote to a CertVerifierService
    needs to be included in the NetworkContextParams.
    
    Some unit tests don't do this, which is fixed in this CL in preparation
    for enabling the CertVerifierService by default.
    
    Since there's no need to test cert verification in most of these
    unit tests, just add a pipe to a fake CertVerifierService that
    always passes cert verification.
    
    Bug: 1015134, 1111472
    Change-Id: I378ff0930148bcc229b774c1bec1f7020ce97082
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2509429Reviewed-by: default avatarJohn Abd-El-Malek <jam@chromium.org>
    Commit-Queue: Matthew Denton <mpdenton@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#823410}
    24f00a5f
BUILD.gn 13.1 KB