Add tests to cover the ordering of asynchronous steps in ContentVerifyJob.
ContentVerifyJob has two steps that can run independently of each other: 1. Reading content hash (OnHashesReady) and 2. Receiving content bytes (BytesReady and DoneReading). Add tests to make sure the ordering of those two steps doesn't matter (and avoid future regressions around this). Expand existing tests to run these steps without any ordering guarantee (as is), with step #1 completing before step #2 runs and vice versa. Bug: 796395 Test: None Change-Id: I4c3d9597b030dcf36626feb1bec251aab61bf069 Reviewed-on: https://chromium-review.googlesource.com/891656Reviewed-by:Devlin <rdevlin.cronin@chromium.org> Commit-Queue: Istiaque Ahmed <lazyboy@chromium.org> Cr-Commit-Position: refs/heads/master@{#533857}
Showing
This diff is collapsed.
Please register or sign in to comment