Home
last modified time | relevance | path

Searched refs:turl (Results 1 – 9 of 9) sorted by relevance

/external/chromium/chrome/browser/ui/search_engines/
Dkeyword_editor_controller_unittest.cc139 const TemplateURL* turl = model_->GetTemplateURLs()[0]; in TEST_F() local
140 EXPECT_EQ(ASCIIToUTF16("a"), turl->short_name()); in TEST_F()
141 EXPECT_EQ(ASCIIToUTF16("b"), turl->keyword()); in TEST_F()
142 ASSERT_TRUE(turl->url() != NULL); in TEST_F()
143 EXPECT_EQ("http://c", turl->url()->url()); in TEST_F()
152 const TemplateURL* turl = model_->GetTemplateURLs()[0]; in TEST_F() local
153 controller_->ModifyTemplateURL(turl, kA1, kB1, "http://c1"); in TEST_F()
157 EXPECT_EQ(ASCIIToUTF16("a1"), turl->short_name()); in TEST_F()
158 EXPECT_EQ(ASCIIToUTF16("b1"), turl->keyword()); in TEST_F()
159 ASSERT_TRUE(turl->url() != NULL); in TEST_F()
[all …]
/external/chromium/chrome/browser/search_engines/
Dtemplate_url_unittest.cc311 TemplateURL turl; in TEST_F() local
312 turl.add_input_encoding("UTF-8"); in TEST_F()
320 GURL result = GURL(ref.ReplaceSearchTerms(turl, ASCIIToUTF16("X"), in TEST_F()
345 TemplateURL turl; in TEST_F() local
346 turl.add_input_encoding(data[i].encoding); in TEST_F()
348 GURL result = GURL(ref.ReplaceSearchTerms(turl, in TEST_F()
373 TemplateURL turl; in TEST_F() local
374 turl.add_input_encoding("UTF-8"); in TEST_F()
380 GURL result = GURL(ref.ReplaceSearchTerms(turl, ASCIIToUTF16("foobar"), in TEST_F()
Dtemplate_url.cc574 bool TemplateURL::SupportsReplacement(const TemplateURL* turl) { in SupportsReplacement() argument
576 return SupportsReplacementUsingTermsData(turl, search_terms_data); in SupportsReplacement()
581 const TemplateURL* turl, in SupportsReplacementUsingTermsData() argument
583 return turl && turl->url() && in SupportsReplacementUsingTermsData()
584 turl->url()->SupportsReplacementUsingTermsData(search_terms_data); in SupportsReplacementUsingTermsData()
Dtemplate_url.h290 static bool SupportsReplacement(const TemplateURL* turl);
294 const TemplateURL* turl,
Dtemplate_url_parser.cc294 TemplateURL* turl = context->template_url(); in ParseURL() local
324 turl->SetURL(template_url, index_offset, page_offset); in ParseURL()
329 turl->SetSuggestionsURL(template_url, index_offset, page_offset); in ParseURL()
Dtemplate_url_prepopulate_data.cc3524 TemplateURL turl; in GetOriginForSearchURL() local
3525 turl.SetURL(url_utf8_string, 0, 0); in GetOriginForSearchURL()
3529 &turl, search_terms_data); in GetOriginForSearchURL()
/external/chromium/chrome/browser/ui/gtk/
Dedit_search_engine_dialog.cc27 std::string GetDisplayURL(const TemplateURL& turl) { in GetDisplayURL() argument
28 return turl.url() ? UTF16ToUTF8(turl.url()->DisplayURL()) : std::string(); in GetDisplayURL()
/external/chromium/chrome/browser/ui/views/
Dedit_search_engine_dialog.cc34 std::wstring GetDisplayURL(const TemplateURL& turl) { in GetDisplayURL() argument
35 return turl.url() ? turl.url()->DisplayURL() : std::wstring(); in GetDisplayURL()
Ddefault_search_view.cc34 const TemplateURL* turl, in GetShortNameAndLogoId() argument
38 DCHECK(turl); in GetShortNameAndLogoId()
42 GURL url = TemplateURLModel::GenerateSearchURL(turl); in GetShortNameAndLogoId()