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

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

Issue 904673004: Fixed test by changing the way a subframe was added. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/frame_host/navigator_impl_unittest.cc
diff --git a/content/browser/frame_host/navigator_impl_unittest.cc b/content/browser/frame_host/navigator_impl_unittest.cc
index 6f692afdaadaa93e84debf83598870be7123318f..2de47f8cf685e8a83c1c3ff3d447f77c4152883c 100644
--- a/content/browser/frame_host/navigator_impl_unittest.cc
+++ b/content/browser/frame_host/navigator_impl_unittest.cc
@@ -133,10 +133,7 @@ TEST_F(NavigatorTestWithBrowserSideNavigation, BeginNavigation) {
// Add a subframe.
FrameTreeNode* root_node = contents()->GetFrameTree()->root();
- TestRenderFrameHost* subframe_rfh =
- static_cast<TestRenderFrameHost*>(contents()->GetFrameTree()->AddFrame(
- root_node, root_node->current_frame_host()->GetProcess()->GetID(), 14,
- "Child"));
+ TestRenderFrameHost* subframe_rfh = main_test_rfh()->AppendChild("Child");
ASSERT_TRUE(subframe_rfh);
FrameTreeNode* subframe_node = subframe_rfh->frame_tree_node();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698