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

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

Issue 958083002: PlzNavigate: Show error pages when the navigation failed before commit (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@support-data-urls
Patch Set: Added a browsertest Created 5 years, 8 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 31a94d63f6d2ea2f9fb35e8fbbcf4099550ccd39..9a5f6a3d4b18db695f89c3f0665efb2875866584 100644
--- a/content/public/test/test_navigation_observer.h
+++ b/content/public/test/test_navigation_observer.h
@@ -44,6 +44,8 @@ class TestNavigationObserver {
int last_navigation_succeeded() const { return last_navigation_succeeded_; }
+ int navigations_failed() const { return navigations_failed_; }
+
protected:
// Register this TestNavigationObserver as an observer of the |web_contents|.
void RegisterAsObserver(WebContents* web_contents);
@@ -83,6 +85,9 @@ class TestNavigationObserver {
// The number of navigations to wait for.
int number_of_navigations_;
+ // The number of navigations that failed.
+ int navigations_failed_;
clamy 2015/04/10 14:04:49 I had to track the number of navigations that fail
Charlie Reis 2015/04/10 22:54:44 Can you check the page type of the committed Navig
clamy 2015/04/14 11:56:25 Done.
+
// The url of the navigation that last committed.
GURL last_navigation_url_;

Powered by Google App Engine
This is Rietveld 408576698