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

Unified Diff: chrome/browser/sync/test/integration/typed_urls_helper.cc

Issue 8890089: [Sync] Add HistoryService::DeleteURLsForTest (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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/sync/test/integration/typed_urls_helper.cc
diff --git a/chrome/browser/sync/test/integration/typed_urls_helper.cc b/chrome/browser/sync/test/integration/typed_urls_helper.cc
index 850db93d496a138c854b4ac27209657b8af47a71..34f2632889de38ea685d60244eabbb0fa4b8fcf2 100644
--- a/chrome/browser/sync/test/integration/typed_urls_helper.cc
+++ b/chrome/browser/sync/test/integration/typed_urls_helper.cc
@@ -279,6 +279,15 @@ void DeleteUrlFromHistory(int index, const GURL& url) {
WaitForHistoryDBThread(index);
}
+void DeleteUrlsFromHistory(int index, const std::vector<GURL>& urls) {
+ test()->GetProfile(index)->GetHistoryServiceWithoutCreating()->
+ DeleteURLsForTest(urls);
+ if (test()->use_verifier())
+ test()->verifier()->GetHistoryService(Profile::IMPLICIT_ACCESS)->
+ DeleteURLsForTest(urls);
+ WaitForHistoryDBThread(index);
+}
+
void AssertURLRowVectorsAreEqual(
const std::vector<history::URLRow>& left,
const std::vector<history::URLRow>& right) {

Powered by Google App Engine
This is Rietveld 408576698