#include <ClientTest.h>
Collaboration diagram for SyncTests:

Public Member Functions | |
| SyncTests (const std::string &name, ClientTest &cl, std::vector< int > sourceIndices, bool isClientA=true) | |
| virtual void | addTests () |
| adds the supported tests to the instance itself | |
Public Attributes | |
| ClientTest & | client |
| the client we are testing | |
Protected Types | |
| enum | DeleteAllMode { DELETE_ALL_SYNC, DELETE_ALL_REFRESH } |
|
typedef std::vector< std::pair< int, LocalTests * > >::iterator | source_it |
Protected Member Functions | |
| virtual void | compareDatabases () |
| compare databases of first and second client | |
| virtual void | deleteAll (DeleteAllMode mode=DELETE_ALL_SYNC) |
| deletes all items locally and on server | |
| virtual void | doCopy () |
| get both clients in sync with empty server, then copy one item from client A to B | |
| virtual void | refreshClient () |
| replicate server database locally: same as SYNC_REFRESH_FROM_SERVER, but done with explicit local delete and then a SYNC_SLOW because some servers do no support SYNC_REFRESH_FROM_SERVER | |
| virtual void | testTwoWaySync () |
| virtual void | testSlowSync () |
| virtual void | testRefreshFromServerSync () |
| virtual void | testRefreshFromClientSync () |
| virtual void | testDeleteAllSync () |
| virtual void | testDeleteAllRefresh () |
| virtual void | testRefreshSemantic () |
| virtual void | testRefreshStatus () |
| void | testCopy () |
| virtual void | testUpdate () |
| virtual void | testComplexUpdate () |
| virtual void | testDelete () |
| virtual void | testMerge () |
| virtual void | testTwinning () |
| virtual void | testOneWayFromServer () |
| virtual void | testOneWayFromClient () |
| virtual void | testItems () |
| virtual void | testAddUpdate () |
| void | testMaxMsg () |
| void | testLargeObject () |
| void | testLargeObjectBin () |
| void | testLargeObjectEncoded () |
| virtual void | testManyItems () |
| virtual void | doVarSizes (bool withMaxMsgSize, bool withLargeObject, const char *encoding) |
| implements testMaxMsg(), testLargeObject(), testLargeObjectEncoded() using a sequence of items with varying sizes | |
| virtual void | sync (SyncMode syncMode, const std::string &logprefix="", CheckSyncReport checkReport=CheckSyncReport(), long maxMsgSize=0, long maxObjSize=0, bool loSupport=false, const char *encoding="") |
| executes a sync with the given options, checks the result and (optionally) the sync report | |
Protected Attributes | |
|
std::vector< std::pair< int, LocalTests * > > | sources |
| list with all local test classes for manipulating the sources and their index in the client | |
| int * | sourceArray |
| the indices from sources, terminated by -1 (for sync()) | |
| SyncTests * | accessClientB |
| utility functions for second client | |
When testing multiple sources at once only the first config is checked to see which tests can be executed.
enum SyncTests::DeleteAllMode [protected] |
1.5.1