Lines Matching refs:FastbootPacket

60 static std::string FastbootPacket(uint16_t sequence, const std::string& data = "",  in FastbootPacket()  function
221 mock_socket_->AddReceive(FastbootPacket(0)); in TEST_F()
225 mock_socket_->AddReceive(FastbootPacket(0)); in TEST_F()
353 mock_socket_->ExpectSend(FastbootPacket(++seq, "foo")); in TEST_F()
354 mock_socket_->AddReceive(FastbootPacket(seq, "")); in TEST_F()
355 mock_socket_->ExpectSend(FastbootPacket(++seq, "")); in TEST_F()
356 mock_socket_->AddReceive(FastbootPacket(seq, "bar")); in TEST_F()
366 mock_socket_->ExpectSend(FastbootPacket(1, "foo")); in TEST_F()
367 mock_socket_->AddReceive(FastbootPacket(1, "")); in TEST_F()
368 mock_socket_->ExpectSend(FastbootPacket(2, "")); in TEST_F()
369 mock_socket_->AddReceive(FastbootPacket(2, "bar")); in TEST_F()
374 mock_socket_->ExpectSend(FastbootPacket(3, "12345 67890")); in TEST_F()
375 mock_socket_->AddReceive(FastbootPacket(3)); in TEST_F()
376 mock_socket_->ExpectSend(FastbootPacket(4, "\x01\x02\x03\x04\x05")); in TEST_F()
377 mock_socket_->AddReceive(FastbootPacket(4)); in TEST_F()
383 mock_socket_->ExpectSend(FastbootPacket(5)); in TEST_F()
384 mock_socket_->AddReceive(FastbootPacket(5, "foo bar baz")); in TEST_F()
385 mock_socket_->ExpectSend(FastbootPacket(6)); in TEST_F()
386 mock_socket_->AddReceive(FastbootPacket(6, "\x01\x02\x03\x04\x05")); in TEST_F()
394 mock_socket_->ExpectSend(FastbootPacket(1, "foo")); in TEST_F()
402 mock_socket_->ExpectSend(FastbootPacket(1, "foo")); in TEST_F()
410 mock_socket_->ExpectSend(FastbootPacket(1, "foo")); in TEST_F()
413 mock_socket_->ExpectSend(FastbootPacket(1, "foo")); in TEST_F()
414 mock_socket_->AddReceive(FastbootPacket(1, "")); in TEST_F()
438 mock_socket_->ExpectSend(FastbootPacket(1, chunks[0], kFlagContinuation)); in TEST_F()
439 mock_socket_->AddReceive(FastbootPacket(1)); in TEST_F()
440 mock_socket_->ExpectSend(FastbootPacket(2, chunks[1], kFlagContinuation)); in TEST_F()
441 mock_socket_->AddReceive(FastbootPacket(2)); in TEST_F()
442 mock_socket_->ExpectSend(FastbootPacket(3, chunks[2])); in TEST_F()
443 mock_socket_->AddReceive(FastbootPacket(3)); in TEST_F()
447 mock_socket_->ExpectSend(FastbootPacket(4)); in TEST_F()
448 mock_socket_->AddReceive(FastbootPacket(4, chunks[0], kFlagContinuation)); in TEST_F()
449 mock_socket_->ExpectSend(FastbootPacket(5)); in TEST_F()
450 mock_socket_->AddReceive(FastbootPacket(5, chunks[1], kFlagContinuation)); in TEST_F()
451 mock_socket_->ExpectSend(FastbootPacket(6)); in TEST_F()
452 mock_socket_->AddReceive(FastbootPacket(6, chunks[2])); in TEST_F()
459 mock_socket_->ExpectSend(FastbootPacket(1)); in TEST_F()
460 mock_socket_->AddReceive(FastbootPacket(1, "foo", kFlagContinuation)); in TEST_F()
461 mock_socket_->ExpectSend(FastbootPacket(2)); in TEST_F()
462 mock_socket_->AddReceive(FastbootPacket(2, "bar")); in TEST_F()
469 mock_socket_->ExpectSend(FastbootPacket(1)); in TEST_F()
470 mock_socket_->AddReceive(FastbootPacket(1, "foo", kFlagContinuation)); in TEST_F()
471 mock_socket_->ExpectSend(FastbootPacket(2)); in TEST_F()
479 mock_socket_->ExpectSend(FastbootPacket(1)); in TEST_F()
480 mock_socket_->AddReceive(FastbootPacket(1, "foo", kFlagContinuation)); in TEST_F()
481 mock_socket_->ExpectSend(FastbootPacket(2)); in TEST_F()
483 mock_socket_->ExpectSend(FastbootPacket(2)); in TEST_F()
484 mock_socket_->AddReceive(FastbootPacket(2, "bar")); in TEST_F()
491 mock_socket_->ExpectSend(FastbootPacket(1)); in TEST_F()
492 mock_socket_->AddReceive(FastbootPacket(1, "foobarbaz")); in TEST_F()
500 mock_socket_->ExpectSend(FastbootPacket(1)); 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()
504 mock_socket_->AddReceive(FastbootPacket(1, "correct")); in TEST_F()
512 mock_socket_->ExpectSend(FastbootPacket(1, "foo")); in TEST_F()
514 mock_socket_->AddReceive(FastbootPacket(1)); in TEST_F()
519 mock_socket_->ExpectSend(FastbootPacket(2, "foo")); in TEST_F()