Fix UB in events_unittests
Use ui::test::ScopedEventTestTickClock instead of SetEventTickClockForTesting. EventsXTest did not call SetEventTickClockForTesting(nullptr) and, eventually, GestureProviderAuraTest suffered from that. It's better to use RAII idiom in this case because RAII makes impossible to forget to call SetEventTickClockForTesting(nullptr). Change-Id: I80b079ef37a77618d76f14912f7d6c40d39ab66b Reviewed-on: https://chromium-review.googlesource.com/1030108 Commit-Queue: Sadrul Chowdhury <sadrul@chromium.org> Reviewed-by:Sadrul Chowdhury <sadrul@chromium.org> Reviewed-by:
Peter Kasting <pkasting@chromium.org> Reviewed-by:
Dominic Mazzoni <dmazzoni@chromium.org> Reviewed-by:
Scott Violet <sky@chromium.org> Cr-Commit-Position: refs/heads/master@{#569607}
Showing
Please register or sign in to comment