Searched defs:full_query_text (Results 1 - 3 of 3) sorted by relevance

/external/chromium_org/components/omnibox/
H A Danswers_cache.h15 AnswersQueryData(const base::string16& full_query_text,
17 base::string16 full_query_text; member in struct:AnswersQueryData
32 void UpdateRecentAnswers(const base::string16& full_query_text,
H A Danswers_cache_unittest.cc25 base::string16 full_query_text = base::ASCIIToUTF16("weather los angeles"); local
27 cache.UpdateRecentAnswers(full_query_text, query_type);
30 AnswersQueryData data = cache.GetTopAnswerEntry(full_query_text.substr(0, 8));
31 EXPECT_EQ(full_query_text, data.full_query_text);
35 data = cache.GetTopAnswerEntry(full_query_text.substr(1, 8));
36 EXPECT_TRUE(data.full_query_text.empty() && data.query_type.empty());
39 data = cache.GetTopAnswerEntry(full_query_text);
40 EXPECT_EQ(full_query_text, data.full_query_text);
[all...]
H A Danswers_cache.cc13 : full_query_text(text), query_type(type) {
26 if (StartsWith(it->full_query_text, collapsed_query, false)) {
35 void AnswersCache::UpdateRecentAnswers(const base::string16& full_query_text, argument
39 if (full_query_text == it->full_query_text &&
50 cache_.push_front(AnswersQueryData(full_query_text, query_type));

Completed in 461 milliseconds