Lines Matching refs:transport_
306 // Create |transport_| starting at sequence 0 with 512 byte max packet size. Tests can call
311 // Sets up |mock_socket_| to correctly initialize the protocol and creates |transport_|. This
323 transport_ = Connect(std::unique_ptr<Socket>(mock_socket_), &error);
324 return transport_ != nullptr && error.empty();
327 // Writes |message| to |transport_|, returns true on success.
329 return transport_->Write(message.data(), message.length()) ==
333 // Reads from |transport_|, returns true if it matches |message|.
336 return transport_->Read(&buffer[0], buffer.length()) ==
341 // |mock_socket_| is a raw pointer here because we transfer ownership to |transport_| but we
344 std::unique_ptr<Transport> transport_;
495 EXPECT_EQ(-1, transport_->Read(buffer, 3));
528 EXPECT_EQ(0, transport_->Close());
529 EXPECT_EQ(-1, transport_->Write("foo", 3));
530 EXPECT_EQ(-1, transport_->Read(buffer, sizeof(buffer)));