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

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

Issue 165455: Autocomplete suggestions for bookmark TitleMatch's does not order matching bo... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 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
« no previous file with comments | « chrome/browser/autocomplete/history_contents_provider.cc ('k') | chrome/browser/bookmarks/bookmark_index.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autocomplete/history_contents_provider_unittest.cc
===================================================================
--- chrome/browser/autocomplete/history_contents_provider_unittest.cc (revision 24426)
+++ chrome/browser/autocomplete/history_contents_provider_unittest.cc (working copy)
@@ -101,10 +101,10 @@
// The results should be the first two pages, in decreasing order.
const ACMatches& m = matches();
ASSERT_EQ(2U, m.size());
- EXPECT_EQ(test_entries[1].url, m[0].destination_url.spec());
- EXPECT_STREQ(test_entries[1].title, m[0].description.c_str());
- EXPECT_EQ(test_entries[0].url, m[1].destination_url.spec());
- EXPECT_STREQ(test_entries[0].title, m[1].description.c_str());
+ EXPECT_EQ(test_entries[0].url, m[0].destination_url.spec());
+ EXPECT_STREQ(test_entries[0].title, m[0].description.c_str());
+ EXPECT_EQ(test_entries[1].url, m[1].destination_url.spec());
+ EXPECT_STREQ(test_entries[1].title, m[1].description.c_str());
}
TEST_F(HistoryContentsProviderTest, Title) {
@@ -114,10 +114,10 @@
// The results should be the first two pages.
const ACMatches& m = matches();
ASSERT_EQ(2U, m.size());
- EXPECT_EQ(test_entries[1].url, m[0].destination_url.spec());
- EXPECT_STREQ(test_entries[1].title, m[0].description.c_str());
- EXPECT_EQ(test_entries[0].url, m[1].destination_url.spec());
- EXPECT_STREQ(test_entries[0].title, m[1].description.c_str());
+ EXPECT_EQ(test_entries[0].url, m[0].destination_url.spec());
+ EXPECT_STREQ(test_entries[0].title, m[0].description.c_str());
+ EXPECT_EQ(test_entries[1].url, m[1].destination_url.spec());
+ EXPECT_STREQ(test_entries[1].title, m[1].description.c_str());
}
// The "minimal changes" flag should mean that we don't re-query the DB.
« no previous file with comments | « chrome/browser/autocomplete/history_contents_provider.cc ('k') | chrome/browser/bookmarks/bookmark_index.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698