Searched refs:fake_uart_ (Results 1 – 2 of 2) sorted by relevance
/hardware/interfaces/bluetooth/1.0/default/test/ |
D | mct_protocol_unittest.cc | 74 MakeFakeUartFd(CH_CMD, mct_fds, fake_uart_); in SetUp() 75 MakeFakeUartFd(CH_EVT, mct_fds, fake_uart_); in SetUp() 76 MakeFakeUartFd(CH_ACL_IN, mct_fds, fake_uart_); in SetUp() 77 MakeFakeUartFd(CH_ACL_OUT, mct_fds, fake_uart_); in SetUp() 128 write(fake_uart_[CH_ACL_IN], preamble, sizeof(preamble))); in WriteAndExpectInboundAclData() 129 TEMP_FAILURE_RETRY(write(fake_uart_[CH_ACL_IN], payload, strlen(payload))); in WriteAndExpectInboundAclData() 153 TEMP_FAILURE_RETRY(write(fake_uart_[CH_EVT], preamble, sizeof(preamble))); in WriteAndExpectInboundEvent() 154 TEMP_FAILURE_RETRY(write(fake_uart_[CH_EVT], payload, strlen(payload))); in WriteAndExpectInboundEvent() 176 int fake_uart_[CH_MAX]; member in android::hardware::bluetooth::V1_0::implementation::MctProtocolTest 182 fake_uart_[CH_CMD]); in TEST_F() [all …]
|
D | h4_protocol_unittest.cc | 85 fake_uart_ = sockfd[1]; in SetUp() 102 FD_SET(fake_uart_, &read_fds); in SendAndReadUartOutbound() 103 TEMP_FAILURE_RETRY(select(fake_uart_ + 1, &read_fds, NULL, NULL, NULL)); in SendAndReadUartOutbound() 106 TEMP_FAILURE_RETRY(read(fake_uart_, &byte, 1)); in SendAndReadUartOutbound() 122 TEMP_FAILURE_RETRY(write(fake_uart_, preamble, sizeof(preamble))); in WriteAndExpectInboundAclData() 123 TEMP_FAILURE_RETRY(write(fake_uart_, payload, strlen(payload))); in WriteAndExpectInboundAclData() 147 TEMP_FAILURE_RETRY(write(fake_uart_, preamble, sizeof(preamble))); in WriteAndExpectInboundScoData() 148 TEMP_FAILURE_RETRY(write(fake_uart_, payload, strlen(payload))); in WriteAndExpectInboundScoData() 171 TEMP_FAILURE_RETRY(write(fake_uart_, preamble, sizeof(preamble))); in WriteAndExpectInboundEvent() 172 TEMP_FAILURE_RETRY(write(fake_uart_, payload, strlen(payload))); in WriteAndExpectInboundEvent() [all …]
|