Skip to content

Commit

Permalink
Migrate GestureProvider tests off of QuitCurrent*Deprecated.
Browse files Browse the repository at this point in the history
Bug: 844016
Change-Id: Iff5392ee536134bffa1522c4cb8bfc3ffbdb1864
Reviewed-on: https://chromium-review.googlesource.com/1129212
Reviewed-by: Sadrul Chowdhury <sadrul@chromium.org>
Commit-Queue: Wez <wez@chromium.org>
Cr-Commit-Position: refs/heads/master@{#573824}
  • Loading branch information
Wez authored and Commit Bot committed Jul 10, 2018
1 parent d8f6e58 commit 0195413
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ui/events/gesture_detection/gesture_provider_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -428,10 +428,10 @@ class GestureProviderTest : public testing::Test, public GestureProviderClient {
}

static void RunTasksAndWait(base::TimeDelta delay) {
base::RunLoop run_loop;
base::ThreadTaskRunnerHandle::Get()->PostDelayedTask(
FROM_HERE, base::RunLoop::QuitCurrentWhenIdleClosureDeprecated(),
delay);
base::RunLoop().Run();
FROM_HERE, run_loop.QuitClosure(), delay);
run_loop.Run();
}

std::vector<GestureEventData> gestures_;
Expand Down

0 comments on commit 0195413

Please sign in to comment.