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

Unified Diff: content/test/test_render_view_host.cc

Issue 1415603018: OOPIF: Support session restore by combining/splitting frame states. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Clean up and fix bugs Created 5 years 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/renderer/render_frame_impl.cc ('k') | third_party/WebKit/public/platform/WebHTTPBody.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/test_render_view_host.cc
diff --git a/content/test/test_render_view_host.cc b/content/test/test_render_view_host.cc
index 853676801d57afb735c56ee474316b1c745b330b..7f33a72daf1ff3768646f4f602ed452aadae3ec8 100644
--- a/content/test/test_render_view_host.cc
+++ b/content/test/test_render_view_host.cc
@@ -295,11 +295,14 @@ void TestRenderViewHost::TestOnStartDragging(
void TestRenderViewHost::TestOnUpdateStateWithFile(
int page_id,
const base::FilePath& file_path) {
- PageState state = PageState::CreateForTesting(GURL("http://www.google.com"),
- false, "data", &file_path);
if (SiteIsolationPolicy::UseSubframeNavigationEntries()) {
+ ExplodedFrameState state;
+ // TODO(creis): Add a CreateForTesting for ExplodedFrameState and fill in
+ // the other parameters.
static_cast<RenderFrameHostImpl*>(GetMainFrame())->OnUpdateState(state);
} else {
+ PageState state = PageState::CreateForTesting(GURL("http://www.google.com"),
+ false, "data", &file_path);
OnUpdateState(page_id, state);
}
}
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | third_party/WebKit/public/platform/WebHTTPBody.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698