DescriptionFix test slowness introduced by https://codereview.chromium.org/2771793003
https://codereview.chromium.org/2771793003 moved the the timer for downloading
an icon from webapk_installer.cc to webapk_icon_hasher.cc The CL did not
provide a way of making the timeout shorter similar to
WebApkInstaller::SetTimeoutMs(). This was causing
WebApkInstallerTest.BestPrimaryIconUrlDownloadTimesOut and
WebApkInstallerTest.BestBadgeIconUrlDownloadTimesOut to take over a minute each.
This CL:
- Introduces a new static method
WebApkIconHasher::DownloadAndComputeMurmur2HashWithTimeout() which takes a
custom timeout.
- Removes the tests about the icon download timing out from
webapk_installer_unittest.cc since this scenario is already tested in
webapk_icon_hasher_unittest.cc
Review-Url: https://codereview.chromium.org/2822883002
Cr-Commit-Position: refs/heads/master@{#465750}
Committed: https://chromium.googlesource.com/chromium/src/+/e7c580f5192add33af200317f7097b2b1b3d4910
Patch Set 1 #
Total comments: 2
Messages
Total messages: 12 (5 generated)
|