Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1782)

Unified Diff: content/public/test/browser_test_utils.cc

Issue 2523583003: Fix some flaky tests. (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/public/test/browser_test_utils.cc
diff --git a/content/public/test/browser_test_utils.cc b/content/public/test/browser_test_utils.cc
index 139301fa6344bb2f3106253aaed144e11cdb2a7e..8de010dd8dec2022596442e61483fedd7da71f74 100644
--- a/content/public/test/browser_test_utils.cc
+++ b/content/public/test/browser_test_utils.cc
@@ -1316,7 +1316,8 @@ bool DOMMessageQueue::WaitForMessage(std::string* message) {
DCHECK(message);
if (message_queue_.empty()) {
// This will be quit when a new message comes in.
- message_loop_runner_ = new MessageLoopRunner;
+ message_loop_runner_ =
+ new MessageLoopRunner(MessageLoopRunner::QuitMode::IMMEDIATE);
message_loop_runner_->Run();
}
// The queue should not be empty, unless we were quit because of a timeout.

Powered by Google App Engine
This is Rietveld 408576698