Lines Matching refs:cb
83 sp<RecordingClientCallback> cb = new RecordingClientCallback; in TEST_F() local
86 service->addClientCallback(cb, 1 /*knownClients*/); in TEST_F()
94 ASSERT_THAT(cb->stream, ElementsAre()); in TEST_F()
98 sp<RecordingClientCallback> cb = new RecordingClientCallback; in TEST_F() local
101 service->addClientCallback(cb, 2 /*knownClients*/); in TEST_F()
109 ASSERT_THAT(cb->stream, ElementsAre()); in TEST_F()
113 sp<RecordingClientCallback> cb = new RecordingClientCallback; in TEST_F() local
116 service->addClientCallback(cb, 1 /*knownClients*/); in TEST_F()
122 ASSERT_THAT(cb->stream, ElementsAre(true)); in TEST_F()
128 ASSERT_THAT(cb->stream, ElementsAre(true)); in TEST_F()
131 ASSERT_THAT(cb->stream, ElementsAre(true, false)); // reported only after two intervals in TEST_F()
135 sp<RecordingClientCallback> cb = new RecordingClientCallback; in TEST_F() local
138 service->addClientCallback(cb, 1 /*knownClients*/); in TEST_F()
144 ASSERT_THAT(cb->stream, ElementsAre(true)); in TEST_F()
147 ASSERT_THAT(cb->stream, ElementsAre(true)); in TEST_F()
150 ASSERT_THAT(cb->stream, ElementsAre(true, false)); // reported only after two intervals in TEST_F()
154 sp<RecordingClientCallback> cb = new RecordingClientCallback; in TEST_F() local
157 service->addClientCallback(cb, 1 /*knownClients*/); in TEST_F()
168 ASSERT_THAT(cb->stream, ElementsAre(true)); in TEST_F()
171 ASSERT_THAT(cb->stream, ElementsAre(true)); in TEST_F()
174 ASSERT_THAT(cb->stream, ElementsAre(true, false)); // reported only after two intervals in TEST_F()
178 sp<RecordingClientCallback> cb = new RecordingClientCallback; in TEST_F() local
181 service->addClientCallback(cb, 1 /*knownClients*/); in TEST_F()
185 ASSERT_THAT(cb->stream, ElementsAre(true)); in TEST_F()
191 ASSERT_THAT(cb->stream, ElementsAre(true)); in TEST_F()
194 ASSERT_THAT(cb->stream, ElementsAre(true)); in TEST_F()
197 ASSERT_THAT(cb->stream, ElementsAre(true, false)); // reported only after two intervals in TEST_F()
201 sp<RecordingClientCallback> cb = new RecordingClientCallback; in TEST_F() local
204 service->addClientCallback(cb, 1 /*knownClients*/); in TEST_F()
208 ASSERT_THAT(cb->stream, ElementsAre(true)); in TEST_F()
213 ASSERT_THAT(cb->stream, ElementsAre(true)); in TEST_F()
219 ASSERT_THAT(cb->stream, ElementsAre(true)); in TEST_F()
223 ASSERT_THAT(cb->stream, ElementsAre(true, false)); // reported only after two intervals in TEST_F()