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

Unified Diff: content/test/content_browser_test_utils_internal.cc

Issue 2630683003: Revert of Convert more test helpers to base::RunLoop, fix page title checks. (Closed)
Patch Set: Created 3 years, 11 months 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
« no previous file with comments | « content/test/content_browser_test_utils_internal.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/content_browser_test_utils_internal.cc
diff --git a/content/test/content_browser_test_utils_internal.cc b/content/test/content_browser_test_utils_internal.cc
index 4d9423057b83a7d01095fafc450eaf6042d02cb5..392439525ba2bc8451d4dc5720447e0382d6d94b 100644
--- a/content/test/content_browser_test_utils_internal.cc
+++ b/content/test/content_browser_test_utils_internal.cc
@@ -378,13 +378,15 @@
->delegate()
->GetAsWebContents()),
frame_tree_node_id_(frame_tree_node->frame_tree_node_id()),
- url_(url) {
+ url_(url),
+ message_loop_runner_(
+ new MessageLoopRunner(MessageLoopRunner::QuitMode::IMMEDIATE)) {
}
UrlCommitObserver::~UrlCommitObserver() {}
void UrlCommitObserver::Wait() {
- run_loop_.Run();
+ message_loop_runner_->Run();
}
void UrlCommitObserver::DidFinishNavigation(
@@ -393,7 +395,7 @@
!navigation_handle->IsErrorPage() &&
navigation_handle->GetURL() == url_ &&
navigation_handle->GetFrameTreeNodeId() == frame_tree_node_id_) {
- run_loop_.Quit();
+ message_loop_runner_->Quit();
}
}
« no previous file with comments | « content/test/content_browser_test_utils_internal.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698