Home
last modified time | relevance | path

Searched refs:match_at (Results 1 – 25 of 30) sorted by relevance

12

/external/chromium_org/chrome/browser/extensions/api/omnibox/
Domnibox_api_browsertest.cc46 AutocompleteMatch match = result.match_at(0); in IN_PROC_BROWSER_TEST_F()
50 match = result.match_at(1); in IN_PROC_BROWSER_TEST_F()
71 EXPECT_EQ(ASCIIToUTF16("keyword"), result.match_at(0).keyword); in IN_PROC_BROWSER_TEST_F()
73 result.match_at(0).fill_into_edit); in IN_PROC_BROWSER_TEST_F()
75 result.match_at(0).type); in IN_PROC_BROWSER_TEST_F()
77 result.match_at(0).provider->type()); in IN_PROC_BROWSER_TEST_F()
78 EXPECT_EQ(ASCIIToUTF16("keyword"), result.match_at(1).keyword); in IN_PROC_BROWSER_TEST_F()
80 result.match_at(1).fill_into_edit); in IN_PROC_BROWSER_TEST_F()
82 result.match_at(1).provider->type()); in IN_PROC_BROWSER_TEST_F()
83 EXPECT_EQ(ASCIIToUTF16("keyword"), result.match_at(2).keyword); in IN_PROC_BROWSER_TEST_F()
[all …]
Domnibox_api_testbase.h50 AutocompleteMatch match = result.match_at(i); in AutocompleteResultAsString()
/external/chromium/chrome/browser/extensions/
Dextension_omnibox_apitest.cc42 AutocompleteMatch match = result.match_at(i); in AutocompleteResultAsString()
118 AutocompleteMatch match = result.match_at(0); in IN_PROC_BROWSER_TEST_F()
122 match = result.match_at(1); in IN_PROC_BROWSER_TEST_F()
143 ASSERT_TRUE(result.match_at(0).template_url); in IN_PROC_BROWSER_TEST_F()
145 result.match_at(0).fill_into_edit); in IN_PROC_BROWSER_TEST_F()
147 result.match_at(1).fill_into_edit); in IN_PROC_BROWSER_TEST_F()
149 result.match_at(2).fill_into_edit); in IN_PROC_BROWSER_TEST_F()
151 result.match_at(3).fill_into_edit); in IN_PROC_BROWSER_TEST_F()
155 EXPECT_EQ(description, result.match_at(1).contents); in IN_PROC_BROWSER_TEST_F()
156 ASSERT_EQ(6u, result.match_at(1).contents_class.size()); in IN_PROC_BROWSER_TEST_F()
[all …]
/external/chromium_org/chrome/browser/autocomplete/
Dautocomplete_result_unittest.cc282 EXPECT_TRUE(result.match_at(0)->destination_url.is_empty()); in TEST_F()
283 EXPECT_EQ(1300, result.match_at(0)->relevance); in TEST_F()
284 EXPECT_TRUE(result.match_at(1)->destination_url.is_empty()); in TEST_F()
285 EXPECT_EQ(1200, result.match_at(1)->relevance); in TEST_F()
286 EXPECT_TRUE(result.match_at(2)->destination_url.is_empty()); in TEST_F()
287 EXPECT_EQ(1100, result.match_at(2)->relevance); in TEST_F()
288 EXPECT_EQ("http://b/", result.match_at(3)->destination_url.spec()); in TEST_F()
289 EXPECT_EQ(1000, result.match_at(3)->relevance); in TEST_F()
327 result.match_at(0)->destination_url.spec()); in TEST_F()
328 EXPECT_EQ(1300, result.match_at(0)->relevance); in TEST_F()
[all …]
Dautocomplete_result.h96 const AutocompleteMatch& match_at(size_t index) const;
97 AutocompleteMatch* match_at(size_t index);
Dautocomplete_result.cc190 (comparing_object.GetDemotedRelevance(*match_at(num_matches)) > 0); in SortAndCull()
250 const AutocompleteMatch& AutocompleteResult::match_at(size_t index) const { in match_at() function in AutocompleteResult
255 AutocompleteMatch* AutocompleteResult::match_at(size_t index) { in match_at() function in AutocompleteResult
268 if (empty() || !match_at(0).IsVerbatimType()) in TopMatchIsVerbatimAndHasNoConsecutiveVerbatimMatches()
270 return !(size() > 1) || !match_at(1).IsVerbatimType(); in TopMatchIsVerbatimAndHasNoConsecutiveVerbatimMatches()
Dautocomplete_provider_unittest.cc369 result.match_at(j)->associated_keyword.get() != NULL); in RunRedundantKeywordTest()
397 result_.match_at(i)->search_terms_args->assisted_query_stats); in RunAssistedQueryStatsTest()
481 result_.match_at(i)->search_terms_args->assisted_query_stats.empty()); in TEST_F()
486 result_.match_at(i)->search_terms_args->assisted_query_stats.empty()); in TEST_F()
520 result_.match_at(0)->destination_url.possibly_invalid_spec()); in TEST_F()
522 result_.match_at(1)->destination_url.possibly_invalid_spec()); in TEST_F()
Dsearch_provider_unittest.cc869 EXPECT_EQ(AutocompleteMatchType::SEARCH_HISTORY, result.match_at(0).type); in TEST_F()
871 result.match_at(1).type); in TEST_F()
873 result.match_at(2).type); in TEST_F()
874 EXPECT_GT(result.match_at(0).relevance, result.match_at(1).relevance); in TEST_F()
875 EXPECT_GT(result.match_at(1).relevance, result.match_at(2).relevance); in TEST_F()
876 EXPECT_TRUE(result.match_at(0).allowed_to_be_default_match); in TEST_F()
877 EXPECT_TRUE(result.match_at(1).allowed_to_be_default_match); in TEST_F()
878 EXPECT_FALSE(result.match_at(2).allowed_to_be_default_match); in TEST_F()
881 EXPECT_EQ(ASCIIToUTF16("k"), result.match_at(0).keyword); in TEST_F()
882 EXPECT_EQ(ASCIIToUTF16("k"), result.match_at(1).keyword); in TEST_F()
[all …]
Dautocomplete_browsertest.cc42 AutocompleteMatch match = result.match_at(i); in AutocompleteResultAsString()
153 AutocompleteMatch match = result.match_at(0); in IN_PROC_BROWSER_TEST_F()
/external/chromium_org/chrome/browser/ui/omnibox/
Domnibox_popup_model.cc75 const AutocompleteMatch& match = result.match_at(line); in SetSelectedLine()
99 GURL current_destination(result.match_at(selected_line_).destination_url); in SetSelectedLine()
152 const AutocompleteMatch& match = result().match_at(selected_line_); in SetSelectedLineState()
169 const AutocompleteMatch& match = result().match_at(selected_line_); in TryDeletingCurrentItem()
Domnibox_controller.cc54 SearchProvider::ShouldPrefetch(result.match_at(1))) ? in GetMatchToPrefetch()
55 &result.match_at(1) : NULL; in GetMatchToPrefetch()
Domnibox_view_browsertest.cc1115 popup_model->result().match_at(default_line + 1).fill_into_edit; in IN_PROC_BROWSER_TEST_F()
1128 popup_model->result().match_at(default_line + 1).fill_into_edit); in IN_PROC_BROWSER_TEST_F()
1130 popup_model->result().match_at(default_line + 1).fill_into_edit; in IN_PROC_BROWSER_TEST_F()
1146 selected_text = popup_model->result().match_at(default_line).fill_into_edit; in IN_PROC_BROWSER_TEST_F()
1161 popup_model->result().match_at(default_line).fill_into_edit); in IN_PROC_BROWSER_TEST_F()
1163 popup_model->result().match_at(default_line).fill_into_edit; in IN_PROC_BROWSER_TEST_F()
/external/chromium/chrome/browser/autocomplete/
Dautocomplete_popup_model.cc73 const AutocompleteMatch& match = result.match_at(line); in SetSelectedLine()
95 GURL current_destination(result.match_at(selected_line_).destination_url); in SetSelectedLine()
203 const AutocompleteMatch& match = result().match_at(selected_line_); in TryDeletingCurrentItem()
Dautocomplete_browsertest.cc39 AutocompleteMatch match = result.match_at(i); in AutocompleteResultAsString()
122 AutocompleteMatch match = result.match_at(0); in IN_PROC_BROWSER_TEST_F()
Dautocomplete_edit_view_browsertest.cc944 popup_model->result().match_at(default_line).destination_url.spec(); in DeleteItemTest()
950 popup_model->result().match_at(default_line + 1).fill_into_edit; in DeleteItemTest()
963 popup_model->result().match_at(default_line + 1).fill_into_edit); in DeleteItemTest()
965 popup_model->result().match_at(default_line + 1).fill_into_edit; in DeleteItemTest()
981 selected_text = popup_model->result().match_at(default_line).fill_into_edit; in DeleteItemTest()
994 popup_model->result().match_at(default_line).fill_into_edit); in DeleteItemTest()
996 popup_model->result().match_at(default_line).fill_into_edit; in DeleteItemTest()
Dautocomplete_popup_view_gtk.cc475 const AutocompleteMatch& match = model_->result().match_at(line); in AcceptLine()
610 const AutocompleteMatch& match = result.match_at(i); in HandleExpose()
Dautocomplete.h537 const AutocompleteMatch& match_at(size_t index) const;
Dautocomplete_edit.cc515 current_match : result().match_at(index); in OpenURL()
922 *match = result.match_at(popup_->selected_line()); in InfoForCurrentSelection()
/external/chromium_org/chrome/browser/ui/gtk/omnibox/
Domnibox_popup_view_gtk.cc494 omnibox_view_->OpenMatch(GetResult().match_at(line), disposition, GURL(), in AcceptLine()
546 if (result.match_at(index).associated_keyword.get() && in GetVisibleMatchForInput()
549 *match = result.match_at(index).associated_keyword.get(); in GetVisibleMatchForInput()
554 *match = &result.match_at(index); in GetVisibleMatchForInput()
/external/chromium_org/chrome/browser/ui/views/omnibox/
Domnibox_popup_contents_view.cc453 return model_->result().match_at(index); in GetMatchAtIndex()
499 omnibox_view_->OpenMatch(model_->result().match_at(index), disposition, in OpenSelectedLine()
/external/chromium/chrome/browser/
Domnibox_search_hint.cc193 log->result.match_at(log->selected_index).type; in Observe()
/external/chromium/chrome/browser/ui/views/autocomplete/
Dautocomplete_popup_contents_view.cc562 return model_->result().match_at(index); in GetMatchAtIndex()
622 const AutocompleteMatch& match = model_->result().match_at(index); in OpenIndex()
/external/chromium_org/chrome/browser/ui/webui/options/
Doptions_ui.cc362 const AutocompleteMatch& match = result.match_at(i); in ProcessAutocompleteSuggestions()
/external/chromium/chrome/browser/ui/webui/options/
Dbrowser_options_handler.cc438 const AutocompleteMatch& match = result.match_at(i); in OnResultChanged()
/external/chromium_org/chrome/browser/ui/cocoa/omnibox/
Domnibox_popup_view_mac.mm128 const AutocompleteMatch& match = GetResult().match_at(ii + start_match);
500 omnibox_view_->OpenMatch(GetResult().match_at(row), disposition, GURL(), row);

12