• tzik's avatar
    Add MockOneShotTimer and MockRepeatingTimer · 28b5e293
    tzik authored
    MockOneShotTimer and MockRepeatingTimer are subclasses of OneShotTimer
    and RepeatingTimer respectively, that are intended to replace most of
    MockTimer.
    
    As MockTimer is not a OneShotTimer nor RepeatingTimer, when we want to
    use MockTimer for other timers, we had to use the generic Timer to hold
    a timer instance, that loses the timer traits from its type.
    
    Change-Id: Iea4a469708be2b89d4feb228460d78ab2a2f96d1
    Reviewed-on: https://chromium-review.googlesource.com/1095195
    Commit-Queue: Taiju Tsuiki <tzik@chromium.org>
    Reviewed-by: default avatarGabriel Charette <gab@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#568371}
    28b5e293
mock_timer.h 1.99 KB