commit | 07dfabcb55d74e254f4722926a997959dc4c6393 | [log] [tgz] |
---|---|---|
author | Samuel Tan <samueltan@chromium.org> | Tue Jan 20 15:10:39 2015 -0800 |
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | Thu Jan 22 05:13:41 2015 +0000 |
tree | 1558943f30c4936f3abd1155602a7227565948a4 | |
parent | e9b75804020ed3173ae7e5e925da78f2c642cd35 [diff] |
shill: create EventHistory class Refactor deque<Timestamp> members from Service into a separate EventHistory class that stores a monotonically increasing list of timestamps represent the occurence of one or more events. This class allows the number of event timestamps stored in the object at once to be limited and stale event timestamps to be evicted. All timestamp eviction is done in FIFO order. BUG=chrome-os-partner:35518 TEST=Compile shill and run unit tests. Change-Id: Ie53676c30444c2e2c60f39238f435968d68017fc Reviewed-on: https://chromium-review.googlesource.com/242081 Tested-by: Samuel Tan <samueltan@chromium.org> Reviewed-by: Paul Stewart <pstew@chromium.org> Commit-Queue: Samuel Tan <samueltan@chromium.org>