Add unittest for CrowdDenySafeBrowsingRequest.
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:Andy Paicu <andypaicu@chromium.org> Commit-Queue: Balazs Engedy <engedy@chromium.org> Cr-Commit-Position: refs/heads/master@{#720192}
Showing
Please register or sign in to comment