Lines Matching refs:mt
69 auto mt = builder.build(text, true /* hyphenation */, true /* full layout */, in TEST() local
72 EXPECT_EQ(MinikinRect(0.0f, 0.0f, 0.0f, 0.0f), mt->getBounds(text, Range(0, 0))); in TEST()
73 EXPECT_EQ(MinikinRect(0.0f, 10.0f, 10.0f, 0.0f), mt->getBounds(text, Range(0, 1))); in TEST()
74 EXPECT_EQ(MinikinRect(0.0f, 10.0f, 20.0f, 0.0f), mt->getBounds(text, Range(0, 2))); in TEST()
75 EXPECT_EQ(MinikinRect(0.0f, 10.0f, 10.0f, 0.0f), mt->getBounds(text, Range(1, 2))); in TEST()
76 EXPECT_EQ(MinikinRect(0.0f, 10.0f, 130.0f, 0.0f), mt->getBounds(text, Range(0, text.size()))); in TEST()
87 auto mt = builder.build(text, true /* hyphenation */, true /* full layout */, in TEST() local
90 EXPECT_EQ(MinikinRect(0.0f, 10.0f, 10.0f, 0.0f), mt->getBounds(text, Range(0, 1))); in TEST()
101 auto mt = builder.build(text, true /* hyphenation */, true /* full layout */, in TEST() local
104 EXPECT_EQ(MinikinRect(0.0f, 30.0f, 30.0f, 0.0f), mt->getBounds(text, Range(0, 2))); in TEST()
119 auto mt = builder.build(text, true /* hyphenation */, true /* full layout */, in TEST() local
122 EXPECT_EQ(MinikinRect(0.0f, 0.0f, 0.0f, 0.0f), mt->getBounds(text, Range(0, 0))); in TEST()
123 EXPECT_EQ(MinikinRect(0.0f, 10.0f, 10.0f, 0.0f), mt->getBounds(text, Range(0, 1))); in TEST()
124 EXPECT_EQ(MinikinRect(0.0f, 10.0f, 20.0f, 0.0f), mt->getBounds(text, Range(0, 2))); in TEST()
125 EXPECT_EQ(MinikinRect(0.0f, 10.0f, 10.0f, 0.0f), mt->getBounds(text, Range(1, 2))); in TEST()
126 EXPECT_EQ(MinikinRect(0.0f, 0.0f, 0.0f, 0.0f), mt->getBounds(text, Range(7, 7))); in TEST()
127 EXPECT_EQ(MinikinRect(0.0f, 20.0f, 20.0f, 0.0f), mt->getBounds(text, Range(7, 8))); in TEST()
128 EXPECT_EQ(MinikinRect(0.0f, 10.0f, 30.0f, 0.0f), mt->getBounds(text, Range(6, 8))); in TEST()
129 EXPECT_EQ(MinikinRect(0.0f, 10.0f, 190.0f, 0.0f), mt->getBounds(text, Range(0, text.size()))); in TEST()
140 auto mt = builder.build(text, true /* hyphenation */, true /* full layout */, in TEST() local
143 EXPECT_EQ(MinikinExtent(0.0f, 0.0f), mt->getExtent(text, Range(0, 0))); in TEST()
144 EXPECT_EQ(MinikinExtent(-80.0f, 20.0f), mt->getExtent(text, Range(0, 1))); in TEST()
145 EXPECT_EQ(MinikinExtent(-80.0f, 20.0f), mt->getExtent(text, Range(0, 2))); in TEST()
146 EXPECT_EQ(MinikinExtent(-80.0f, 20.0f), mt->getExtent(text, Range(1, 2))); in TEST()
147 EXPECT_EQ(MinikinExtent(-80.0f, 20.0f), mt->getExtent(text, Range(0, text.size()))); in TEST()
162 auto mt = builder.build(text, true /* hyphenation */, true /* full layout */, in TEST() local
165 EXPECT_EQ(MinikinExtent(0.0f, 0.0f), mt->getExtent(text, Range(0, 0))); in TEST()
166 EXPECT_EQ(MinikinExtent(-80.0f, 20.0f), mt->getExtent(text, Range(0, 1))); in TEST()
167 EXPECT_EQ(MinikinExtent(-80.0f, 20.0f), mt->getExtent(text, Range(0, 2))); in TEST()
168 EXPECT_EQ(MinikinExtent(-80.0f, 20.0f), mt->getExtent(text, Range(1, 2))); in TEST()
169 EXPECT_EQ(MinikinExtent(0.0f, 0.0f), mt->getExtent(text, Range(7, 7))); in TEST()
170 EXPECT_EQ(MinikinExtent(-160.0f, 40.0f), mt->getExtent(text, Range(7, 8))); in TEST()
171 EXPECT_EQ(MinikinExtent(-160.0f, 40.0f), mt->getExtent(text, Range(6, 8))); in TEST()
172 EXPECT_EQ(MinikinExtent(-160.0f, 40.0f), mt->getExtent(text, Range(0, text.size()))); in TEST()
184 auto mt = builder.build(text, true /* hyphenation */, true /* full layout */, in TEST() local
191 Layout layout = mt->buildLayout(text, Range(0, 0), fullContext, samePaint, in TEST()
195 layout = mt->buildLayout(text, Range(0, 1), fullContext, samePaint, StartHyphenEdit::NO_EDIT, in TEST()
208 layout = mt->buildLayout(text, Range(0, 2), fullContext, samePaint, StartHyphenEdit::NO_EDIT, in TEST()
224 layout = mt->buildLayout(text, Range(1, 2), fullContext, samePaint, StartHyphenEdit::NO_EDIT, in TEST()
237 layout = mt->buildLayout(text, Range(0, text.size()), fullContext, samePaint, in TEST()
267 auto mt = builder.build(text, true /* hyphenation */, true /* full layout */, in TEST() local
274 Layout layout = mt->buildLayout(text, Range(0, 0), fullContext, samePaint, in TEST()
278 layout = mt->buildLayout(text, Range(0, 1), fullContext, samePaint, StartHyphenEdit::NO_EDIT, in TEST()
291 layout = mt->buildLayout(text, Range(0, 2), fullContext, samePaint, StartHyphenEdit::NO_EDIT, in TEST()
307 layout = mt->buildLayout(text, Range(1, 2), fullContext, samePaint, StartHyphenEdit::NO_EDIT, in TEST()
320 layout = mt->buildLayout(text, Range(7, 7), fullContext, samePaint, StartHyphenEdit::NO_EDIT, in TEST()
326 layout = mt->buildLayout(text, Range(7, 8), fullContext, samePaint2, StartHyphenEdit::NO_EDIT, in TEST()
349 auto mt = builder.build(text, true /* hyphenation */, true /* full layout */, in TEST() local
356 Layout layout = mt->buildLayout(text, Range(0, 0), fullContext, differentPaint, in TEST()
360 layout = mt->buildLayout(text, Range(0, 1), fullContext, differentPaint, in TEST()
373 layout = mt->buildLayout(text, Range(0, 2), fullContext, differentPaint, in TEST()
389 layout = mt->buildLayout(text, Range(1, 2), fullContext, differentPaint, in TEST()
402 layout = mt->buildLayout(text, Range(0, text.size()), fullContext, differentPaint, in TEST()
432 auto mt = builder.build(text, true /* hyphenation */, true /* full layout */, in TEST() local
439 Layout layout = mt->buildLayout(text, Range(0, 0), fullContext, differentPaint, in TEST()
443 layout = mt->buildLayout(text, Range(0, 1), fullContext, differentPaint, in TEST()
456 layout = mt->buildLayout(text, Range(0, 2), fullContext, differentPaint, in TEST()
472 layout = mt->buildLayout(text, Range(1, 2), fullContext, differentPaint, in TEST()
485 layout = mt->buildLayout(text, Range(7, 7), fullContext, differentPaint, in TEST()
489 layout = mt->buildLayout(text, Range(7, 8), fullContext, differentPaint, in TEST()
502 layout = mt->buildLayout(text, Range(6, 8), fullContext, differentPaint, in TEST()
518 layout = mt->buildLayout(text, Range(0, text.size()), fullContext, differentPaint, in TEST()