Lines Matching refs:ASCIIToUTF16
31 new AutofillField(webkit_glue::FormField(ASCIIToUTF16("First Name"),
32 ASCIIToUTF16("First"),
34 ASCIIToUTF16("text"),
37 ASCIIToUTF16("name1")));
39 new AutofillField(webkit_glue::FormField(ASCIIToUTF16("Middle Name"),
40 ASCIIToUTF16("Middle"),
42 ASCIIToUTF16("text"),
45 ASCIIToUTF16("name2")));
47 new AutofillField(webkit_glue::FormField(ASCIIToUTF16("Last Name"),
48 ASCIIToUTF16("Last"),
50 ASCIIToUTF16("text"),
53 ASCIIToUTF16("name3")));
60 field_type_map_.find(ASCIIToUTF16("name1")) != field_type_map_.end());
61 EXPECT_EQ(NAME_FIRST, field_type_map_[ASCIIToUTF16("name1")]);
63 field_type_map_.find(ASCIIToUTF16("name2")) != field_type_map_.end());
64 EXPECT_EQ(NAME_MIDDLE, field_type_map_[ASCIIToUTF16("name2")]);
66 field_type_map_.find(ASCIIToUTF16("name3")) != field_type_map_.end());
67 EXPECT_EQ(NAME_LAST, field_type_map_[ASCIIToUTF16("name3")]);
73 ASCIIToUTF16("firstName"),
75 ASCIIToUTF16("text"),
78 ASCIIToUTF16("name1")));
81 ASCIIToUTF16("middleName"),
83 ASCIIToUTF16("text"),
86 ASCIIToUTF16("name2")));
89 ASCIIToUTF16("lastName"),
91 ASCIIToUTF16("text"),
94 ASCIIToUTF16("name3")));
101 field_type_map_.find(ASCIIToUTF16("name1")) != field_type_map_.end());
102 EXPECT_EQ(NAME_FIRST, field_type_map_[ASCIIToUTF16("name1")]);
104 field_type_map_.find(ASCIIToUTF16("name2")) != field_type_map_.end());
105 EXPECT_EQ(NAME_MIDDLE, field_type_map_[ASCIIToUTF16("name2")]);
107 field_type_map_.find(ASCIIToUTF16("name3")) != field_type_map_.end());
108 EXPECT_EQ(NAME_LAST, field_type_map_[ASCIIToUTF16("name3")]);
114 ASCIIToUTF16("first_name"),
116 ASCIIToUTF16("text"),
119 ASCIIToUTF16("name1")));
122 ASCIIToUTF16("last_name"),
124 ASCIIToUTF16("text"),
127 ASCIIToUTF16("name2")));
134 field_type_map_.find(ASCIIToUTF16("name1")) != field_type_map_.end());
135 EXPECT_EQ(NAME_FIRST, field_type_map_[ASCIIToUTF16("name1")]);
137 field_type_map_.find(ASCIIToUTF16("name2")) != field_type_map_.end());
138 EXPECT_EQ(NAME_LAST, field_type_map_[ASCIIToUTF16("name2")]);
143 new AutofillField(webkit_glue::FormField(ASCIIToUTF16("Name"),
144 ASCIIToUTF16("first_name"),
146 ASCIIToUTF16("text"),
149 ASCIIToUTF16("name1")));
151 new AutofillField(webkit_glue::FormField(ASCIIToUTF16("Name"),
152 ASCIIToUTF16("last_name"),
154 ASCIIToUTF16("text"),
157 ASCIIToUTF16("name2")));
164 field_type_map_.find(ASCIIToUTF16("name1")) != field_type_map_.end());
165 EXPECT_EQ(NAME_FIRST, field_type_map_[ASCIIToUTF16("name1")]);
167 field_type_map_.find(ASCIIToUTF16("name2")) != field_type_map_.end());
168 EXPECT_EQ(NAME_LAST, field_type_map_[ASCIIToUTF16("name2")]);
173 new AutofillField(webkit_glue::FormField(ASCIIToUTF16("First Name"),
174 ASCIIToUTF16("first name"),
176 ASCIIToUTF16("text"),
179 ASCIIToUTF16("name1")));
181 new AutofillField(webkit_glue::FormField(ASCIIToUTF16("Middle Name"),
182 ASCIIToUTF16("middle name"),
184 ASCIIToUTF16("text"),
187 ASCIIToUTF16("name2")));
189 new AutofillField(webkit_glue::FormField(ASCIIToUTF16("Last Name"),
190 ASCIIToUTF16("last name"),
192 ASCIIToUTF16("text"),
195 ASCIIToUTF16("name3")));
202 field_type_map_.find(ASCIIToUTF16("name1")) != field_type_map_.end());
203 EXPECT_EQ(NAME_FIRST, field_type_map_[ASCIIToUTF16("name1")]);
205 field_type_map_.find(ASCIIToUTF16("name2")) != field_type_map_.end());
206 EXPECT_EQ(NAME_MIDDLE, field_type_map_[ASCIIToUTF16("name2")]);
208 field_type_map_.find(ASCIIToUTF16("name3")) != field_type_map_.end());
209 EXPECT_EQ(NAME_LAST, field_type_map_[ASCIIToUTF16("name3")]);
214 new AutofillField(webkit_glue::FormField(ASCIIToUTF16("Name"),
215 ASCIIToUTF16("first_name"),
217 ASCIIToUTF16("text"),
220 ASCIIToUTF16("name1")));
223 ASCIIToUTF16("last_name"),
225 ASCIIToUTF16("text"),
228 ASCIIToUTF16("name2")));
235 field_type_map_.find(ASCIIToUTF16("name1")) != field_type_map_.end());
236 EXPECT_EQ(NAME_FIRST, field_type_map_[ASCIIToUTF16("name1")]);
238 field_type_map_.find(ASCIIToUTF16("name2")) != field_type_map_.end());
239 EXPECT_EQ(NAME_LAST, field_type_map_[ASCIIToUTF16("name2")]);
244 new AutofillField(webkit_glue::FormField(ASCIIToUTF16("Name"),
245 ASCIIToUTF16("first_name"),
247 ASCIIToUTF16("text"),
250 ASCIIToUTF16("name1")));
253 ASCIIToUTF16("middle_name"),
255 ASCIIToUTF16("text"),
258 ASCIIToUTF16("name2")));
261 ASCIIToUTF16("last_name"),
263 ASCIIToUTF16("text"),
266 ASCIIToUTF16("name3")));
273 field_type_map_.find(ASCIIToUTF16("name1")) != field_type_map_.end());
274 EXPECT_EQ(NAME_FIRST, field_type_map_[ASCIIToUTF16("name1")]);
276 field_type_map_.find(ASCIIToUTF16("name2")) != field_type_map_.end());
277 EXPECT_EQ(NAME_MIDDLE_INITIAL, field_type_map_[ASCIIToUTF16("name2")]);
279 field_type_map_.find(ASCIIToUTF16("name3")) != field_type_map_.end());
280 EXPECT_EQ(NAME_LAST, field_type_map_[ASCIIToUTF16("name3")]);
285 new AutofillField(webkit_glue::FormField(ASCIIToUTF16("First Name"),
286 ASCIIToUTF16("first_name"),
288 ASCIIToUTF16("text"),
291 ASCIIToUTF16("name1")));
293 new AutofillField(webkit_glue::FormField(ASCIIToUTF16("MI"),
294 ASCIIToUTF16("middle_name"),
296 ASCIIToUTF16("text"),
299 ASCIIToUTF16("name2")));
301 new AutofillField(webkit_glue::FormField(ASCIIToUTF16("Last Name"),
302 ASCIIToUTF16("last_name"),
304 ASCIIToUTF16("text"),
307 ASCIIToUTF16("name3")));
314 field_type_map_.find(ASCIIToUTF16("name1")) != field_type_map_.end());
315 EXPECT_EQ(NAME_FIRST, field_type_map_[ASCIIToUTF16("name1")]);
317 field_type_map_.find(ASCIIToUTF16("name2")) != field_type_map_.end());
318 EXPECT_EQ(NAME_MIDDLE_INITIAL, field_type_map_[ASCIIToUTF16("name2")]);
320 field_type_map_.find(ASCIIToUTF16("name3")) != field_type_map_.end());
321 EXPECT_EQ(NAME_LAST, field_type_map_[ASCIIToUTF16("name3")]);
326 new AutofillField(webkit_glue::FormField(ASCIIToUTF16("First Name"),
327 ASCIIToUTF16("first_name"),
329 ASCIIToUTF16("text"),
332 ASCIIToUTF16("name1")));
334 new AutofillField(webkit_glue::FormField(ASCIIToUTF16("MI"),
335 ASCIIToUTF16("middle_name"),
337 ASCIIToUTF16("text"),
340 ASCIIToUTF16("name2")));
352 ASCIIToUTF16("XXXnameXXXfirst"),
354 ASCIIToUTF16("text"),
357 ASCIIToUTF16("name1")));
360 ASCIIToUTF16("XXXnameXXXmi"),
362 ASCIIToUTF16("text"),
365 ASCIIToUTF16("name2")));
368 ASCIIToUTF16("XXXnameXXXlast"),
370 ASCIIToUTF16("text"),
373 ASCIIToUTF16("name3")));
380 field_type_map_.find(ASCIIToUTF16("name1")) != field_type_map_.end());
381 EXPECT_EQ(NAME_FIRST, field_type_map_[ASCIIToUTF16("name1")]);
383 field_type_map_.find(ASCIIToUTF16("name2")) != field_type_map_.end());
384 EXPECT_EQ(NAME_MIDDLE_INITIAL, field_type_map_[ASCIIToUTF16("name2")]);
386 field_type_map_.find(ASCIIToUTF16("name3")) != field_type_map_.end());
387 EXPECT_EQ(NAME_LAST, field_type_map_[ASCIIToUTF16("name3")]);
392 webkit_glue::FormField(ASCIIToUTF16("Company"),
393 ASCIIToUTF16("ecom_shipto_postal_company"),
395 ASCIIToUTF16("text"),
398 ASCIIToUTF16("field1")));
407 webkit_glue::FormField(ASCIIToUTF16("First Name"),
408 ASCIIToUTF16("ecom_shipto_postal_name_first"),
410 ASCIIToUTF16("text"),
413 ASCIIToUTF16("name1")));
415 webkit_glue::FormField(ASCIIToUTF16("Middle"),
416 ASCIIToUTF16("ecom_shipto_postal_name_middle"),
418 ASCIIToUTF16("text"),
421 ASCIIToUTF16("name2")));
431 ASCIIToUTF16("ecom_shipto_postal_name_first"),
433 ASCIIToUTF16("text"),
436 ASCIIToUTF16("name1")));
439 ASCIIToUTF16("ecom_shipto_postal_name_middle"),
441 ASCIIToUTF16("text"),
444 ASCIIToUTF16("name2")));
447 ASCIIToUTF16("ecom_shipto_postal_name_last"),
449 ASCIIToUTF16("text"),
452 ASCIIToUTF16("name3")));
459 field_type_map_.find(ASCIIToUTF16("name1")) != field_type_map_.end());
460 EXPECT_EQ(NAME_FIRST, field_type_map_[ASCIIToUTF16("name1")]);
462 field_type_map_.find(ASCIIToUTF16("name2")) != field_type_map_.end());
463 EXPECT_EQ(NAME_MIDDLE, field_type_map_[ASCIIToUTF16("name2")]);
465 field_type_map_.find(ASCIIToUTF16("name3")) != field_type_map_.end());
466 EXPECT_EQ(NAME_LAST, field_type_map_[ASCIIToUTF16("name3")]);