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

Unified Diff: chrome/browser/autocomplete/shortcuts_provider_unittest.cc

Issue 18878007: Omnibox: Make the Controller Reorder Matches for Inlining (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Harry's comments Created 7 years, 4 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: chrome/browser/autocomplete/shortcuts_provider_unittest.cc
diff --git a/chrome/browser/autocomplete/shortcuts_provider_unittest.cc b/chrome/browser/autocomplete/shortcuts_provider_unittest.cc
index 73699dbd4dbe80fbd2c66957357a15440a913643..9ad05e4118e35c14288c11d68fbd4a5c702ce35b 100644
--- a/chrome/browser/autocomplete/shortcuts_provider_unittest.cc
+++ b/chrome/browser/autocomplete/shortcuts_provider_unittest.cc
@@ -254,6 +254,12 @@ void ShortcutsProviderTest::RunTest(const string16 text,
ac_matches_.end(), AutocompleteMatch::MoreRelevant);
EXPECT_EQ(expected_top_result, ac_matches_[0].destination_url.spec());
}
+
+ // No shortcuts matches are allowed to be inlined no matter how highly
+ // they score.
Peter Kasting 2013/08/06 22:56:16 Nit: Should this have a TODO to change this to all
Mark P 2013/08/07 00:44:31 No. TODOs in code should be trivial. I'm not eve
+ for (ACMatches::const_iterator it = ac_matches_.begin();
+ it != ac_matches_.end(); ++it)
+ EXPECT_FALSE(it->allowed_to_be_default_match);
}
TEST_F(ShortcutsProviderTest, SimpleSingleMatch) {

Powered by Google App Engine
This is Rietveld 408576698