Lines Matching refs:id1

132   std::string id1 = AddNotification();
138 EXPECT_TRUE(notification_list()->HasNotification(id1));
139 EXPECT_FALSE(notification_list()->HasNotification(id1 + "foo"));
144 notification_list()->MarkSinglePopupAsShown(id1, true);
171 std::string id1 = AddNotification();
178 notification_list()->MarkSinglePopupAsDisplayed(id1);
207 NotifierId id1(NotifierId::APPLICATION, "ext1");
222 "id1",
247 id1,
275 EXPECT_TRUE(IsInNotifications(by_notifier_id, "id1"));
281 by_notifier_id = notification_list()->GetNotificationsByNotifierId(id1);
283 EXPECT_FALSE(IsInNotifications(by_notifier_id, "id1"));
291 EXPECT_FALSE(IsInNotifications(by_notifier_id, "id1"));
299 EXPECT_FALSE(IsInNotifications(by_notifier_id, "id1"));
442 std::string id1 = AddPriorityNotification(DEFAULT_PRIORITY);
444 notification_list()->MarkSinglePopupAsShown(id1, true);
479 // id1 promoted to DEFAULT->HIGH, it'll appear as toast (popup).
482 id1,
491 notification_list()->UpdateNotificationMessage(id1, notification.Pass());
493 notification_list()->MarkSinglePopupAsShown(id1, true);
496 // id1 promoted to HIGH->MAX, it'll appear as toast again.
499 id1,
508 notification_list()->UpdateNotificationMessage(id1, notification.Pass());
510 notification_list()->MarkSinglePopupAsShown(id1, true);
513 // id1 demoted to MAX->DEFAULT, no appearing as toast.
516 id1,
525 notification_list()->UpdateNotificationMessage(id1, notification.Pass());
573 std::string id1 = AddNotification();
579 notification_list()->MarkSinglePopupAsDisplayed(id1);
589 EXPECT_EQ(id1, (*popups.begin())->id());
599 EXPECT_EQ(id1, (*iter)->id());
603 std::string id1 = AddNotification();
605 notification_list()->MarkSinglePopupAsDisplayed(id1);
610 const Notification* n1 = GetNotification(id1);
614 notification_list()->MarkSinglePopupAsShown(id1, true);
616 n1 = GetNotification(id1);
631 notification_list()->UpdateNotificationMessage(id1, notification.Pass());
632 n1 = GetNotification(id1);
683 std::string id1;
684 scoped_ptr<Notification> notification(MakeNotification(&id1));
691 EXPECT_TRUE(GetNotification(id1)->shown_as_popup());