Home | History | Annotate | Download | only in search_engines

Lines Matching refs:TemplateURL

87 TemplateURL* CreateKeywordWithDate(
113 return new TemplateURL(data);
116 TemplateURL* AddKeywordWithDate(
128 TemplateURL* t_url = CreateKeywordWithDate(
138 void ExpectSimilar(const TemplateURL* expected, const TemplateURL* actual) {
167 TemplateURL* AddKeywordWithDate(const std::string& short_name,
179 void AssertEquals(const TemplateURL& expected, const TemplateURL& actual);
182 // current data. The caller owns the returned TemplateURL*.
183 TemplateURL* CreatePreloadedTemplateURL(bool safe_for_autoreplace,
227 TemplateURL* TemplateURLServiceTest::AddKeywordWithDate(
243 void TemplateURLServiceTest::AssertEquals(const TemplateURL& expected,
244 const TemplateURL& actual) {
262 TemplateURL* TemplateURLServiceTest::CreatePreloadedTemplateURL(
276 return new TemplateURL(data);
297 // Add a new TemplateURL.
310 TemplateURL* t_url = new TemplateURL(data);
321 scoped_ptr<TemplateURL> cloned_url(new TemplateURL(t_url->data()));
326 TemplateURL* loaded_url =
350 cloned_url.reset(new TemplateURL(loaded_url->data()));
357 // We changed a TemplateURL in the service, so ensure that the time was
377 // Test what happens when we try to add a TemplateURL with the same keyword as
384 TemplateURL* t_url = new TemplateURL(data);
387 // Because the old TemplateURL was replaceable and the new one wasn't, the new
395 // Now try adding a replaceable TemplateURL. This should just delete the
400 model()->Add(new TemplateURL(data));
407 // Now try adding a non-replaceable TemplateURL again. This should uniquify
412 TemplateURL* t_url2 = new TemplateURL(data);
425 TemplateURL* original1 = AddKeywordWithDate(
428 TemplateURL* original2 = AddKeywordWithDate(
431 TemplateURL* original3 = AddKeywordWithDate(
445 TemplateURL* extension1 = new TemplateURL(data);
452 TemplateURL* extension2 = new TemplateURL(data);
461 TemplateURL* extension3 = new TemplateURL(data);
473 // replaceable TemplateURL. We should still do correct conflict resolution
475 TemplateURL* extension = AddKeywordWithDate(
492 TemplateURL* t_url = new TemplateURL(data);
504 TemplateURL* t_url2 = new TemplateURL(data);
628 // Add a new TemplateURL.
638 TemplateURL* t_url = new TemplateURL(data);
662 scoped_ptr<TemplateURL> cloned_url(new TemplateURL(t_url->data()));
667 const TemplateURL* read_url = model()->GetTemplateURLForKeyword(new_keyword);
674 // Add a new TemplateURL.
677 TemplateURL* t_url = AddKeywordWithDate(
691 scoped_ptr<TemplateURL> cloned_url(new TemplateURL(t_url->data()));
703 TemplateURL* t_url = AddKeywordWithDate(
711 // ResetTemplateURL marks the TemplateURL as unsafe to replace, so it should
724 TemplateURL* t_url = AddKeywordWithDate(
732 // ResetTemplateURL marks the TemplateURL as unsafe to replace, so it should
762 TemplateURL* t_url = new TemplateURL(data);
768 scoped_ptr<TemplateURL> cloned_url(new TemplateURL(t_url->data()));
776 const TemplateURL* default_turl = model()->GetDefaultSearchProvider();
795 TemplateURL* google = model()->GetTemplateURLForKeyword(
804 TemplateURL
812 TemplateURL* bing = model()->GetTemplateURLForKeyword(
834 EXPECT_EQ(TemplateURL::NORMAL, bing->GetType());
866 scoped_ptr<TemplateURL> expected_managed_default(new TemplateURL(data));
868 const TemplateURL* actual_managed_default =
940 const TemplateURL* t_url = AddKeywordWithDate(
952 // Make sure the host->TemplateURL map was updated appropriately.
962 TemplateURL* manual = AddKeywordWithDate(
998 TemplateURL* t_url = AddKeywordWithDate(
1042 TemplateURL* t_url = CreatePreloadedTemplateURL(true, 999999);
1068 TemplateURL* t_url = CreatePreloadedTemplateURL(false, 999999);
1073 scoped_ptr<TemplateURL> cloned_url(new TemplateURL(t_url->data()));
1081 const TemplateURL* url_for_unittest =
1101 TemplateURL* default_search = model()->GetDefaultSearchProvider();
1103 scoped_ptr<TemplateURL> cloned_url(new TemplateURL(default_search->data()));
1123 TemplateURL* t_url = CreatePreloadedTemplateURL(true, 999999);
1129 scoped_ptr<TemplateURL> cloned_url(new TemplateURL(t_url->data()));
1139 const TemplateURL* keyword_url =
1152 const TemplateURL* keyword_url =
1211 TemplateURL* regular_default = AddKeywordWithDate(
1247 scoped_ptr<TemplateURL> expected_managed_default1(new TemplateURL(data));
1248 const TemplateURL* actual_managed_default =
1272 scoped_ptr<TemplateURL> expected_managed_default2(new TemplateURL(data2));
1284 const TemplateURL* actual_final_managed_default =
1318 TemplateURL* new_default =
1334 // Test that if we load a TemplateURL with an empty GUID, the load process
1337 // Add a new TemplateURL.
1346 TemplateURL* t_url = new TemplateURL(data);
1357 const TemplateURL* loaded_url =
1363 // Test that if we load a TemplateURL with duplicate input encodings, the load
1366 // Add a new TemplateURL.
1383 TemplateURL* t_url = new TemplateURL(data);
1389 const TemplateURL* loaded_url =
1406 TemplateURL* user_dse = AddKeywordWithDate(
1413 TemplateURL* ext_dse = CreateKeywordWithDate(
1431 TemplateURL* user_dse = AddKeywordWithDate(
1438 TemplateURL* ext_dse = CreateKeywordWithDate(
1489 scoped_ptr<TemplateURL> expected_managed_default(new TemplateURL(data));
1491 const TemplateURL* actual_managed_default =
1495 TemplateURL* ext_dse = CreateKeywordWithDate(