In LockScreenAppState tests flush mojo after new note requests
Make sure every call to SendNewNoteRequest is followed by call to FlushTrayActionForTesting, which should flush mojo pipes. For most instances this was already the case, but it was missing in few places - these were followed up with ExpectObservedStatesMatch, which did fluch of its own (to ensure the mojo pipe is flushed in other direction), which flushed the new note request as well, or were expecting mojo call to have no effect. With CL:1145692, this does not seem to be enough anymore, as flush in ExpectObservedStatesMatch ends up handling only a single mojo message. While here, replace checks for empty observed state changed with calls to ExpectObservedStatesMatch. TEST=run tets with CL:1145692 applied BUG=872070 Change-Id: I58447ffe8315ddcd5917f0ce901ea5b2624b4e2a Reviewed-on: https://chromium-review.googlesource.com/1170026 Commit-Queue: Toni Barzic <tbarzic@chromium.org> Reviewed-by:Ken Rockot <rockot@chromium.org> Cr-Commit-Position: refs/heads/master@{#581917}
Showing
Please register or sign in to comment