replay: Added trimming support
Added a command that allows replay to be used to trim event logs.
The resulting trimmed log will contain the full state of the device
in the first SYN package.
Trimming is tested with unit tests by comparing the replay of a trimmed
log with an replay of the original log. Both replays have to result in exactly
the same device states.
BUG=chromium-os:31732
TEST=make tests
Change-Id: I8671f7ca41aac88fe89c922e1fa8b5ce12a28ff8
Reviewed-on: https://gerrit.chromium.org/gerrit/27698
Commit-Ready: Dennis Kempin <[email protected]>
Reviewed-by: Dennis Kempin <[email protected]>
Tested-by: Dennis Kempin <[email protected]>
6 files changed