Reduce VR gamepad test flakiness
Reduces the flakiness of testControllerClicksRegisteredOnDaydream in two
ways:
1. Adds code to handle GVR briefly disconnecting then reconnecting the
controller, which caused us to receive multiple gamepadconnected
events.
2. Ensures any input that was sent to register the gamepad is drained
before actually starting the test, as slow intents could be received
later and cause the test to end earlier than expected.
Bug: 831589
Change-Id: I8041030ef6ec177ad47216eb1c1ea9e0f875e7c4
Reviewed-on: https://chromium-review.googlesource.com/1012439Reviewed-by:
Yash Malik <ymalik@chromium.org>
Commit-Queue: Brian Sheedy <bsheedy@chromium.org>
Cr-Commit-Position: refs/heads/master@{#551421}
Showing
Please register or sign in to comment