26 #include <gtest/gtest.h> 42 void Expect_connect(
int fd,
const std::string& host,
int port,
bool ret);
43 void Expect_nbRead(
int fd,
const std::string&
s,
bool eof,
bool ret);
44 void Expect_nbWrite(
int fd,
const std::string& s,
int bytes,
bool ret);
void Expect_listen(int fd, int backlog, bool ret)
void Expect_setNonBlocking(int fd, bool ret)
void Expect_setReuseAddr(int fd, bool ret)
void Expect_bind(int fd, int port, bool ret)
void Expect_close(int fd)
void Expect_connect(int fd, const std::string &host, int port, bool ret)
void Expect_getError(int ret)
void Expect_get_port(int socket, int ret)
void Expect_nbRead(int fd, const std::string &s, bool eof, bool ret)
void Expect_socket(int ret)
void Expect_accept(int fd, int ret)
void Expect_nbWrite(int fd, const std::string &s, int bytes, bool ret)