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

Unified Diff: content/browser/tab_contents/navigation_entry_unittest.cc

Issue 8224023: Don't show URL for pending new navigations initiated by the renderer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix merge conflicts. Created 9 years, 2 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/tab_contents/navigation_entry.cc ('k') | content/browser/tab_contents/page_navigator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/tab_contents/navigation_entry_unittest.cc
diff --git a/content/browser/tab_contents/navigation_entry_unittest.cc b/content/browser/tab_contents/navigation_entry_unittest.cc
index dc80bbd05ba7c9eaa012e795413279080a43296a..2171a702edc26edacc638be27e8975e5264b5b85 100644
--- a/content/browser/tab_contents/navigation_entry_unittest.cc
+++ b/content/browser/tab_contents/navigation_entry_unittest.cc
@@ -22,7 +22,8 @@ class NavigationEntryTest : public testing::Test {
GURL("test:url"),
GURL("from"),
ASCIIToUTF16("title"),
- content::PAGE_TRANSITION_TYPED));
+ content::PAGE_TRANSITION_TYPED,
+ false));
}
virtual void TearDown() {
@@ -175,6 +176,12 @@ TEST_F(NavigationEntryTest, NavigationEntryAccessors) {
entry2_.get()->set_transition_type(content::PAGE_TRANSITION_RELOAD);
EXPECT_EQ(content::PAGE_TRANSITION_RELOAD, entry2_.get()->transition_type());
+ // Is renderer initiated
+ EXPECT_FALSE(entry1_.get()->is_renderer_initiated());
+ EXPECT_FALSE(entry2_.get()->is_renderer_initiated());
+ entry2_.get()->set_is_renderer_initiated(true);
+ EXPECT_TRUE(entry2_.get()->is_renderer_initiated());
+
// Post Data
EXPECT_FALSE(entry1_.get()->has_post_data());
EXPECT_FALSE(entry2_.get()->has_post_data());
« no previous file with comments | « content/browser/tab_contents/navigation_entry.cc ('k') | content/browser/tab_contents/page_navigator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698