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

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

Issue 339433007: Componentize URLDatabase (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 6 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_types.cc ('k') | chrome/browser/history/in_memory_database.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/history/history_types_unittest.cc
diff --git a/chrome/browser/history/history_types_unittest.cc b/chrome/browser/history/history_types_unittest.cc
index af68f8453cc54e09cf417e5e18b089dce73dc782..80c84e0c370f956ca98190fe0bb72b7c6ce4097f 100644
--- a/chrome/browser/history/history_types_unittest.cc
+++ b/chrome/browser/history/history_types_unittest.cc
@@ -115,32 +115,4 @@ TEST(HistoryQueryResult, ResultDeleteURL) {
EXPECT_FALSE(results.MatchesForURL(url2, NULL));
}
-TEST(HistoryQueryResult, RowSignificance) {
- const base::Time& threshold(AutocompleteAgeThreshold());
- const GURL url("http://www.google.com/");
- URLRow url_row(url);
- url_row.set_title(base::UTF8ToUTF16("Google"));
- EXPECT_FALSE(RowQualifiesAsSignificant(url_row, threshold));
- EXPECT_FALSE(RowQualifiesAsSignificant(url_row, base::Time()));
- url_row.set_visit_count(kLowQualityMatchVisitLimit);
- EXPECT_TRUE(RowQualifiesAsSignificant(url_row, threshold));
- EXPECT_TRUE(RowQualifiesAsSignificant(url_row, base::Time()));
- url_row.set_visit_count(1);
- EXPECT_FALSE(RowQualifiesAsSignificant(url_row, threshold));
- EXPECT_FALSE(RowQualifiesAsSignificant(url_row, base::Time()));
- url_row.set_typed_count(kLowQualityMatchTypedLimit);
- EXPECT_TRUE(RowQualifiesAsSignificant(url_row, threshold));
- EXPECT_TRUE(RowQualifiesAsSignificant(url_row, base::Time()));
- url_row.set_typed_count(0);
- EXPECT_FALSE(RowQualifiesAsSignificant(url_row, threshold));
- EXPECT_FALSE(RowQualifiesAsSignificant(url_row, base::Time()));
- url_row.set_last_visit(base::Time::Now() - base::TimeDelta::FromDays(1));
- EXPECT_TRUE(RowQualifiesAsSignificant(url_row, threshold));
- EXPECT_TRUE(RowQualifiesAsSignificant(url_row, base::Time()));
- url_row.set_last_visit(base::Time::Now() -
- base::TimeDelta::FromDays(kLowQualityMatchAgeLimitInDays + 1));
- EXPECT_FALSE(RowQualifiesAsSignificant(url_row, threshold));
- EXPECT_FALSE(RowQualifiesAsSignificant(url_row, base::Time()));
-}
-
} // namespace history
« no previous file with comments | « chrome/browser/history/history_types.cc ('k') | chrome/browser/history/in_memory_database.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698