Home | History | Annotate | Download | only in notifications

Lines Matching refs:tester

88   void WaitForPanelState(NotificationPanelTester* tester,
99 NotificationPanelTester* tester = GetNotificationPanel()->GetTester();
100 while (!tester->IsVisible(view)) {
142 NotificationPanelTester* tester = panel->GetTester();
147 EXPECT_EQ(1, tester->GetNewNotificationCount());
148 EXPECT_EQ(1, tester->GetNotificationCount());
149 EXPECT_EQ(0, tester->GetStickyNotificationCount());
150 EXPECT_EQ(NotificationPanel::STICKY_AND_NEW, tester->state());
154 EXPECT_EQ(2, tester->GetNewNotificationCount());
155 EXPECT_EQ(2, tester->GetNotificationCount());
156 EXPECT_EQ(NotificationPanel::STICKY_AND_NEW, tester->state());
161 EXPECT_EQ(1, tester->GetNewNotificationCount());
162 EXPECT_EQ(1, tester->GetNotificationCount());
163 EXPECT_EQ(NotificationPanel::STICKY_AND_NEW, tester->state());
167 EXPECT_EQ(0, tester->GetNewNotificationCount());
168 EXPECT_EQ(0, tester->GetNotificationCount());
169 EXPECT_EQ(NotificationPanel::CLOSED, tester->state());
181 NotificationPanelTester* tester = panel->GetTester();
183 EXPECT_EQ(NotificationPanel::CLOSED, tester->state());
189 EXPECT_EQ(NotificationPanel::STICKY_AND_NEW, tester->state());
192 EXPECT_EQ(NotificationPanel::KEEP_SIZE, tester->state());
196 EXPECT_EQ(1, tester->GetNewNotificationCount());
197 EXPECT_EQ(1, tester->GetNotificationCount());
198 EXPECT_EQ(NotificationPanel::KEEP_SIZE, tester->state());
202 EXPECT_EQ(2, tester->GetNewNotificationCount());
203 EXPECT_EQ(2, tester->GetNotificationCount());
204 EXPECT_EQ(NotificationPanel::KEEP_SIZE, tester->state());
208 EXPECT_EQ(1, tester->GetNewNotificationCount());
209 EXPECT_EQ(1, tester->GetNotificationCount());
210 EXPECT_EQ(NotificationPanel::KEEP_SIZE, tester->state());
214 EXPECT_EQ(0, tester->GetNotificationCount());
215 EXPECT_EQ(NotificationPanel::CLOSED, tester->state());
218 EXPECT_EQ(NotificationPanel::STICKY_AND_NEW, tester->state());
222 EXPECT_EQ(0, tester->GetNotificationCount());
223 EXPECT_EQ(NotificationPanel::CLOSED, tester->state());
231 NotificationPanelTester* tester = panel->GetTester();
236 EXPECT_EQ(1, tester->GetNewNotificationCount());
237 EXPECT_EQ(1, tester->GetStickyNotificationCount());
243 EXPECT_EQ(1, tester->GetStickyNotificationCount());
250 EXPECT_EQ(1, tester->GetStickyNotificationCount());
256 EXPECT_EQ(0, tester->GetStickyNotificationCount());
257 EXPECT_EQ(0, tester->GetNewNotificationCount());
266 NotificationPanelTester* tester = panel->GetTester();
268 tester->SetStaleTimeout(0);
269 EXPECT_EQ(NotificationPanel::CLOSED, tester->state());
272 EXPECT_EQ(NotificationPanel::STICKY_AND_NEW, tester->state());
275 EXPECT_EQ(NotificationPanel::STICKY_AND_NEW, tester->state());
278 EXPECT_EQ(NotificationPanel::MINIMIZED, tester->state());
282 EXPECT_EQ(NotificationPanel::MINIMIZED, tester->state());
286 EXPECT_EQ(0, tester->GetNotificationCount());
287 EXPECT_EQ(NotificationPanel::CLOSED, tester->state());
309 NotificationPanelTester* tester = panel->GetTester();
312 tester->SetStaleTimeout(100000);
314 EXPECT_EQ(NotificationPanel::CLOSED, tester->state());
317 EXPECT_EQ(NotificationPanel::STICKY_AND_NEW, tester->state());
323 EXPECT_EQ(NotificationPanel::MINIMIZED, tester->state());
324 WaitForPanelState(tester, PanelController::MINIMIZED);
328 EXPECT_EQ(NotificationPanel::STICKY_AND_NEW, tester->state());
329 WaitForPanelState(tester, PanelController::EXPANDED);
334 EXPECT_EQ(NotificationPanel::MINIMIZED, tester->state());
335 WaitForPanelState(tester, PanelController::MINIMIZED);
340 EXPECT_EQ(3, tester->GetNotificationCount());
341 EXPECT_EQ(NotificationPanel::STICKY_AND_NEW, tester->state());
342 WaitForPanelState(tester, PanelController::EXPANDED);
346 EXPECT_EQ(NotificationPanel::STICKY_AND_NEW, tester->state());
350 EXPECT_EQ(NotificationPanel::STICKY_AND_NEW, tester->state());
355 EXPECT_EQ(1, tester->GetNotificationCount());
356 EXPECT_EQ(NotificationPanel::MINIMIZED, tester->state());
357 WaitForPanelState(tester, PanelController::MINIMIZED);
362 EXPECT_EQ(0, tester->GetNotificationCount());
363 EXPECT_EQ(NotificationPanel::CLOSED, tester->state());
376 NotificationPanelTester* tester = panel->GetTester();
379 tester->SetStaleTimeout(100000);
382 EXPECT_EQ(NotificationPanel::STICKY_AND_NEW, tester->state());
383 WaitForPanelState(tester, PanelController::EXPANDED);
390 NotificationPanelTester* tester = panel->GetTester();
396 WaitForPanelState(tester, PanelController::EXPANDED);
397 PanelController* controller = tester->GetPanelController();
402 EXPECT_EQ(NotificationPanel::CLOSED, tester->state());
405 WaitForPanelState(tester, PanelController::EXPANDED);
406 EXPECT_EQ(NotificationPanel::STICKY_AND_NEW, tester->state());
409 controller = tester->GetPanelController();
413 EXPECT_EQ(NotificationPanel::CLOSED, tester->state());
419 NotificationPanelTester* tester = panel->GetTester();
431 EXPECT_EQ(NotificationPanel::STICKY_AND_NEW, tester->state());
433 tester->GetBalloonView(collection, NewMockNotification(id));
442 tester->GetBalloonView(collection, NewMockNotification(id));
456 BalloonViewImpl* view = tester->GetBalloonView(collection, notify);
457 EXPECT_FALSE(tester->IsVisible(view));
462 BalloonViewImpl* view = tester->GetBalloonView(collection, notify);
463 bool currently_visible = tester->IsVisible(view);
466 EXPECT_EQ(view, tester->GetBalloonView(collection, notify));
467 EXPECT_EQ(currently_visible, tester->IsVisible(view));
477 BalloonViewImpl* view = tester->GetBalloonView(collection, notify);
478 EXPECT_TRUE(tester->IsVisible(view));
485 BalloonViewImpl* view = tester->GetBalloonView(collection, notify);
486 EXPECT_TRUE(tester->IsVisible(view));
494 NotificationPanelTester* tester = panel->GetTester();
501 EXPECT_EQ(NotificationPanel::STICKY_AND_NEW, tester->state());
503 tester->GetBalloonView(collection, NewMockNotification("1"));
505 tester->GetBalloonView(collection, NewMockNotification("2"));
512 EXPECT_TRUE(tester->IsActive(view1));
513 EXPECT_FALSE(tester->IsActive(view2));
516 EXPECT_FALSE(tester->IsActive(view1));
517 EXPECT_TRUE(tester->IsActive(view2));
520 EXPECT_FALSE(tester->IsActive(view1));
521 EXPECT_FALSE(tester->IsActive(view2));
527 NotificationPanelTester* tester = panel->GetTester();
536 EXPECT_EQ(NotificationPanel::STICKY_AND_NEW, tester->state());
537 EXPECT_EQ(3, tester->GetNotificationCount());
538 EXPECT_EQ(1, tester->GetStickyNotificationCount());
543 EXPECT_EQ(1, tester->GetNotificationCount());
544 EXPECT_EQ(1, tester->GetStickyNotificationCount());