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

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

Issue 959343004: Move InMemoryURLIndex outside of history namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@in-memory-url-index
Patch Set: Created 5 years, 10 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/history_quick_provider_unittest.cc
diff --git a/chrome/browser/autocomplete/history_quick_provider_unittest.cc b/chrome/browser/autocomplete/history_quick_provider_unittest.cc
index 44c2bb144c283dfe2a98175faaed773af6c7a107..3b9ce9ca0dc6f95e83986714cb4addd58a88e69f 100644
--- a/chrome/browser/autocomplete/history_quick_provider_unittest.cc
+++ b/chrome/browser/autocomplete/history_quick_provider_unittest.cc
@@ -551,14 +551,14 @@ TEST_F(HistoryQuickProviderTest, EncodingLimitMatch) {
TEST_F(HistoryQuickProviderTest, Spans) {
// Test SpansFromTermMatch
- history::TermMatches matches_a;
+ TermMatches matches_a;
// Simulates matches: '.xx.xxx..xx...xxxxx..' which will test no match at
// either beginning or end as well as adjacent matches.
- matches_a.push_back(history::TermMatch(1, 1, 2));
- matches_a.push_back(history::TermMatch(2, 4, 3));
- matches_a.push_back(history::TermMatch(3, 9, 1));
- matches_a.push_back(history::TermMatch(3, 10, 1));
- matches_a.push_back(history::TermMatch(4, 14, 5));
+ matches_a.push_back(TermMatch(1, 1, 2));
+ matches_a.push_back(TermMatch(2, 4, 3));
+ matches_a.push_back(TermMatch(3, 9, 1));
+ matches_a.push_back(TermMatch(3, 10, 1));
+ matches_a.push_back(TermMatch(4, 14, 5));
ACMatchClassifications spans_a =
HistoryQuickProvider::SpansFromTermMatch(matches_a, 20, false);
// ACMatch spans should be: 'NM-NM---N-M-N--M----N-'
@@ -583,9 +583,9 @@ TEST_F(HistoryQuickProviderTest, Spans) {
EXPECT_EQ(ACMatchClassification::NONE, spans_a[8].style);
// Simulates matches: 'xx.xx' which will test matches at both beginning and
// end.
- history::TermMatches matches_b;
- matches_b.push_back(history::TermMatch(1, 0, 2));
- matches_b.push_back(history::TermMatch(2, 3, 2));
+ TermMatches matches_b;
+ matches_b.push_back(TermMatch(1, 0, 2));
+ matches_b.push_back(TermMatch(2, 3, 2));
ACMatchClassifications spans_b =
HistoryQuickProvider::SpansFromTermMatch(matches_b, 5, true);
// ACMatch spans should be: 'M-NM-'

Powered by Google App Engine
This is Rietveld 408576698