19#ifndef CONNECTION_MOCK_H_
20#define CONNECTION_MOCK_H_ 1
35 std::list<int> receivedFds;
36 bool bufferReceiveAllowed;
37 ssize_t read(
void * buff,
size_t count);
38 char readChar(
const std::string &expected);
39 char peekChar(
const std::string &expected);
42 std::string receiveMore();
45 std::string pendingData;
49 void setFds(
int rd,
int wr);
53 void expect(
const std::string &content);
56 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)
std::string expectBase64()