Add tests around cancel with mayInterruptIfRunning=true
When mayInterruptIfRunning is true, and if task is already running, then cancel() should interrupt the task. These tests verify the behavior. Also adding some more checks and comments. Bug: 1021775 Change-Id: I5a51c09a9bf1731acf84280c8e9e40aef429732f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1903754Reviewed-by:Sam Maier <smaier@chromium.org> Reviewed-by:
Richard Coles <torne@chromium.org> Commit-Queue: Changwan Ryu <changwan@chromium.org> Cr-Commit-Position: refs/heads/master@{#713597}
Showing
Please register or sign in to comment