• Balazs Engedy's avatar
    Add unittest for CrowdDenySafeBrowsingRequest. · 4e2602f8
    Balazs Engedy authored
    The production code has also been updated in two regards:
    
     -- CrowdDenySafeBrowsingRequest::SafeBrowsingClient no longer assumes
        that CheckApiBlacklistUrl never invokes the callback synchronously
        if it returns false, as this can actually happen if the full hashes
        are already available on the client.
    
     -- DeleteOnIOThread is replaced with a manual call to DeleteSoon, as
        the former made testing difficult.
    
    Bug: 1028642
    Change-Id: Id939dd25e7ddabf6ed3529209eaa4ec2a2d7609e
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1942429Reviewed-by: default avatarAndy Paicu <andypaicu@chromium.org>
    Commit-Queue: Balazs Engedy <engedy@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#720192}
    4e2602f8
BUILD.gn 337 KB