Inheritance diagram for MemoryFile:


With the acceptance tests we will definitely hit the OS. To make the tests run faster though, we could, for example, under the hood remap all TCP or UDP traffic intended for remote hosts to the local host. That could be done quite simply - we return an AcceptanceSocket wrapper around a TcpSocket. AcceptanceSocket will remap all attempts to connect to "host:port" with a connection to "localhost:localport" and the original "host:port" could be written to the socket, then read from out test server listening on the other site, so that it could try to simulate some behavior.
Definition at line 43 of file main-acceptance.cpp.
Public Member Functions | |
| bool | write (const QByteArray &bytes, bool=true) |
| bool | write (const QByteArray &bytes, bool=true) |
Public Attributes | |
| QByteArray | bytes_ |
|
||||||||||||
|
Implements Protocols::Http::File. |
|
||||||||||||
|
Implements Protocols::Http::File. Definition at line 46 of file main-acceptance.cpp. |
|
|
Definition at line 52 of file main-acceptance.cpp. |