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

Unified Diff: content/browser/web_contents/navigation_entry_impl_unittest.cc

Issue 9999010: Store original request URL in NavigationEntry (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebasing Created 8 years, 8 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 | « content/browser/web_contents/navigation_entry_impl.cc ('k') | content/public/browser/navigation_entry.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/web_contents/navigation_entry_impl_unittest.cc
diff --git a/content/browser/web_contents/navigation_entry_impl_unittest.cc b/content/browser/web_contents/navigation_entry_impl_unittest.cc
index f8fca4333139cacbf8914173ae3434ea68f75a76..bb46c8e6358aa65e68cd6b4e2be56f89e17a45e9 100644
--- a/content/browser/web_contents/navigation_entry_impl_unittest.cc
+++ b/content/browser/web_contents/navigation_entry_impl_unittest.cc
@@ -173,6 +173,12 @@ TEST_F(NavigationEntryTest, NavigationEntryAccessors) {
EXPECT_EQ(NavigationEntryImpl::RESTORE_NONE, entry2_->restore_type());
entry2_->set_restore_type(NavigationEntryImpl::RESTORE_LAST_SESSION);
EXPECT_EQ(NavigationEntryImpl::RESTORE_LAST_SESSION, entry2_->restore_type());
+
+ // Original URL
+ EXPECT_EQ(GURL(), entry1_.get()->GetOriginalRequestURL());
+ EXPECT_EQ(GURL(), entry2_.get()->GetOriginalRequestURL());
+ entry2_.get()->SetOriginalRequestURL(GURL("original_url"));
+ EXPECT_EQ(GURL("original_url"), entry2_.get()->GetOriginalRequestURL());
}
} // namespace content
« no previous file with comments | « content/browser/web_contents/navigation_entry_impl.cc ('k') | content/public/browser/navigation_entry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698