Lines Matching refs:AddReceive
91 mock_socket_->AddReceive(QueryPacket(0, seq)); in TEST_F()
93 mock_socket_->AddReceive(InitPacket(seq, kProtocolVersion, 1024)); in TEST_F()
102 mock_socket_->AddReceive(std::string{kIdDeviceQuery, kFlagContinuation, 0, 0, 0x44}); in TEST_F()
104 mock_socket_->AddReceive(std::string{kIdDeviceQuery, kFlagNone, 0, 1, 0x55}); in TEST_F()
107 mock_socket_->AddReceive(std::string{kIdInitialization, kFlagContinuation, 0x44, 0x55, 0}); in TEST_F()
109 mock_socket_->AddReceive(std::string{kIdInitialization, kFlagContinuation, 0x44, 0x56, 1}); in TEST_F()
111 mock_socket_->AddReceive(std::string{kIdInitialization, kFlagContinuation, 0x44, 0x57, 2}); in TEST_F()
113 mock_socket_->AddReceive(std::string{kIdInitialization, kFlagNone, 0x44, 0x58, 0}); in TEST_F()
123 mock_socket_->AddReceive(QueryPacket(0, 0)); in TEST_F()
125 mock_socket_->AddReceive(InitPacket(0, 2, 1024)); in TEST_F()
130 mock_socket_->AddReceive(QueryPacket(0, 0)); in TEST_F()
132 mock_socket_->AddReceive(InitPacket(0, 0, 1024)); in TEST_F()
155 mock_socket_->AddReceive(QueryPacket(0, 0)); in TEST_F()
166 mock_socket_->AddReceive(QueryPacket(0, 0)); in TEST_F()
181 mock_socket_->AddReceive(QueryPacket(0, 0)); in TEST_F()
189 mock_socket_->AddReceive(InitPacket(0, kProtocolVersion, 1024)); in TEST_F()
197 mock_socket_->AddReceive(QueryPacket(0, 0) + "foo"); in TEST_F()
199 mock_socket_->AddReceive(InitPacket(0, kProtocolVersion, 1024) + "bar"); in TEST_F()
208 mock_socket_->AddReceive(QueryPacket(1, 0)); in TEST_F()
209 mock_socket_->AddReceive(QueryPacket(0, 0)); in TEST_F()
212 mock_socket_->AddReceive(InitPacket(1, kProtocolVersion, 1024)); in TEST_F()
213 mock_socket_->AddReceive(InitPacket(0, kProtocolVersion, 1024)); in TEST_F()
221 mock_socket_->AddReceive(FastbootPacket(0)); in TEST_F()
222 mock_socket_->AddReceive(QueryPacket(0, 0)); in TEST_F()
225 mock_socket_->AddReceive(FastbootPacket(0)); in TEST_F()
226 mock_socket_->AddReceive(InitPacket(0, kProtocolVersion, 1024)); in TEST_F()
236 mock_socket_->AddReceive(QueryPacket(0)); in TEST_F()
242 mock_socket_->AddReceive(QueryPacket(0) + std::string{0x00}); in TEST_F()
253 mock_socket_->AddReceive(QueryPacket(0, 0)); in TEST_F()
255 mock_socket_->AddReceive(InitPacket(0, kProtocolVersion, 511)); in TEST_F()
261 mock_socket_->AddReceive(QueryPacket(0, 0)); in TEST_F()
263 mock_socket_->AddReceive(InitPacket(0, 0, 1024)); in TEST_F()
273 mock_socket_->AddReceive(ErrorPacket(0, "error1")); in TEST_F()
279 mock_socket_->AddReceive(QueryPacket(0, 0)); in TEST_F()
281 mock_socket_->AddReceive(ErrorPacket(0, "error2")); in TEST_F()
292 mock_socket_->AddReceive(ErrorPacket(0, "error1", kFlagContinuation)); in TEST_F()
294 mock_socket_->AddReceive(ErrorPacket(1, " ", kFlagContinuation)); in TEST_F()
296 mock_socket_->AddReceive(ErrorPacket(2, "error2")); in TEST_F()
316 mock_socket_->AddReceive(QueryPacket(0, starting_sequence)); in InitializeTransport()
319 mock_socket_->AddReceive( in InitializeTransport()
354 mock_socket_->AddReceive(FastbootPacket(seq, "")); in TEST_F()
356 mock_socket_->AddReceive(FastbootPacket(seq, "bar")); in TEST_F()
367 mock_socket_->AddReceive(FastbootPacket(1, "")); in TEST_F()
369 mock_socket_->AddReceive(FastbootPacket(2, "bar")); in TEST_F()
375 mock_socket_->AddReceive(FastbootPacket(3)); in TEST_F()
377 mock_socket_->AddReceive(FastbootPacket(4)); in TEST_F()
384 mock_socket_->AddReceive(FastbootPacket(5, "foo bar baz")); in TEST_F()
386 mock_socket_->AddReceive(FastbootPacket(6, "\x01\x02\x03\x04\x05")); in TEST_F()
414 mock_socket_->AddReceive(FastbootPacket(1, "")); in TEST_F()
439 mock_socket_->AddReceive(FastbootPacket(1)); in TEST_F()
441 mock_socket_->AddReceive(FastbootPacket(2)); in TEST_F()
443 mock_socket_->AddReceive(FastbootPacket(3)); in TEST_F()
448 mock_socket_->AddReceive(FastbootPacket(4, chunks[0], kFlagContinuation)); in TEST_F()
450 mock_socket_->AddReceive(FastbootPacket(5, chunks[1], kFlagContinuation)); in TEST_F()
452 mock_socket_->AddReceive(FastbootPacket(6, chunks[2])); in TEST_F()
460 mock_socket_->AddReceive(FastbootPacket(1, "foo", kFlagContinuation)); in TEST_F()
462 mock_socket_->AddReceive(FastbootPacket(2, "bar")); in TEST_F()
470 mock_socket_->AddReceive(FastbootPacket(1, "foo", kFlagContinuation)); in TEST_F()
472 mock_socket_->AddReceive(ErrorPacket(2, "test error")); in TEST_F()
480 mock_socket_->AddReceive(FastbootPacket(1, "foo", kFlagContinuation)); in TEST_F()
484 mock_socket_->AddReceive(FastbootPacket(2, "bar")); in TEST_F()
492 mock_socket_->AddReceive(FastbootPacket(1, "foobarbaz")); in TEST_F()
501 mock_socket_->AddReceive(FastbootPacket(0, "sequence too low")); in TEST_F()
502 mock_socket_->AddReceive(FastbootPacket(2, "sequence too high")); in TEST_F()
503 mock_socket_->AddReceive(QueryPacket(1)); in TEST_F()
504 mock_socket_->AddReceive(FastbootPacket(1, "correct")); in TEST_F()
513 mock_socket_->AddReceive(ErrorPacket(0, "ignored error")); in TEST_F()
514 mock_socket_->AddReceive(FastbootPacket(1)); in TEST_F()
520 mock_socket_->AddReceive(ErrorPacket(2, "test error")); in TEST_F()