Home | History | Annotate | Download | only in esecpp

Lines Matching refs:response

39 inline auto EseReceive(const std::vector<uint8_t>& response) {
40 return Invoke([response](const std::vector<uint8_t>& /* tx */, std::vector<uint8_t>& rx) {
41 const auto end = (rx.size() >= response.size())
42 ? response.end() : (response.begin() + rx.size());
43 std::copy(response.begin(), end, rx.begin());
44 return (int) response.size();
48 // Returns a mocked device that expects a command, will pass the response to the
52 const std::vector<uint8_t>& command, const std::vector<uint8_t>& response) {
54 EXPECT_CALL(*mockEse, transceive(ContainerEq(command), _)).WillOnce(EseReceive(response));