Lines Matching refs:cb

407     sp<CallbackHistorian> cb = sp<CallbackHistorian>::make();  in TEST()  local
409 EXPECT_EQ(sm->registerForNotifications("foofoo", cb).exceptionCode(), Status::EX_SECURITY); in TEST()
423 sp<CallbackHistorian> cb = sp<CallbackHistorian>::make(); in TEST() local
425 EXPECT_EQ(sm->registerForNotifications("foofoo", cb).exceptionCode(), in TEST()
437 sp<CallbackHistorian> cb = sp<CallbackHistorian>::make(); in TEST() local
440 EXPECT_EQ(sm->unregisterForNotifications("foofoo", cb).exceptionCode(), in TEST()
447 sp<CallbackHistorian> cb = sp<CallbackHistorian>::make(); in TEST() local
449 EXPECT_EQ(sm->registerForNotifications("foo@foo", cb).exceptionCode(), in TEST()
463 sp<CallbackHistorian> cb = sp<CallbackHistorian>::make(); in TEST() local
465 EXPECT_TRUE(sm->registerForNotifications("foofoo", cb).isOk()); in TEST()
466 EXPECT_EQ(sm->unregisterForNotifications("foofoo", cb).exceptionCode(), 0); in TEST()
472 sp<CallbackHistorian> cb = sp<CallbackHistorian>::make(); in TEST() local
474 EXPECT_EQ(sm->unregisterForNotifications("foofoo", cb).exceptionCode(), in TEST()
481 sp<CallbackHistorian> cb = sp<CallbackHistorian>::make(); in TEST() local
483 EXPECT_TRUE(sm->registerForNotifications("foofoo", cb).isOk()); in TEST()
487 EXPECT_THAT(cb->registrations, ElementsAre()); in TEST()
488 EXPECT_THAT(cb->binders, ElementsAre()); in TEST()
494 sp<CallbackHistorian> cb = sp<CallbackHistorian>::make(); in TEST() local
498 EXPECT_TRUE(sm->registerForNotifications("asdfasdf", cb).isOk()); in TEST()
502 EXPECT_THAT(cb->registrations, ElementsAre("asdfasdf")); in TEST()
503 EXPECT_THAT(cb->binders, ElementsAre(service)); in TEST()
509 sp<CallbackHistorian> cb = sp<CallbackHistorian>::make(); in TEST() local
516 EXPECT_TRUE(sm->registerForNotifications("asdfasdf", cb).isOk()); in TEST()
518 EXPECT_THAT(cb->registrations, ElementsAre("asdfasdf")); in TEST()
519 EXPECT_THAT(cb->binders, ElementsAre(service)); in TEST()
525 sp<CallbackHistorian> cb = sp<CallbackHistorian>::make(); in TEST() local
530 EXPECT_TRUE(sm->registerForNotifications("asdfasdf", cb).isOk()); in TEST()
536 EXPECT_THAT(cb->registrations, ElementsAre("asdfasdf", "asdfasdf")); in TEST()
537 EXPECT_THAT(cb->registrations, ElementsAre("asdfasdf", "asdfasdf")); in TEST()