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

Unified Diff: content/public/test/test_navigation_observer.h

Issue 2635203002: Quit immediately in TestNavigationObserver. (Closed)
Patch Set: Add comment. 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
Index: content/public/test/test_navigation_observer.h
diff --git a/content/public/test/test_navigation_observer.h b/content/public/test/test_navigation_observer.h
index 93091ca64c7c8aeb893620ce940dfc8accac0672..640948613ba37bd714373e1f46d343dfed541579 100644
--- a/content/public/test/test_navigation_observer.h
+++ b/content/public/test/test_navigation_observer.h
@@ -27,9 +27,13 @@ class TestNavigationObserver {
// Create and register a new TestNavigationObserver against the
// |web_contents|.
TestNavigationObserver(WebContents* web_contents,
- int number_of_navigations);
+ int number_of_navigations,
+ MessageLoopRunner::QuitMode quit_mode =
+ MessageLoopRunner::QuitMode::IMMEDIATE);
// Like above but waits for one navigation.
- explicit TestNavigationObserver(WebContents* web_contents);
+ explicit TestNavigationObserver(WebContents* web_contents,
+ MessageLoopRunner::QuitMode quit_mode =
+ MessageLoopRunner::QuitMode::IMMEDIATE);
virtual ~TestNavigationObserver();
« no previous file with comments | « content/browser/frame_host/navigation_handle_impl_browsertest.cc ('k') | content/public/test/test_navigation_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698