Lines Matching refs:sel
137 int sel = 0; in TEST_F() local
138 TextMenu menu(false, 10, 20, HEADERS, ITEMS, sel, 20, draw_funcs_); in TEST_F()
141 sel = menu.Select(++sel); in TEST_F()
142 ASSERT_EQ(sel, menu.selection()); in TEST_F()
154 sel = menu.Select(--sel); in TEST_F()
155 ASSERT_EQ(sel, menu.selection()); in TEST_F()
166 int sel = 0; in TEST_F() local
167 TextMenu menu(true, 10, 20, HEADERS, ITEMS, sel, 20, draw_funcs_); in TEST_F()
170 sel = menu.Select(++sel); in TEST_F()
171 ASSERT_EQ(sel, menu.selection()); in TEST_F()
183 sel = menu.Select(--sel); in TEST_F()
184 ASSERT_EQ(sel, menu.selection()); in TEST_F()
195 int sel = 1; in TEST_F() local
196 TextMenu menu(true, 3, 20, HEADERS, ITEMS, sel, 20, draw_funcs_); in TEST_F()
201 sel = menu.Select(++sel); in TEST_F()
202 ASSERT_EQ(i + 2, sel); in TEST_F()
208 sel = menu.Select(++sel); in TEST_F()
209 ASSERT_EQ(4, sel); in TEST_F()
220 sel = menu.Select(--sel); in TEST_F()
221 ASSERT_EQ(3 - i, sel); in TEST_F()
227 sel = menu.Select(--sel); in TEST_F()
228 ASSERT_EQ(0, sel); in TEST_F()
245 int sel = 0; in TEST_F() local
247 sel = menu.Select(++sel); in TEST_F()
248 ASSERT_EQ((i + 1) % 3, sel); in TEST_F()
249 ASSERT_EQ(sel, menu.selection()); in TEST_F()
252 sel = 0; in TEST_F()
254 sel = menu.Select(--sel); in TEST_F()
255 ASSERT_EQ(2 - i, sel); in TEST_F()
256 ASSERT_EQ(sel, menu.selection()); in TEST_F()