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

Unified Diff: components/sessions/content/content_serialized_navigation_builder_unittest.cc

Issue 2368183004: Move redirect_chain from NavigationEntry to FrameNavigationEntry. (Closed)
Patch Set: 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: components/sessions/content/content_serialized_navigation_builder_unittest.cc
diff --git a/components/sessions/content/content_serialized_navigation_builder_unittest.cc b/components/sessions/content/content_serialized_navigation_builder_unittest.cc
index 54270250af811acff3a4d3c92bcd5901ca12c9cf..b2012eb86676effd2c3d4de4d0db6058df0dfcb6 100644
--- a/components/sessions/content/content_serialized_navigation_builder_unittest.cc
+++ b/components/sessions/content/content_serialized_navigation_builder_unittest.cc
@@ -45,7 +45,7 @@ std::unique_ptr<content::NavigationEntry> MakeNavigationEntryForTest() {
redirect_chain.push_back(test_data::kRedirectURL0);
redirect_chain.push_back(test_data::kRedirectURL1);
redirect_chain.push_back(test_data::kVirtualURL);
- navigation_entry->SetRedirectChain(redirect_chain);
+ navigation_entry->SetMainFrameRedirectChain(redirect_chain);
return navigation_entry;
}
@@ -124,13 +124,13 @@ TEST(ContentSerializedNavigationBuilderTest, ToNavigationEntry) {
EXPECT_EQ(test_data::kSearchTerms, search_terms);
EXPECT_EQ(test_data::kHttpStatusCode,
new_navigation_entry->GetHttpStatusCode());
- ASSERT_EQ(3U, new_navigation_entry->GetRedirectChain().size());
+ ASSERT_EQ(3U, new_navigation_entry->GetMainFrameRedirectChain().size());
EXPECT_EQ(test_data::kRedirectURL0,
- new_navigation_entry->GetRedirectChain()[0]);
+ new_navigation_entry->GetMainFrameRedirectChain()[0]);
EXPECT_EQ(test_data::kRedirectURL1,
- new_navigation_entry->GetRedirectChain()[1]);
+ new_navigation_entry->GetMainFrameRedirectChain()[1]);
EXPECT_EQ(test_data::kVirtualURL,
- new_navigation_entry->GetRedirectChain()[2]);
+ new_navigation_entry->GetMainFrameRedirectChain()[2]);
}
TEST(ContentSerializedNavigationBuilderTest, SetPasswordState) {

Powered by Google App Engine
This is Rietveld 408576698