diff options
Diffstat (limited to 'content/browser/web_contents/navigation_entry_impl_unittest.cc')
-rw-r--r-- | content/browser/web_contents/navigation_entry_impl_unittest.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/content/browser/web_contents/navigation_entry_impl_unittest.cc b/content/browser/web_contents/navigation_entry_impl_unittest.cc index bb46c8e..055a0cd 100644 --- a/content/browser/web_contents/navigation_entry_impl_unittest.cc +++ b/content/browser/web_contents/navigation_entry_impl_unittest.cc @@ -179,6 +179,12 @@ TEST_F(NavigationEntryTest, NavigationEntryAccessors) { EXPECT_EQ(GURL(), entry2_.get()->GetOriginalRequestURL()); entry2_.get()->SetOriginalRequestURL(GURL("original_url")); EXPECT_EQ(GURL("original_url"), entry2_.get()->GetOriginalRequestURL()); + + // User agent override + EXPECT_FALSE(entry1_.get()->GetIsOverridingUserAgent()); + EXPECT_FALSE(entry2_.get()->GetIsOverridingUserAgent()); + entry2_.get()->SetIsOverridingUserAgent(true); + EXPECT_TRUE(entry2_.get()->GetIsOverridingUserAgent()); } } // namespace content |