Lines Matching refs:res
110 auto res = nfc_cb_->WaitForCallback(kCallbackNameSendEvent); in SetUp() local
111 EXPECT_TRUE(res.no_timeout); in SetUp()
112 EXPECT_EQ(NfcEvent::OPEN_CPLT, res.args->last_event_); in SetUp()
113 EXPECT_EQ(NfcStatus::OK, res.args->last_status_); in SetUp()
120 res = nfc_cb_->WaitForCallback(kCallbackNameSendData); in SetUp()
121 EXPECT_TRUE(res.no_timeout); in SetUp()
122 EXPECT_GE(6ul, res.args->last_data_.size()); in SetUp()
123 EXPECT_EQ((int)NfcStatus::OK, res.args->last_data_[3]); in SetUp()
124 if (res.args->last_data_.size() == 6) { in SetUp()
125 nci_version = res.args->last_data_[4]; in SetUp()
127 EXPECT_EQ(4ul, res.args->last_data_.size()); in SetUp()
129 res = nfc_cb_->WaitForCallback(kCallbackNameSendData); in SetUp()
130 EXPECT_TRUE(res.no_timeout); in SetUp()
139 res = nfc_cb_->WaitForCallback(kCallbackNameSendEvent); in SetUp()
140 EXPECT_TRUE(res.no_timeout); in SetUp()
141 EXPECT_EQ(NfcEvent::CLOSE_CPLT, res.args->last_event_); in SetUp()
142 EXPECT_EQ(NfcStatus::OK, res.args->last_status_); in SetUp()
146 res = nfc_cb_->WaitForCallback(kCallbackNameSendEvent); in SetUp()
147 EXPECT_TRUE(res.no_timeout); in SetUp()
148 EXPECT_EQ(NfcEvent::OPEN_CPLT, res.args->last_event_); in SetUp()
149 EXPECT_EQ(NfcStatus::OK, res.args->last_status_); in SetUp()
155 auto res = nfc_cb_->WaitForCallback(kCallbackNameSendEvent); in TearDown() local
156 EXPECT_TRUE(res.no_timeout); in TearDown()
157 EXPECT_EQ(NfcEvent::CLOSE_CPLT, res.args->last_event_); in TearDown()
158 EXPECT_EQ(NfcStatus::OK, res.args->last_status_); in TearDown()
188 auto res = nfc_cb_->WaitForCallback(kCallbackNameSendData); in TEST_P() local
189 EXPECT_TRUE(res.no_timeout); in TEST_P()
194 EXPECT_EQ(6ul, res.args->last_data_.size()); in TEST_P()
195 EXPECT_EQ((int)NfcStatus::OK, res.args->last_data_[3]); in TEST_P()
196 EXPECT_GE(NCI_VERSION_1_1, res.args->last_data_[4]); in TEST_P()
197 EXPECT_GE(1ul, res.args->last_data_[5]); in TEST_P()
199 EXPECT_EQ(4ul, res.args->last_data_.size()); in TEST_P()
200 EXPECT_EQ((int)NfcStatus::OK, res.args->last_data_[3]); in TEST_P()
202 res = nfc_cb_->WaitForCallback(kCallbackNameSendData); in TEST_P()
203 EXPECT_TRUE(res.no_timeout); in TEST_P()
205 EXPECT_LE(8ul, res.args->last_data_.size()); in TEST_P()
206 EXPECT_EQ(2ul, res.args->last_data_[3]); in TEST_P()
207 EXPECT_GE(1ul, res.args->last_data_[4]); in TEST_P()
208 EXPECT_EQ(NCI_VERSION_2, res.args->last_data_[5]); in TEST_P()
223 auto res = nfc_cb_->WaitForCallback(kCallbackNameSendData); in TEST_P() local
224 EXPECT_TRUE(res.no_timeout); in TEST_P()
229 EXPECT_EQ(6ul, res.args->last_data_.size()); in TEST_P()
230 EXPECT_EQ((int)NfcStatus::OK, res.args->last_data_[3]); in TEST_P()
231 EXPECT_GE(NCI_VERSION_1_1, res.args->last_data_[4]); in TEST_P()
232 EXPECT_EQ(1ul, res.args->last_data_[5]); in TEST_P()
234 EXPECT_EQ(4ul, res.args->last_data_.size()); in TEST_P()
235 EXPECT_EQ((int)NfcStatus::OK, res.args->last_data_[3]); in TEST_P()
237 res = nfc_cb_->WaitForCallback(kCallbackNameSendData); in TEST_P()
238 EXPECT_TRUE(res.no_timeout); in TEST_P()
240 EXPECT_LE(8ul, res.args->last_data_.size()); in TEST_P()
241 EXPECT_EQ(2ul, res.args->last_data_[3]); in TEST_P()
242 EXPECT_EQ(1ul, res.args->last_data_[4]); in TEST_P()
243 EXPECT_EQ(NCI_VERSION_2, res.args->last_data_[5]); in TEST_P()
259 auto res = nfc_cb_->WaitForCallback(kCallbackNameSendData); in TEST_P() local
260 EXPECT_TRUE(res.no_timeout); in TEST_P()
261 EXPECT_EQ(4ul, res.args->last_data_.size()); in TEST_P()
262 EXPECT_EQ(SYNTAX_ERROR, res.args->last_data_[3]); in TEST_P()
279 auto res = nfc_cb_->WaitForCallback(kCallbackNameSendData); in TEST_P() local
280 EXPECT_TRUE(res.no_timeout); in TEST_P()
281 EXPECT_EQ((int)NfcStatus::OK, res.args->last_data_[3]); in TEST_P()
286 res = nfc_cb_->WaitForCallback(kCallbackNameSendData); in TEST_P()
287 EXPECT_TRUE(res.no_timeout); in TEST_P()
296 res = nfc_cb_->WaitForCallback(kCallbackNameSendData); in TEST_P()
297 EXPECT_TRUE(res.no_timeout); in TEST_P()
298 EXPECT_EQ((int)NfcStatus::OK, res.args->last_data_[3]); in TEST_P()
309 res = nfc_cb_->WaitForCallback(kCallbackNameSendData); in TEST_P()
310 EXPECT_TRUE(res.no_timeout); in TEST_P()
311 EXPECT_EQ(4ul, res.args->last_data_.size()); in TEST_P()
312 EXPECT_EQ(SYNTAX_ERROR, res.args->last_data_[3]); in TEST_P()
319 res = nfc_cb_->WaitForCallback(kCallbackNameSendData); in TEST_P()
320 EXPECT_TRUE(res.no_timeout); in TEST_P()
321 EXPECT_EQ(7ul, res.args->last_data_.size()); in TEST_P()
322 EXPECT_EQ((int)NfcStatus::OK, res.args->last_data_[3]); in TEST_P()
337 auto res = nfc_cb_->WaitForCallback(kCallbackNameSendData); in TEST_P() local
338 EXPECT_TRUE(res.no_timeout); in TEST_P()
339 EXPECT_EQ((int)NfcStatus::OK, res.args->last_data_[3]); in TEST_P()
344 res = nfc_cb_->WaitForCallback(kCallbackNameSendData); in TEST_P()
345 EXPECT_TRUE(res.no_timeout); in TEST_P()
354 res = nfc_cb_->WaitForCallback(kCallbackNameSendData); in TEST_P()
355 EXPECT_TRUE(res.no_timeout); in TEST_P()
356 EXPECT_EQ((int)NfcStatus::OK, res.args->last_data_[3]); in TEST_P()
361 res = nfc_cb_->WaitForCallback(kCallbackNameSendData); in TEST_P()
362 EXPECT_TRUE(res.no_timeout); in TEST_P()
363 EXPECT_TRUE(res.no_timeout); in TEST_P()
364 EXPECT_EQ(7ul, res.args->last_data_.size()); in TEST_P()
365 EXPECT_EQ((int)NfcStatus::OK, res.args->last_data_[3]); in TEST_P()
366 uint8_t conn_id = res.args->last_data_[6]; in TEST_P()
367 uint32_t max_payload_size = res.args->last_data_[4]; in TEST_P()
370 res.args->last_data_.resize(0); in TEST_P()
416 auto res = nfc_cb_->WaitForCallback(kCallbackNameSendEvent); in TEST_P() local
417 EXPECT_TRUE(res.no_timeout); in TEST_P()
418 EXPECT_EQ(NfcEvent::OPEN_CPLT, res.args->last_event_); in TEST_P()
419 EXPECT_EQ(NfcStatus::OK, res.args->last_status_); in TEST_P()
430 auto res = nfc_cb_->WaitForCallback(kCallbackNameSendEvent); in TEST_P() local
431 EXPECT_TRUE(res.no_timeout); in TEST_P()
432 EXPECT_EQ(NfcEvent::CLOSE_CPLT, res.args->last_event_); in TEST_P()
433 EXPECT_EQ(NfcStatus::OK, res.args->last_status_); in TEST_P()
439 res = nfc_cb_->WaitForCallback(kCallbackNameSendEvent); in TEST_P()
440 EXPECT_TRUE(res.no_timeout); in TEST_P()
441 EXPECT_EQ(NfcEvent::OPEN_CPLT, res.args->last_event_); in TEST_P()
442 EXPECT_EQ(NfcStatus::OK, res.args->last_status_); in TEST_P()
466 auto res = nfc_cb_->WaitForCallback(kCallbackNameSendEvent); in TEST_P() local
467 EXPECT_TRUE(res.no_timeout); in TEST_P()
468 EXPECT_EQ(NfcEvent::POST_INIT_CPLT, res.args->last_event_); in TEST_P()
489 auto res = nfc_cb_->WaitForCallback(kCallbackNameSendEvent); in TEST_P() local
490 EXPECT_TRUE(res.no_timeout); in TEST_P()
491 EXPECT_EQ(NfcEvent::CLOSE_CPLT, res.args->last_event_); in TEST_P()
492 EXPECT_EQ(NfcStatus::OK, res.args->last_status_); in TEST_P()
498 res = nfc_cb_->WaitForCallback(kCallbackNameSendEvent); in TEST_P()
499 EXPECT_TRUE(res.no_timeout); in TEST_P()
500 EXPECT_EQ(NfcEvent::OPEN_CPLT, res.args->last_event_); in TEST_P()
501 EXPECT_EQ(NfcStatus::OK, res.args->last_status_); in TEST_P()
520 auto res = nfc_cb_->WaitForCallback(kCallbackNameSendEvent); in TEST_P() local
521 EXPECT_TRUE(res.no_timeout); in TEST_P()
522 EXPECT_EQ(NfcEvent::CLOSE_CPLT, res.args->last_event_); in TEST_P()
523 EXPECT_EQ(NfcStatus::OK, res.args->last_status_); in TEST_P()
529 res = nfc_cb_->WaitForCallback(kCallbackNameSendEvent); in TEST_P()
530 EXPECT_TRUE(res.no_timeout); in TEST_P()
531 EXPECT_EQ(NfcEvent::OPEN_CPLT, res.args->last_event_); in TEST_P()
532 EXPECT_EQ(NfcStatus::OK, res.args->last_status_); in TEST_P()
543 auto res = nfc_cb_->WaitForCallback(kCallbackNameSendEvent); in TEST_P() local
544 EXPECT_TRUE(res.no_timeout); in TEST_P()
545 EXPECT_EQ(NfcEvent::CLOSE_CPLT, res.args->last_event_); in TEST_P()
546 EXPECT_EQ(NfcStatus::OK, res.args->last_status_); in TEST_P()
552 res = nfc_cb_->WaitForCallback(kCallbackNameSendEvent); in TEST_P()
553 EXPECT_TRUE(res.no_timeout); in TEST_P()
554 EXPECT_EQ(NfcEvent::OPEN_CPLT, res.args->last_event_); in TEST_P()
555 EXPECT_EQ(NfcStatus::OK, res.args->last_status_); in TEST_P()
566 auto res = nfc_cb_->WaitForCallback(kCallbackNameSendEvent); in TEST_P() local
567 EXPECT_TRUE(res.no_timeout); in TEST_P()
568 EXPECT_EQ(NfcEvent::OPEN_CPLT, res.args->last_event_); in TEST_P()
569 EXPECT_EQ(NfcStatus::OK, res.args->last_status_); in TEST_P()
573 res = nfc_cb_->WaitForCallback(kCallbackNameSendEvent); in TEST_P()
574 EXPECT_TRUE(res.no_timeout); in TEST_P()
575 EXPECT_EQ(NfcEvent::OPEN_CPLT, res.args->last_event_); in TEST_P()
576 EXPECT_EQ(NfcStatus::OK, res.args->last_status_); in TEST_P()