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

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

Issue 6268005: Removes the link in the omnibox for searching history. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix unit test Created 9 years, 11 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/autocomplete_unittest.cc
diff --git a/chrome/browser/autocomplete/autocomplete_unittest.cc b/chrome/browser/autocomplete/autocomplete_unittest.cc
index f40fb4df5f747b3d3b2fb0f925236357fd7ad727..c63039c0346836495e9405117a288ab8ad5fa9d6 100644
--- a/chrome/browser/autocomplete/autocomplete_unittest.cc
+++ b/chrome/browser/autocomplete/autocomplete_unittest.cc
@@ -382,8 +382,7 @@ TEST(AutocompleteTest, InputCrash) {
false);
}
-// Test that we can properly compare matches' relevance when at least one is
-// negative.
+// Test comparing matches relevance.
TEST(AutocompleteMatch, MoreRelevant) {
struct RelevantCases {
int r1;
@@ -394,8 +393,8 @@ TEST(AutocompleteMatch, MoreRelevant) {
{ 10, -5, true },
{ -5, 10, false },
{ 0, 10, false },
- { -10, -5, true },
- { -5, -10, false },
+ { -10, -5, false },
+ { -5, -10, true },
};
AutocompleteMatch m1(NULL, 0, false, AutocompleteMatch::URL_WHAT_YOU_TYPED);
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_popup_view_gtk.cc ('k') | chrome/browser/autocomplete/history_contents_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698