Home | History | Annotate | Download | only in notifications

Lines Matching defs:collection

140   BalloonCollectionImpl* collection = GetBalloonCollectionImpl();
145 collection->Add(NewMockNotification("1"), browser()->profile());
152 collection->Add(NewMockNotification("2"), browser()->profile());
158 collection->RemoveById("1");
165 collection->RemoveById("2");
179 BalloonCollectionImpl* collection = GetBalloonCollectionImpl();
186 collection->Add(NewMockNotification("1"), browser()->profile());
187 collection->Add(NewMockNotification("2"), browser()->profile());
194 collection->RemoveById("1");
200 collection->Add(NewMockNotification("1"), browser()->profile());
206 collection->RemoveById("1");
212 collection->RemoveById("2");
217 collection->Add(NewMockNotification("3"), browser()->profile());
219 collection->RemoveById("3");
227 BalloonCollectionImpl* collection = GetBalloonCollectionImpl();
234 collection->AddSystemNotification(notify, browser()->profile(), true, false);
241 collection->UpdateNotification(update);
248 collection->UpdateAndShowNotification(update_and_show);
253 collection->RemoveById(delegate->id());
264 BalloonCollectionImpl* collection = GetBalloonCollectionImpl();
271 collection->Add(NewMockNotification("1"), browser()->profile());
274 collection->Add(NewMockNotification("2"), browser()->profile());
280 collection->RemoveById("2");
284 collection->RemoveById("1");
307 BalloonCollectionImpl* collection = GetBalloonCollectionImpl();
316 collection->Add(NewMockNotification("1"), browser()->profile());
327 collection->Add(NewMockNotification("2"), browser()->profile());
338 collection->AddSystemNotification(
348 collection->RemoveById("1");
353 collection->RemoveById("3");
360 collection->RemoveById("2");
374 BalloonCollectionImpl* collection = GetBalloonCollectionImpl();
381 collection->Add(NewMockNotification("1"), browser()->profile());
388 BalloonCollectionImpl* collection = GetBalloonCollectionImpl();
393 collection->Add(NewMockNotification("1"), profile);
394 collection->Add(NewMockNotification("2"), profile);
404 collection->Add(NewMockNotification("3"), profile);
417 BalloonCollectionImpl* collection = GetBalloonCollectionImpl();
430 collection->Add(NewMockNotification(id), profile);
433 tester->GetBalloonView(collection, NewMockNotification(id));
439 collection->AddSystemNotification(
442 tester->GetBalloonView(collection, NewMockNotification(id));
454 EXPECT_TRUE(collection->UpdateNotification(notify));
456 BalloonViewImpl* view = tester->GetBalloonView(collection, notify);
462 BalloonViewImpl* view = tester->GetBalloonView(collection, notify);
464 EXPECT_TRUE(collection->UpdateNotification(notify));
466 EXPECT_EQ(view, tester->GetBalloonView(collection, notify));
475 EXPECT_TRUE(collection->UpdateAndShowNotification(notify));
477 BalloonViewImpl* view = tester->GetBalloonView(collection, notify);
483 EXPECT_TRUE(collection->UpdateAndShowNotification(notify));
485 BalloonViewImpl* view = tester->GetBalloonView(collection, notify);
492 BalloonCollectionImpl* collection = GetBalloonCollectionImpl();
497 collection->Add(NewMockNotification("1"), profile);
498 collection->AddSystemNotification(
503 tester->GetBalloonView(collection, NewMockNotification("1"));
505 tester->GetBalloonView(collection, NewMockNotification("2"));
525 BalloonCollectionImpl* collection = GetBalloonCollectionImpl();
530 collection->Add(NewMockNotification("1"), profile);
531 collection->AddSystemNotification(
533 collection->Add(NewMockNotification("3"), profile);
548 BalloonCollectionImpl* collection = GetBalloonCollectionImpl();
551 collection->AddSystemNotification(
554 EXPECT_TRUE(collection->AddWebUIMessageCallback(
562 EXPECT_FALSE(collection->AddWebUIMessageCallback(
570 EXPECT_FALSE(collection->AddWebUIMessageCallback(
579 BalloonCollectionImpl* collection = GetBalloonCollectionImpl();
586 collection->AddSystemNotification(
592 EXPECT_TRUE(collection->AddWebUIMessageCallback(