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

Unified Diff: content/test/test_render_frame_host.h

Issue 2309583002: Fix for the NavigationControllerTest.BackSubframe test failures with PlzNavigate (Closed)
Patch Set: Add the item sequence number and document sequence number to the page state Created 4 years, 3 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/test/test_render_frame_host.h
diff --git a/content/test/test_render_frame_host.h b/content/test/test_render_frame_host.h
index de3db0cc73311297106156b558daea0f11fc3939..af897746a8e31cc7eeceb95778f9e6f82b409ab5 100644
--- a/content/test/test_render_frame_host.h
+++ b/content/test/test_render_frame_host.h
@@ -21,6 +21,8 @@ struct FrameHostMsg_DidCommitProvisionalLoad_Params;
namespace content {
+class PageState;
+
class TestRenderFrameHostCreationObserver : public WebContentsObserver {
public:
explicit TestRenderFrameHostCreationObserver(WebContents* web_contents);
@@ -146,6 +148,11 @@ class TestRenderFrameHost : public RenderFrameHostImpl,
// Creates a WebBluetooth Service with a dummy InterfaceRequest.
WebBluetoothServiceImpl* CreateWebBluetoothServiceForTesting();
+ // Creates an encoded page state for the |url|, |item_sequence_number| and
+ // |document_sequence_number| parameters.
+ static PageState CreatePageStateForURL(const GURL& url,
+ int64_t item_sequence_number,
+ int64_t document_sequence_number);
private:
void SendNavigateWithParameters(int page_id,
int nav_entry_id,

Powered by Google App Engine
This is Rietveld 408576698