Home | History | Annotate | Download | only in fastboot

Lines Matching defs:Read

302 // Fixture class to test UDP Transport read/write functionality.
334 bool Read(const std::string& message) {
336 return transport_->Read(&buffer[0], buffer.length()) ==
359 EXPECT_TRUE(Read("bar"));
372 EXPECT_TRUE(Read("bar"));
388 EXPECT_TRUE(Read("foo bar baz"));
389 EXPECT_TRUE(Read("\x01\x02\x03\x04\x05"));
421 // at the socket layer, a single call to Transport::Read() and Transport::Write() is all the
453 EXPECT_TRUE(Read(data));
464 EXPECT_TRUE(Read("foobar"));
474 EXPECT_FALSE(Read("foo"));
486 EXPECT_TRUE(Read("foobar"));
489 // Tests read overflow returns -1 to indicate the failure.
495 EXPECT_EQ(-1, transport_->Read(buffer, 3));
506 EXPECT_TRUE(Read("correct"));
530 EXPECT_EQ(-1, transport_->Read(buffer, sizeof(buffer)));