19 #ifndef CONNECTION_MOCK_H_
20 #define CONNECTION_MOCK_H_ 1
33 std::list<int> receivedFds;
34 bool bufferReceiveAllowed;
35 ssize_t read(
void * buff,
size_t count);
36 char readChar(
const std::string &expected);
39 std::string receiveMore();
42 std::string pendingData;
46 void setFds(
int rd,
int wr);
50 void expect(
const std::string &content);
52 void send(
const std::string &content);
void allowBufferReceive(bool state)
void expectBuffer(SharedBuffer &fd)
void shutdown(bool rd, bool wr)
void expect(const std::string &content)
void send(const std::string &content)
void setFds(int rd, int wr)
void expectXml(const std::string &xml)