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

Unified Diff: content/browser/frame_host/frame_tree_unittest.cc

Issue 103633002: Add RenderFrameHostDelegate and plumb it through all the necessary classes. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 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/browser/frame_host/frame_tree_node.cc ('k') | content/browser/frame_host/interstitial_page_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/frame_host/frame_tree_unittest.cc
===================================================================
--- content/browser/frame_host/frame_tree_unittest.cc (revision 238504)
+++ content/browser/frame_host/frame_tree_unittest.cc (working copy)
@@ -53,7 +53,7 @@
// - Swapping back to NULL doesn't crash (easier tear-down for interstitials).
// - Main frame does not own RenderFrameHost.
TEST_F(FrameTreeTest, RootNode) {
- FrameTree frame_tree(new Navigator(NULL, NULL), NULL, NULL, NULL);
+ FrameTree frame_tree(new Navigator(NULL, NULL), NULL, NULL, NULL, NULL);
// Initial state has empty node.
FrameTreeNode* root = frame_tree.root();
@@ -80,7 +80,7 @@
// - On creation, frame id is unassigned.
// - After a swap, frame id is unassigned.
TEST_F(FrameTreeTest, FirstNavigationAfterSwap) {
- FrameTree frame_tree(new Navigator(NULL, NULL), NULL, NULL, NULL);
+ FrameTree frame_tree(new Navigator(NULL, NULL), NULL, NULL, NULL, NULL);
EXPECT_TRUE(frame_tree.IsFirstNavigationAfterSwap());
EXPECT_EQ(FrameTreeNode::kInvalidFrameId,
@@ -99,7 +99,7 @@
// - Add a series of nodes and verify tree structure.
// - Remove a series of nodes and verify tree structure.
TEST_F(FrameTreeTest, Shape) {
- FrameTree frame_tree(new Navigator(NULL, NULL), NULL, NULL, NULL);
+ FrameTree frame_tree(new Navigator(NULL, NULL), NULL, NULL, NULL, NULL);
std::string no_children_node("no children node");
std::string deep_subtree("node with deep subtree");
@@ -108,6 +108,7 @@
// main frame swap here.
scoped_ptr<RenderFrameHostImpl> render_frame_host =
RenderFrameHostFactory::Create(static_cast<RenderViewHostImpl*>(rvh()),
+ NULL,
&frame_tree,
process()->GetNextRoutingID(),
false);
« no previous file with comments | « content/browser/frame_host/frame_tree_node.cc ('k') | content/browser/frame_host/interstitial_page_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698