Lines Matching refs:replacements
480 TemplateURLRef::Replacements replacements;
481 EXPECT_TRUE(url_ref.ParseParameter(0, 12, &parsed_url, &replacements));
483 ASSERT_EQ(1U, replacements.size());
484 EXPECT_EQ(static_cast<size_t>(0), replacements[0].index);
485 EXPECT_EQ(TemplateURLRef::SEARCH_TERMS, replacements[0].type);
491 TemplateURLRef::Replacements replacements;
492 EXPECT_FALSE(url_ref.ParseParameter(0, 1, &parsed_url, &replacements));
494 EXPECT_TRUE(replacements.empty());
499 TemplateURLRef::Replacements replacements;
501 EXPECT_EQ(std::string(), url_ref.ParseURL("", &replacements, &valid));
502 EXPECT_TRUE(replacements.empty());
508 TemplateURLRef::Replacements replacements;
510 EXPECT_EQ(std::string(), url_ref.ParseURL("{", &replacements, &valid));
511 EXPECT_TRUE(replacements.empty());
517 TemplateURLRef::Replacements replacements;
519 EXPECT_EQ("{}", url_ref.ParseURL("{}", &replacements, &valid));
520 EXPECT_TRUE(replacements.empty());
526 TemplateURLRef::Replacements replacements;
529 url_ref.ParseURL("{}{{searchTerms}}", &replacements, &valid));
530 ASSERT_EQ(1U, replacements.size());
531 EXPECT_EQ(static_cast<size_t>(3), replacements[0].index);
532 EXPECT_EQ(TemplateURLRef::SEARCH_TERMS, replacements[0].type);
538 TemplateURLRef::Replacements replacements;
540 EXPECT_EQ("{", url_ref.ParseURL("{{searchTerms}", &replacements, &valid));
541 ASSERT_EQ(1U, replacements.size());
542 EXPECT_EQ(static_cast<size_t>(1), replacements[0].index);
543 EXPECT_EQ(TemplateURLRef::SEARCH_TERMS, replacements[0].type);