Home | History | Annotate | Download | only in browser

Lines Matching refs:GetCountryCode

51 TEST(AutofillCountryTest, GetCountryCode) {
53 EXPECT_EQ("US", AutofillCountry::GetCountryCode(ASCIIToUTF16("United States"),
55 EXPECT_EQ("CA", AutofillCountry::GetCountryCode(ASCIIToUTF16("Canada"),
59 EXPECT_EQ("US", AutofillCountry::GetCountryCode(ASCIIToUTF16("united states"),
63 EXPECT_EQ("US", AutofillCountry::GetCountryCode(ASCIIToUTF16("US"), "en_US"));
64 EXPECT_EQ("HU", AutofillCountry::GetCountryCode(ASCIIToUTF16("hu"), "en_US"));
65 EXPECT_EQ("CA", AutofillCountry::GetCountryCode(ASCIIToUTF16("CA"), "fr_CA"));
66 EXPECT_EQ("MX", AutofillCountry::GetCountryCode(ASCIIToUTF16("mx"), "fr_CA"));
70 AutofillCountry::GetCountryCode(
72 EXPECT_EQ("US", AutofillCountry::GetCountryCode(ASCIIToUTF16("USA"),
77 AutofillCountry::GetCountryCode(ASCIIToUTF16("Estados Unidos"),
79 EXPECT_EQ("IT", AutofillCountry::GetCountryCode(ASCIIToUTF16("Italia"),
81 EXPECT_EQ("DE", AutofillCountry::GetCountryCode(ASCIIToUTF16("duitsland"),
85 EXPECT_EQ("US", AutofillCountry::GetCountryCode(ASCIIToUTF16("United States"),
87 EXPECT_EQ("US", AutofillCountry::GetCountryCode(ASCIIToUTF16("united states"),
89 EXPECT_EQ("US", AutofillCountry::GetCountryCode(ASCIIToUTF16("USA"), "es"));
94 EXPECT_TRUE(AutofillCountry::GetCountryCode(base::string16(), "en").empty());