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

Unified Diff: chrome/browser/importer/profile_writer_unittest.cc

Issue 184663002: Omnibox: Make URLs of Bookmarks Searchable (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tested; works Created 6 years, 8 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/importer/profile_writer_unittest.cc
diff --git a/chrome/browser/importer/profile_writer_unittest.cc b/chrome/browser/importer/profile_writer_unittest.cc
index 8b447a727931c0eca4fc679b92247e47fd8a92c4..1b865d9303991383b405074e92c39eeadd2c1ae5 100644
--- a/chrome/browser/importer/profile_writer_unittest.cc
+++ b/chrome/browser/importer/profile_writer_unittest.cc
@@ -8,10 +8,10 @@
#include "base/message_loop/message_loop.h"
#include "base/strings/utf_string_conversions.h"
+#include "chrome/browser/bookmarks/bookmark_match.h"
#include "chrome/browser/bookmarks/bookmark_model.h"
#include "chrome/browser/bookmarks/bookmark_model_factory.h"
#include "chrome/browser/bookmarks/bookmark_test_helpers.h"
-#include "chrome/browser/bookmarks/bookmark_title_match.h"
#include "chrome/browser/bookmarks/bookmark_utils.h"
#include "chrome/browser/history/history_service.h"
#include "chrome/browser/history/history_service_factory.h"
@@ -80,11 +80,10 @@ class ProfileWriterTest : public testing::Test {
const std::vector<BookmarkService::URLAndTitle>& bookmarks_record,
BookmarkModel* bookmark_model,
size_t expected) {
- std::vector<BookmarkTitleMatch> matches;
+ std::vector<BookmarkMatch> matches;
for (size_t i = 0; i < bookmarks_record.size(); ++i) {
- bookmark_model->GetBookmarksWithTitlesMatching(bookmarks_record[i].title,
- 10,
- &matches);
+ bookmark_model->GetBookmarksMatching(
+ bookmarks_record[i].title, 10, &matches);
EXPECT_EQ(expected, matches.size());
matches.clear();
}

Powered by Google App Engine
This is Rietveld 408576698