Index: chrome/browser/tab_contents/test_tab_contents.h |
=================================================================== |
--- chrome/browser/tab_contents/test_tab_contents.h (revision 62308) |
+++ chrome/browser/tab_contents/test_tab_contents.h (working copy) |
@@ -20,7 +20,7 @@ |
// The render view host factory will be passed on to the |
TestTabContents(Profile* profile, SiteInstance* instance); |
- TestRenderViewHost* pending_rvh(); |
+ TestRenderViewHost* pending_rvh() const; |
// State accessor. |
bool cross_navigation_pending() { |
@@ -62,6 +62,15 @@ |
// emulates what happens on a new navigation. |
void NavigateAndCommit(const GURL& url); |
+ // Simulates the appropriate RenderView (pending if any, current otherwise) |
+ // sending a navigate notification for the NavigationController pending entry. |
+ void CommitPendingNavigation(); |
+ |
+ // Simulates the current RVH notifying that it has unloaded so that the |
+ // pending RVH navigation can proceed. |
+ // Does nothing if no cross-navigation is pending. |
+ void ProceedWithCrossSiteNavigation(); |
+ |
// Set by individual tests. |
bool transition_cross_site; |