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

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

Issue 11415292: [Search] No longer reverting omnibox text on instant search (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: More tests Created 8 years 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: 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 88c8e93ae20f2ec57890552689ee5b4cb64a382a..55cb01e4d7d2767803582e6d6863966e5e313a46 100644
--- a/content/browser/web_contents/navigation_entry_impl_unittest.cc
+++ b/content/browser/web_contents/navigation_entry_impl_unittest.cc
@@ -141,6 +141,11 @@ TEST_F(NavigationEntryTest, NavigationEntryAccessors) {
entry2_->SetTitle(ASCIIToUTF16("title2"));
EXPECT_EQ(ASCIIToUTF16("title2"), entry2_->GetTitle());
+ // Search terms
+ EXPECT_EQ(string16(), entry1_->GetSearchTerms());
+ entry1_->SetSearchTerms(ASCIIToUTF16("hello world"));
+ EXPECT_EQ(ASCIIToUTF16("hello world"), entry1_->GetSearchTerms());
+
// State
EXPECT_EQ(std::string(), entry1_->GetContentState());
EXPECT_EQ(std::string(), entry2_->GetContentState());

Powered by Google App Engine
This is Rietveld 408576698