-
Sergey Ulanov authored
Previosuly HeartbeatSender had two separate timers for periodic heartbeats and for retries. Exponential backoff logic was applied only for some errors. Now timer scheduling is handled in the same place for all errors to make it consistent and easier to understand. Also cleaned up unittests to avoid dependency on the internal details of the implementation. BUG=728851 Change-Id: I5b5df999d9aa9412e1c83637959c9d6c5a2cd84d Reviewed-on: https://chromium-review.googlesource.com/536393 Commit-Queue: Sergey Ulanov <sergeyu@chromium.org> Reviewed-by: Jamie Walch <jamiewalch@chromium.org> Cr-Commit-Position: refs/heads/master@{#479970}
dec73fbd