Home
last modified time | relevance | path

Searched refs:kMaxMatches (Results 1 – 17 of 17) sorted by relevance

/external/chromium_org/chrome/browser/history/
Din_memory_url_index_unittest.cc41 const size_t kMaxMatches = 3; variable
471 ASCIIToUTF16("DrudgeReport"), base::string16::npos, kMaxMatches); in TEST_F()
483 ASCIIToUTF16("DrudgeReport "), base::string16::npos, kMaxMatches); in TEST_F()
492 ASCIIToUTF16("drudge"), base::string16::npos, kMaxMatches); in TEST_F()
499 ASCIIToUTF16("Nearly Perfect Result"), base::string16::npos, kMaxMatches); in TEST_F()
512 ASCIIToUTF16("qui c"), base::string16::npos, kMaxMatches); in TEST_F()
525 ASCIIToUTF16("Mice"), base::string16::npos, kMaxMatches); in TEST_F()
532 ASCIIToUTF16("1% wikipedia"), base::string16::npos, kMaxMatches); in TEST_F()
541 ASCIIToUTF16("fubar"), base::string16::npos, kMaxMatches); in TEST_F()
553 ASCIIToUTF16("DrudReport"), base::string16::npos, kMaxMatches); in TEST_F()
[all …]
/external/chromium_org/components/omnibox/
Dautocomplete_provider.h207 static const size_t kMaxMatches; variable
Dautocomplete_result.cc115 const size_t AutocompleteResult::kMaxMatches = 6; member in AutocompleteResult
125 matches_.reserve(kMaxMatches); in AutocompleteResult()
218 size_t max_num_matches = std::min(kMaxMatches, matches_.size()); in SortAndCull()
Dautocomplete_result.h61 static const size_t kMaxMatches; variable
Dkeyword_provider.cc306 if (matches.size() > kMaxMatches) in Start()
307 matches.erase(matches.begin() + kMaxMatches, matches.end()); in Start()
Dautocomplete_provider.cc16 const size_t AutocompleteProvider::kMaxMatches = 3; member in AutocompleteProvider
Dsearch_provider.cc561 int num_matches = kMaxMatches * 5; in DoHistoryQuery()
917 (matches_.size() < AutocompleteResult::kMaxMatches); in ConvertResultsToAutocompleteMatches()
926 if ((num_suggestions >= kMaxMatches) && in ConvertResultsToAutocompleteMatches()
/external/chromium_org/chrome/browser/autocomplete/
Dshortcuts_provider.cc168 std::min(AutocompleteProvider::kMaxMatches, matches_.size()), in GetMatches()
170 if (matches_.size() > AutocompleteProvider::kMaxMatches) { in GetMatches()
171 matches_.erase(matches_.begin() + AutocompleteProvider::kMaxMatches, in GetMatches()
Dhistory_url_provider_unittest.cc969 const int kMaxMatches = 3; in TEST_F() local
978 ExpectedMatch matches[kMaxMatches]; in TEST_F()
1006 UrlAndLegalDefault output[kMaxMatches]; in TEST_F()
1008 for (max_matches = 0; max_matches < kMaxMatches; ++max_matches) { in TEST_F()
Dbuiltin_provider.cc130 (i != builtins_.end()) && (matches_.size() < kMaxMatches); ++i) { in Start()
Dhistory_quick_provider.cc95 AutocompleteProvider::kMaxMatches); in DoAutocomplete()
Dbookmark_provider.cc126 std::min(matches_.size(), AutocompleteProvider::kMaxMatches); in DoAutocomplete()
Dhistory_url_provider.cc744 base::UTF16ToUTF8(i->prefix + params->input.text()), kMaxMatches * 2, in DoAutocomplete()
818 kMaxMatches + (params->exact_suggestion_is_in_history ? 1 : 0); in DoAutocomplete()
Dhistory_quick_provider_unittest.cc300 EXPECT_LE(ac_matches_.size(), AutocompleteProvider::kMaxMatches); in RunTestWithCursor()
Dshortcuts_provider_unittest.cc370 EXPECT_LE(ac_matches_.size(), AutocompleteProvider::kMaxMatches); in RunTest()
Dsearch_provider_unittest.cc968 ASSERT_EQ(AutocompleteProvider::kMaxMatches + 1, provider_->matches().size()); in TEST_F()
/external/chromium_org/chrome/browser/ui/views/omnibox/
Domnibox_popup_contents_view.cc83 for (size_t i = 0; i < AutocompleteResult::kMaxMatches; ++i) { in Init()
120 for (size_t i = 0; i < AutocompleteResult::kMaxMatches; ++i) { in LayoutChildren()
181 for (size_t i = result_size; i < AutocompleteResult::kMaxMatches; ++i) in UpdatePopupAppearance()