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

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

Issue 10096015: Single URL Expires Were Not Being Deleted. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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/autocomplete/network_action_predictor_unittest.cc
===================================================================
--- chrome/browser/autocomplete/network_action_predictor_unittest.cc (revision 132411)
+++ chrome/browser/autocomplete/network_action_predictor_unittest.cc (working copy)
@@ -170,8 +170,8 @@
predictor_->DeleteAllRows();
}
- void DeleteRowsWithURLs(const std::set<GURL>& urls) {
- predictor_->DeleteRowsWithURLs(urls);
+ void DeleteRowsWithURLs(const history::URLRows& rows) {
+ predictor_->DeleteRowsWithURLs(rows);
}
void DeleteOldIdsFromCaches(
@@ -278,11 +278,11 @@
EXPECT_EQ(arraysize(test_url_db), db_cache()->size());
EXPECT_EQ(arraysize(test_url_db), db_id_cache()->size());
- std::set<GURL> urls;
+ history::URLRows rows;
for (size_t i = 0; i < 2; ++i)
- urls.insert(test_url_db[i].url);
+ rows.push_back(history::URLRow(test_url_db[i].url));
- DeleteRowsWithURLs(urls);
+ DeleteRowsWithURLs(rows);
EXPECT_EQ(arraysize(test_url_db) - 2, db_cache()->size());
EXPECT_EQ(arraysize(test_url_db) - 2, db_id_cache()->size());
« no previous file with comments | « chrome/browser/autocomplete/network_action_predictor.cc ('k') | chrome/browser/history/android/android_provider_backend.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698