Lines Matching refs:iter
22 BreakIterator iter(empty, BreakIterator::BREAK_WORD); in TEST() local
23 ASSERT_TRUE(iter.Init()); in TEST()
24 EXPECT_FALSE(iter.Advance()); in TEST()
25 EXPECT_FALSE(iter.IsWord()); in TEST()
26 EXPECT_FALSE(iter.Advance()); // Test unexpected advance after end. in TEST()
27 EXPECT_FALSE(iter.IsWord()); in TEST()
33 BreakIterator iter(str, BreakIterator::BREAK_WORD); in TEST() local
34 ASSERT_TRUE(iter.Init()); in TEST()
35 EXPECT_TRUE(iter.Advance()); in TEST()
36 EXPECT_FALSE(iter.IsWord()); in TEST()
37 EXPECT_EQ(space, iter.GetString()); in TEST()
38 EXPECT_TRUE(iter.Advance()); in TEST()
39 EXPECT_TRUE(iter.IsWord()); in TEST()
40 EXPECT_EQ(UTF8ToUTF16("foo"), iter.GetString()); in TEST()
41 EXPECT_TRUE(iter.Advance()); in TEST()
42 EXPECT_FALSE(iter.IsWord()); in TEST()
43 EXPECT_EQ(space, iter.GetString()); in TEST()
44 EXPECT_TRUE(iter.Advance()); in TEST()
45 EXPECT_TRUE(iter.IsWord()); in TEST()
46 EXPECT_EQ(UTF8ToUTF16("bar"), iter.GetString()); in TEST()
47 EXPECT_TRUE(iter.Advance()); in TEST()
48 EXPECT_FALSE(iter.IsWord()); in TEST()
49 EXPECT_EQ(UTF8ToUTF16("!"), iter.GetString()); in TEST()
50 EXPECT_TRUE(iter.Advance()); in TEST()
51 EXPECT_FALSE(iter.IsWord()); in TEST()
52 EXPECT_EQ(space, iter.GetString()); in TEST()
53 EXPECT_TRUE(iter.Advance()); in TEST()
54 EXPECT_FALSE(iter.IsWord()); in TEST()
55 EXPECT_EQ(UTF8ToUTF16("\n"), iter.GetString()); in TEST()
56 EXPECT_TRUE(iter.Advance()); in TEST()
57 EXPECT_TRUE(iter.IsWord()); in TEST()
58 EXPECT_EQ(UTF8ToUTF16("pouet"), iter.GetString()); in TEST()
59 EXPECT_TRUE(iter.Advance()); in TEST()
60 EXPECT_FALSE(iter.IsWord()); in TEST()
61 EXPECT_EQ(space, iter.GetString()); in TEST()
62 EXPECT_TRUE(iter.Advance()); in TEST()
63 EXPECT_TRUE(iter.IsWord()); in TEST()
64 EXPECT_EQ(UTF8ToUTF16("boom"), iter.GetString()); in TEST()
65 EXPECT_FALSE(iter.Advance()); in TEST()
66 EXPECT_FALSE(iter.IsWord()); in TEST()
67 EXPECT_FALSE(iter.Advance()); // Test unexpected advance after end. in TEST()
68 EXPECT_FALSE(iter.IsWord()); in TEST()
78 BreakIterator iter(str, BreakIterator::BREAK_WORD); in TEST() local
79 ASSERT_TRUE(iter.Init()); in TEST()
80 EXPECT_TRUE(iter.Advance()); in TEST()
81 EXPECT_TRUE(iter.IsWord()); in TEST()
82 EXPECT_EQ(word1, iter.GetString()); in TEST()
83 EXPECT_TRUE(iter.Advance()); in TEST()
84 EXPECT_FALSE(iter.IsWord()); in TEST()
85 EXPECT_EQ(UTF8ToUTF16(" "), iter.GetString()); in TEST()
86 EXPECT_TRUE(iter.Advance()); in TEST()
87 EXPECT_TRUE(iter.IsWord()); in TEST()
88 EXPECT_EQ(word2, iter.GetString()); in TEST()
89 EXPECT_FALSE(iter.Advance()); in TEST()
90 EXPECT_FALSE(iter.IsWord()); in TEST()
91 EXPECT_FALSE(iter.Advance()); // Test unexpected advance after end. in TEST()
92 EXPECT_FALSE(iter.IsWord()); in TEST()
102 BreakIterator iter(str, BreakIterator::BREAK_WORD); in TEST() local
103 ASSERT_TRUE(iter.Init()); in TEST()
104 EXPECT_TRUE(iter.Advance()); in TEST()
105 EXPECT_TRUE(iter.IsWord()); in TEST()
106 EXPECT_EQ(very_wide_word, iter.GetString()); in TEST()
107 EXPECT_TRUE(iter.Advance()); in TEST()
108 EXPECT_FALSE(iter.IsWord()); in TEST()
109 EXPECT_EQ(UTF8ToUTF16(" "), iter.GetString()); in TEST()
110 EXPECT_TRUE(iter.Advance()); in TEST()
111 EXPECT_TRUE(iter.IsWord()); in TEST()
112 EXPECT_EQ(UTF8ToUTF16("a"), iter.GetString()); in TEST()
113 EXPECT_FALSE(iter.Advance()); in TEST()
114 EXPECT_FALSE(iter.IsWord()); in TEST()
115 EXPECT_FALSE(iter.Advance()); // Test unexpected advance after end. in TEST()
116 EXPECT_FALSE(iter.IsWord()); in TEST()
126 BreakIterator iter(str, BreakIterator::BREAK_WORD); in TEST() local
127 ASSERT_TRUE(iter.Init()); in TEST()
128 EXPECT_TRUE(iter.Advance()); in TEST()
129 EXPECT_TRUE(iter.IsWord()); in TEST()
130 EXPECT_EQ(UTF8ToUTF16(term1), iter.GetString()); in TEST()
131 EXPECT_TRUE(iter.Advance()); in TEST()
132 EXPECT_TRUE(iter.IsWord()); in TEST()
133 EXPECT_EQ(UTF8ToUTF16(term2), iter.GetString()); in TEST()
134 EXPECT_TRUE(iter.Advance()); in TEST()
135 EXPECT_TRUE(iter.IsWord()); in TEST()
136 EXPECT_EQ(UTF8ToUTF16(term3), iter.GetString()); in TEST()
137 EXPECT_FALSE(iter.Advance()); in TEST()
138 EXPECT_FALSE(iter.IsWord()); in TEST()
154 BreakIterator iter(str, BreakIterator::BREAK_WORD); in TEST() local
155 ASSERT_TRUE(iter.Init()); in TEST()
156 EXPECT_TRUE(iter.Advance()); in TEST()
157 EXPECT_TRUE(iter.IsWord()); in TEST()
158 EXPECT_EQ(UTF8ToUTF16(term1), iter.GetString()); in TEST()
159 EXPECT_TRUE(iter.Advance()); in TEST()
160 EXPECT_TRUE(iter.IsWord()); in TEST()
161 EXPECT_EQ(UTF8ToUTF16(term2), iter.GetString()); in TEST()
162 EXPECT_TRUE(iter.Advance()); in TEST()
163 EXPECT_TRUE(iter.IsWord()); in TEST()
164 EXPECT_EQ(UTF8ToUTF16(term3), iter.GetString()); in TEST()
165 EXPECT_FALSE(iter.Advance()); in TEST()
166 EXPECT_FALSE(iter.IsWord()); in TEST()
175 BreakIterator iter(str, BreakIterator::BREAK_WORD); in TEST() local
176 ASSERT_TRUE(iter.Init()); in TEST()
177 EXPECT_TRUE(iter.Advance()); in TEST()
178 EXPECT_TRUE(iter.IsWord()); in TEST()
179 EXPECT_EQ(UTF8ToUTF16(term1), iter.GetString()); in TEST()
180 EXPECT_TRUE(iter.Advance()); in TEST()
181 EXPECT_TRUE(iter.IsWord()); in TEST()
182 EXPECT_EQ(UTF8ToUTF16(term2), iter.GetString()); in TEST()
183 EXPECT_FALSE(iter.Advance()); in TEST()
184 EXPECT_FALSE(iter.IsWord()); in TEST()
199 BreakIterator iter(str, BreakIterator::BREAK_WORD); in TEST() local
200 ASSERT_TRUE(iter.Init()); in TEST()
202 EXPECT_TRUE(iter.Advance()); in TEST()
203 EXPECT_TRUE(iter.IsWord()); in TEST()
204 EXPECT_EQ(UTF8ToUTF16(token1), iter.GetString()); in TEST()
206 EXPECT_TRUE(iter.Advance()); in TEST()
207 EXPECT_FALSE(iter.IsWord()); in TEST()
208 EXPECT_EQ(space, iter.GetString()); in TEST()
210 EXPECT_TRUE(iter.Advance()); in TEST()
211 EXPECT_TRUE(iter.IsWord()); in TEST()
212 EXPECT_EQ(UTF8ToUTF16(token2), iter.GetString()); in TEST()
214 EXPECT_TRUE(iter.Advance()); in TEST()
215 EXPECT_FALSE(iter.IsWord()); in TEST()
216 EXPECT_EQ(UTF8ToUTF16(token3), iter.GetString()); in TEST()
218 EXPECT_TRUE(iter.Advance()); in TEST()
219 EXPECT_TRUE(iter.IsWord()); in TEST()
220 EXPECT_EQ(UTF8ToUTF16(token4), iter.GetString()); in TEST()
222 EXPECT_TRUE(iter.Advance()); in TEST()
223 EXPECT_FALSE(iter.IsWord()); in TEST()
224 EXPECT_EQ(space, iter.GetString()); in TEST()
226 EXPECT_TRUE(iter.Advance()); in TEST()
227 EXPECT_TRUE(iter.IsWord()); in TEST()
228 EXPECT_EQ(UTF8ToUTF16(token5), iter.GetString()); in TEST()
230 EXPECT_TRUE(iter.Advance()); in TEST()
231 EXPECT_FALSE(iter.IsWord()); in TEST()
232 EXPECT_EQ(UTF8ToUTF16(token6), iter.GetString()); in TEST()
234 EXPECT_FALSE(iter.Advance()); in TEST()
235 EXPECT_FALSE(iter.IsWord()); in TEST()
242 BreakIterator iter(empty, BreakIterator::BREAK_SPACE); in TEST() local
243 ASSERT_TRUE(iter.Init()); in TEST()
244 EXPECT_FALSE(iter.Advance()); in TEST()
245 EXPECT_FALSE(iter.IsWord()); in TEST()
246 EXPECT_FALSE(iter.Advance()); // Test unexpected advance after end. in TEST()
247 EXPECT_FALSE(iter.IsWord()); in TEST()
252 BreakIterator iter(str, BreakIterator::BREAK_SPACE); in TEST() local
253 ASSERT_TRUE(iter.Init()); in TEST()
254 EXPECT_TRUE(iter.Advance()); in TEST()
255 EXPECT_FALSE(iter.IsWord()); in TEST()
256 EXPECT_EQ(UTF8ToUTF16(" "), iter.GetString()); in TEST()
257 EXPECT_TRUE(iter.Advance()); in TEST()
258 EXPECT_FALSE(iter.IsWord()); in TEST()
259 EXPECT_EQ(UTF8ToUTF16("foo "), iter.GetString()); in TEST()
260 EXPECT_TRUE(iter.Advance()); in TEST()
261 EXPECT_FALSE(iter.IsWord()); in TEST()
262 EXPECT_EQ(UTF8ToUTF16("bar! \n"), iter.GetString()); in TEST()
263 EXPECT_TRUE(iter.Advance()); in TEST()
264 EXPECT_FALSE(iter.IsWord()); in TEST()
265 EXPECT_EQ(UTF8ToUTF16("pouet "), iter.GetString()); in TEST()
266 EXPECT_TRUE(iter.Advance()); in TEST()
267 EXPECT_FALSE(iter.IsWord()); in TEST()
268 EXPECT_EQ(UTF8ToUTF16("boom"), iter.GetString()); in TEST()
269 EXPECT_FALSE(iter.Advance()); in TEST()
270 EXPECT_FALSE(iter.IsWord()); in TEST()
271 EXPECT_FALSE(iter.Advance()); // Test unexpected advance after end. in TEST()
272 EXPECT_FALSE(iter.IsWord()); in TEST()
277 BreakIterator iter(str, BreakIterator::BREAK_SPACE); in TEST() local
278 ASSERT_TRUE(iter.Init()); in TEST()
279 EXPECT_TRUE(iter.Advance()); in TEST()
280 EXPECT_FALSE(iter.IsWord()); in TEST()
281 EXPECT_EQ(UTF8ToUTF16(" "), iter.GetString()); in TEST()
282 EXPECT_TRUE(iter.Advance()); in TEST()
283 EXPECT_FALSE(iter.IsWord()); in TEST()
284 EXPECT_EQ(UTF8ToUTF16("foo "), iter.GetString()); in TEST()
285 EXPECT_TRUE(iter.Advance()); in TEST()
286 EXPECT_FALSE(iter.IsWord()); in TEST()
287 EXPECT_EQ(UTF8ToUTF16("bar! \n"), iter.GetString()); in TEST()
288 EXPECT_TRUE(iter.Advance()); in TEST()
289 EXPECT_FALSE(iter.IsWord()); in TEST()
290 EXPECT_EQ(UTF8ToUTF16("pouet "), iter.GetString()); in TEST()
291 EXPECT_TRUE(iter.Advance()); in TEST()
292 EXPECT_FALSE(iter.IsWord()); in TEST()
293 EXPECT_EQ(UTF8ToUTF16("boom "), iter.GetString()); in TEST()
294 EXPECT_FALSE(iter.Advance()); in TEST()
295 EXPECT_FALSE(iter.IsWord()); in TEST()
296 EXPECT_FALSE(iter.Advance()); // Test unexpected advance after end. in TEST()
297 EXPECT_FALSE(iter.IsWord()); in TEST()
307 BreakIterator iter(str, BreakIterator::BREAK_SPACE); in TEST() local
308 ASSERT_TRUE(iter.Init()); in TEST()
309 EXPECT_TRUE(iter.Advance()); in TEST()
310 EXPECT_FALSE(iter.IsWord()); in TEST()
311 EXPECT_EQ(word1, iter.GetString()); in TEST()
312 EXPECT_TRUE(iter.Advance()); in TEST()
313 EXPECT_FALSE(iter.IsWord()); in TEST()
314 EXPECT_EQ(word2, iter.GetString()); in TEST()
315 EXPECT_FALSE(iter.Advance()); in TEST()
316 EXPECT_FALSE(iter.IsWord()); in TEST()
317 EXPECT_FALSE(iter.Advance()); // Test unexpected advance after end. in TEST()
318 EXPECT_FALSE(iter.IsWord()); in TEST()
328 BreakIterator iter(str, BreakIterator::BREAK_SPACE); in TEST() local
329 ASSERT_TRUE(iter.Init()); in TEST()
330 EXPECT_TRUE(iter.Advance()); in TEST()
331 EXPECT_FALSE(iter.IsWord()); in TEST()
332 EXPECT_EQ(very_wide_word, iter.GetString()); in TEST()
333 EXPECT_TRUE(iter.Advance()); in TEST()
334 EXPECT_FALSE(iter.IsWord()); in TEST()
335 EXPECT_EQ(UTF8ToUTF16("a"), iter.GetString()); in TEST()
336 EXPECT_FALSE(iter.Advance()); in TEST()
337 EXPECT_FALSE(iter.IsWord()); in TEST()
338 EXPECT_FALSE(iter.Advance()); // Test unexpected advance after end. in TEST()
339 EXPECT_FALSE(iter.IsWord()); in TEST()
344 BreakIterator iter(empty, BreakIterator::BREAK_NEWLINE); in TEST() local
345 ASSERT_TRUE(iter.Init()); in TEST()
346 EXPECT_FALSE(iter.Advance()); in TEST()
347 EXPECT_FALSE(iter.IsWord()); in TEST()
348 EXPECT_FALSE(iter.Advance()); // Test unexpected advance after end. in TEST()
349 EXPECT_FALSE(iter.IsWord()); in TEST()
355 BreakIterator iter(str, BreakIterator::BREAK_NEWLINE); in TEST() local
356 ASSERT_TRUE(iter.Init()); in TEST()
357 EXPECT_TRUE(iter.Advance()); in TEST()
358 EXPECT_FALSE(iter.IsWord()); in TEST()
359 EXPECT_EQ(nl, iter.GetString()); in TEST()
360 EXPECT_TRUE(iter.Advance()); in TEST()
361 EXPECT_FALSE(iter.IsWord()); in TEST()
362 EXPECT_EQ(UTF8ToUTF16("foo bar!\n"), iter.GetString()); in TEST()
363 EXPECT_TRUE(iter.Advance()); in TEST()
364 EXPECT_FALSE(iter.IsWord()); in TEST()
365 EXPECT_EQ(nl, iter.GetString()); in TEST()
366 EXPECT_TRUE(iter.Advance()); in TEST()
367 EXPECT_FALSE(iter.IsWord()); in TEST()
368 EXPECT_EQ(UTF8ToUTF16("pouet boom"), iter.GetString()); in TEST()
369 EXPECT_FALSE(iter.Advance()); in TEST()
370 EXPECT_FALSE(iter.IsWord()); in TEST()
371 EXPECT_FALSE(iter.Advance()); // Test unexpected advance after end. in TEST()
372 EXPECT_FALSE(iter.IsWord()); in TEST()
378 BreakIterator iter(str, BreakIterator::BREAK_NEWLINE); in TEST() local
379 ASSERT_TRUE(iter.Init()); in TEST()
380 EXPECT_TRUE(iter.Advance()); in TEST()
381 EXPECT_FALSE(iter.IsWord()); in TEST()
382 EXPECT_EQ(nl, iter.GetString()); in TEST()
383 EXPECT_TRUE(iter.Advance()); in TEST()
384 EXPECT_FALSE(iter.IsWord()); in TEST()
385 EXPECT_EQ(UTF8ToUTF16("foo bar!\n"), iter.GetString()); in TEST()
386 EXPECT_TRUE(iter.Advance()); in TEST()
387 EXPECT_FALSE(iter.IsWord()); in TEST()
388 EXPECT_EQ(nl, iter.GetString()); in TEST()
389 EXPECT_TRUE(iter.Advance()); in TEST()
390 EXPECT_FALSE(iter.IsWord()); in TEST()
391 EXPECT_EQ(UTF8ToUTF16("pouet boom\n"), iter.GetString()); in TEST()
392 EXPECT_FALSE(iter.Advance()); in TEST()
393 EXPECT_FALSE(iter.IsWord()); in TEST()
394 EXPECT_FALSE(iter.Advance()); // Test unexpected advance after end. in TEST()
395 EXPECT_FALSE(iter.IsWord()); in TEST()
405 BreakIterator iter(str, BreakIterator::BREAK_NEWLINE); in TEST() local
406 ASSERT_TRUE(iter.Init()); in TEST()
407 EXPECT_TRUE(iter.Advance()); in TEST()
408 EXPECT_FALSE(iter.IsWord()); in TEST()
409 EXPECT_EQ(line1, iter.GetString()); in TEST()
410 EXPECT_TRUE(iter.Advance()); in TEST()
411 EXPECT_FALSE(iter.IsWord()); in TEST()
412 EXPECT_EQ(line2, iter.GetString()); in TEST()
413 EXPECT_FALSE(iter.Advance()); in TEST()
414 EXPECT_FALSE(iter.IsWord()); in TEST()
415 EXPECT_FALSE(iter.Advance()); // Test unexpected advance after end. in TEST()
416 EXPECT_FALSE(iter.IsWord()); in TEST()
425 BreakIterator iter(str, BreakIterator::BREAK_NEWLINE); in TEST() local
426 ASSERT_TRUE(iter.Init()); in TEST()
427 EXPECT_TRUE(iter.Advance()); in TEST()
428 EXPECT_FALSE(iter.IsWord()); in TEST()
429 EXPECT_EQ(very_wide_line, iter.GetString()); in TEST()
430 EXPECT_TRUE(iter.Advance()); in TEST()
431 EXPECT_FALSE(iter.IsWord()); in TEST()
432 EXPECT_EQ(UTF8ToUTF16("a"), iter.GetString()); in TEST()
433 EXPECT_FALSE(iter.Advance()); in TEST()
434 EXPECT_FALSE(iter.IsWord()); in TEST()
435 EXPECT_FALSE(iter.Advance()); // Test unexpected advance after end. in TEST()
436 EXPECT_FALSE(iter.IsWord()); in TEST()
455 BreakIterator iter(text, BreakIterator::BREAK_CHARACTER); in TEST() local
456 ASSERT_TRUE(iter.Init()); in TEST()
458 EXPECT_TRUE(iter.Advance()); in TEST()
459 EXPECT_EQ(characters[i], iter.GetString()); in TEST()
468 BreakIterator iter(initial_string, BreakIterator::BREAK_WORD); in TEST() local
469 ASSERT_TRUE(iter.Init()); in TEST()
472 EXPECT_TRUE(iter.SetText(long_string.c_str(), long_string.size())); in TEST()
473 EXPECT_TRUE(iter.Advance()); in TEST()
474 EXPECT_TRUE(iter.Advance()); // Advance to ',' in |long_string| in TEST()
477 EXPECT_LT(initial_string.size(), iter.pos()); in TEST()
480 EXPECT_EQ(ASCIIToUTF16(","), iter.GetString()); in TEST()
485 BreakIterator iter(initial_string, BreakIterator::BREAK_WORD); in TEST() local
486 ASSERT_TRUE(iter.Init()); in TEST()
488 EXPECT_TRUE(iter.Advance()); in TEST()
489 EXPECT_EQ(iter.GetString(), iter.GetStringPiece().as_string()); in TEST()
490 EXPECT_EQ(StringPiece16(ASCIIToUTF16("some")), iter.GetStringPiece()); in TEST()
492 EXPECT_TRUE(iter.Advance()); in TEST()
493 EXPECT_TRUE(iter.Advance()); in TEST()
494 EXPECT_EQ(iter.GetString(), iter.GetStringPiece().as_string()); in TEST()
495 EXPECT_EQ(StringPiece16(ASCIIToUTF16("string")), iter.GetStringPiece()); in TEST()
506 BreakIterator iter(text, BreakIterator::BREAK_LINE); in TEST() local
507 ASSERT_TRUE(iter.Init()); in TEST()
509 EXPECT_TRUE(iter.Advance()); in TEST()
511 EXPECT_EQ(base::UTF8ToUTF16("foo "), iter.GetString()); in TEST()
512 EXPECT_EQ(iter.GetWordBreakStatus(), BreakIterator::IS_LINE_OR_CHAR_BREAK); in TEST()
513 EXPECT_TRUE(iter.Advance()); in TEST()
515 EXPECT_EQ(base::WideToUTF16(L"\x1791\x17C1 \n"), iter.GetString()); in TEST()
516 EXPECT_EQ(iter.GetWordBreakStatus(), BreakIterator::IS_LINE_OR_CHAR_BREAK); in TEST()
517 EXPECT_TRUE(iter.Advance()); in TEST()
519 EXPECT_EQ(base::UTF8ToUTF16("Can "), iter.GetString()); in TEST()
520 EXPECT_EQ(iter.GetWordBreakStatus(), BreakIterator::IS_LINE_OR_CHAR_BREAK); in TEST()
521 EXPECT_TRUE(iter.Advance()); in TEST()
523 EXPECT_EQ(base::WideToUTF16(L"\x041C\x0438..."), iter.GetString()); in TEST()
524 EXPECT_EQ(iter.GetWordBreakStatus(), BreakIterator::IS_LINE_OR_CHAR_BREAK); in TEST()
525 EXPECT_FALSE(iter.Advance()); in TEST()
538 BreakIterator iter(text, BreakIterator::BREAK_WORD); in TEST() local
539 ASSERT_TRUE(iter.Init()); in TEST()
541 EXPECT_TRUE(iter.Advance()); in TEST()
543 EXPECT_EQ(base::UTF8ToUTF16("foo"), iter.GetString()); in TEST()
544 EXPECT_EQ(iter.GetWordBreakStatus(), BreakIterator::IS_WORD_BREAK); in TEST()
545 EXPECT_TRUE(iter.Advance()); in TEST()
547 EXPECT_EQ(base::UTF8ToUTF16(" "), iter.GetString()); in TEST()
548 EXPECT_EQ(iter.GetWordBreakStatus(), BreakIterator::IS_SKIPPABLE_WORD); in TEST()
549 EXPECT_TRUE(iter.Advance()); in TEST()
550 EXPECT_EQ(base::WideToUTF16(L"\x1791\x17C1"), iter.GetString()); in TEST()
551 EXPECT_EQ(iter.GetWordBreakStatus(), BreakIterator::IS_WORD_BREAK); in TEST()
552 EXPECT_TRUE(iter.Advance()); in TEST()
554 EXPECT_EQ(base::UTF8ToUTF16(" "), iter.GetString()); in TEST()
555 EXPECT_EQ(iter.GetWordBreakStatus(), BreakIterator::IS_SKIPPABLE_WORD); in TEST()
556 EXPECT_TRUE(iter.Advance()); in TEST()
557 EXPECT_EQ(base::UTF8ToUTF16("\n"), iter.GetString()); in TEST()
558 EXPECT_EQ(iter.GetWordBreakStatus(), BreakIterator::IS_SKIPPABLE_WORD); in TEST()
559 EXPECT_TRUE(iter.Advance()); in TEST()
561 EXPECT_EQ(base::UTF8ToUTF16("Can"), iter.GetString()); in TEST()
562 EXPECT_EQ(iter.GetWordBreakStatus(), BreakIterator::IS_WORD_BREAK); in TEST()
563 EXPECT_TRUE(iter.Advance()); in TEST()
565 EXPECT_EQ(base::UTF8ToUTF16(" "), iter.GetString()); in TEST()
566 EXPECT_EQ(iter.GetWordBreakStatus(), BreakIterator::IS_SKIPPABLE_WORD); in TEST()
567 EXPECT_TRUE(iter.Advance()); in TEST()
568 EXPECT_EQ(base::WideToUTF16(L"\x041C\x0438"), iter.GetString()); in TEST()
569 EXPECT_EQ(iter.GetWordBreakStatus(), BreakIterator::IS_WORD_BREAK); in TEST()
570 EXPECT_TRUE(iter.Advance()); in TEST()
572 EXPECT_EQ(base::UTF8ToUTF16("."), iter.GetString()); in TEST()
573 EXPECT_EQ(iter.GetWordBreakStatus(), BreakIterator::IS_SKIPPABLE_WORD); in TEST()
574 EXPECT_TRUE(iter.Advance()); in TEST()
575 EXPECT_EQ(base::UTF8ToUTF16("."), iter.GetString()); in TEST()
576 EXPECT_EQ(iter.GetWordBreakStatus(), BreakIterator::IS_SKIPPABLE_WORD); in TEST()
577 EXPECT_TRUE(iter.Advance()); in TEST()
578 EXPECT_EQ(base::UTF8ToUTF16("."), iter.GetString()); in TEST()
579 EXPECT_EQ(iter.GetWordBreakStatus(), BreakIterator::IS_SKIPPABLE_WORD); in TEST()
580 EXPECT_FALSE(iter.Advance()); in TEST()