|
Instrument Neutral Distributed Interface INDI 2.2.5
|
#include <ConnectionMock.h>
Public Member Functions | |
| ConnectionMock () | |
| ~ConnectionMock () | |
| void | setFds (int rd, int wr) |
| void | shutdown (bool rd, bool wr) |
| void | expect (const std::string &content) |
| void | expectXml (const std::string &xml) |
| std::string | expectBase64 () |
| void | send (const std::string &content) |
| void | send (const std::string &content, const SharedBuffer &buff) |
| void | send (const std::string &content, const SharedBuffer **buffers) |
| void | allowBufferReceive (bool state) |
| void | expectBuffer (SharedBuffer &fd) |
Interface to a mocked connection
Definition at line 30 of file ConnectionMock.h.
| ConnectionMock::ConnectionMock | ( | ) |
Definition at line 35 of file ConnectionMock.cpp.
| ConnectionMock::~ConnectionMock | ( | ) |
Definition at line 43 of file ConnectionMock.cpp.
| void ConnectionMock::allowBufferReceive | ( | bool | state | ) |
Definition at line 70 of file ConnectionMock.cpp.
| void ConnectionMock::expect | ( | const std::string & | content | ) |
Definition at line 167 of file ConnectionMock.cpp.
| std::string ConnectionMock::expectBase64 | ( | ) |
Definition at line 272 of file ConnectionMock.cpp.
| void ConnectionMock::expectBuffer | ( | SharedBuffer & | fd | ) |
Definition at line 156 of file ConnectionMock.cpp.
| void ConnectionMock::expectXml | ( | const std::string & | xml | ) |
Definition at line 286 of file ConnectionMock.cpp.
| void ConnectionMock::send | ( | const std::string & | content | ) |
Definition at line 313 of file ConnectionMock.cpp.
| void ConnectionMock::send | ( | const std::string & | content, |
| const SharedBuffer & | buff | ||
| ) |
Definition at line 418 of file ConnectionMock.cpp.
| void ConnectionMock::send | ( | const std::string & | content, |
| const SharedBuffer ** | buffers | ||
| ) |
Definition at line 357 of file ConnectionMock.cpp.
| void ConnectionMock::setFds | ( | int | rd, |
| int | wr | ||
| ) |
Definition at line 62 of file ConnectionMock.cpp.
| void ConnectionMock::shutdown | ( | bool | rd, |
| bool | wr | ||
| ) |
Definition at line 328 of file ConnectionMock.cpp.