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

Unified Diff: chrome/browser/history/history_backend_unittest.cc

Issue 830483005: Eliminate sending NOTIFICATION_HISTORY_KEYWORD_SEARCH_TERM_DELETED (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updated Created 5 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
« no previous file with comments | « chrome/browser/history/history_backend.cc ('k') | chrome/browser/history/history_notifications.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/history/history_backend_unittest.cc
diff --git a/chrome/browser/history/history_backend_unittest.cc b/chrome/browser/history/history_backend_unittest.cc
index eaf62bef408d7e6ac80402edc662e53b03b4dfac..91f0957466649502096087ad4d355468ca8864d6 100644
--- a/chrome/browser/history/history_backend_unittest.cc
+++ b/chrome/browser/history/history_backend_unittest.cc
@@ -129,6 +129,7 @@ class HistoryBackendTestDelegate : public HistoryBackend::Delegate {
void NotifyKeywordSearchTermUpdated(const URLRow& row,
KeywordID keyword_id,
const base::string16& term) override;
+ void NotifyKeywordSearchTermDeleted(URLID url_id) override;
void BroadcastNotifications(int type,
scoped_ptr<HistoryDetails> details) override;
void DBLoaded() override;
@@ -223,6 +224,10 @@ class HistoryBackendTestBase : public testing::Test {
mem_backend_->OnKeywordSearchTermUpdated(nullptr, row, keyword_id, term);
}
+ void NotifyKeywordSearchTermDeleted(URLID url_id) {
+ mem_backend_->OnKeywordSearchTermDeleted(nullptr, url_id);
+ }
+
void BroadcastNotifications(int type, scoped_ptr<HistoryDetails> details) {
// Send the notifications directly to the in-memory database.
content::Details<HistoryDetails> det(details.get());
@@ -309,6 +314,10 @@ void HistoryBackendTestDelegate::NotifyKeywordSearchTermUpdated(
test_->NotifyKeywordSearchTermUpdated(row, keyword_id, term);
}
+void HistoryBackendTestDelegate::NotifyKeywordSearchTermDeleted(URLID url_id) {
+ test_->NotifyKeywordSearchTermDeleted(url_id);
+}
+
void HistoryBackendTestDelegate::BroadcastNotifications(
int type,
scoped_ptr<HistoryDetails> details) {
« no previous file with comments | « chrome/browser/history/history_backend.cc ('k') | chrome/browser/history/history_notifications.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698