Home
last modified time | relevance | path

Searched refs:CHAR_WIDTH (Results 1 – 3 of 3) sorted by relevance

/frameworks/minikin/tests/unittest/
DGreedyLineBreakerTest.cpp81 constexpr float CHAR_WIDTH = 10.0; in TEST_F() local
89 constexpr float LINE_WIDTH = 1000 * CHAR_WIDTH; in TEST_F()
91 {"This is an example text.", 24 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN}, in TEST_F()
94 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
100 constexpr float LINE_WIDTH = 24 * CHAR_WIDTH; in TEST_F()
102 {"This is an example text.", 24 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN}, in TEST_F()
105 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
111 constexpr float LINE_WIDTH = 23 * CHAR_WIDTH; in TEST_F()
114 { "This is an example ", 18 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
115 { "text." , 5 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
[all …]
DOptimalLineBreakerTest.cpp87 constexpr float CHAR_WIDTH = 10.0; in TEST_F() local
99 constexpr float LINE_WIDTH = 1000 * CHAR_WIDTH; in TEST_F()
101 {"This is an example text.", 24 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN}, in TEST_F()
104 auto actual = doLineBreak(textBuf, HIGH_QUALITY, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
108 actual = doLineBreak(textBuf, HIGH_QUALITY, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
112 actual = doLineBreak(textBuf, BALANCED, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
116 actual = doLineBreak(textBuf, BALANCED, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
122 constexpr float LINE_WIDTH = 24 * CHAR_WIDTH; in TEST_F()
124 {"This is an example text.", 24 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN}, in TEST_F()
126 auto actual = doLineBreak(textBuf, HIGH_QUALITY, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
[all …]
DMeasuredTextTest.cpp28 constexpr float CHAR_WIDTH = 10.0; // Mock implementation always returns 10.0 for advance. variable
53 std::vector<float> expectedWidths = {CHAR_WIDTH, CHAR_WIDTH, REPLACEMENT_WIDTH, in TEST()
54 0, CHAR_WIDTH, CHAR_WIDTH}; in TEST()