#include <ClientTest.h>
Public Member Functions | |
SyncTests (const std::string &name, ClientTest &cl, std::vector< int > sourceIndices, bool isClientA=true) | |
~SyncTests () | |
virtual void | addTests () |
SyncTests (const std::string &name, ClientTest &cl, std::vector< int > sourceIndices, bool isClientA=true) | |
~SyncTests () | |
virtual void | addTests () |
Public Attributes | |
ClientTest & | client |
Protected Types | |
enum | DeleteAllMode { DELETE_ALL_SYNC, DELETE_ALL_REFRESH, DELETE_ALL_SYNC, DELETE_ALL_REFRESH } |
enum | DeleteAllMode { DELETE_ALL_SYNC, DELETE_ALL_REFRESH, DELETE_ALL_SYNC, DELETE_ALL_REFRESH } |
typedef std::vector< std::pair < int, LocalTests * > >::iterator | source_it |
typedef std::vector< std::pair < int, LocalTests * > >::iterator | source_it |
Protected Member Functions | |
virtual void | compareDatabases () |
virtual void | deleteAll (DeleteAllMode mode=DELETE_ALL_SYNC) |
virtual void | doCopy () |
virtual void | refreshClient () |
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) |
virtual void | sync (SyncMode syncMode, const std::string &logprefix="", CheckSyncReport checkReport=CheckSyncReport(), long maxMsgSize=0, long maxObjSize=0, bool loSupport=false, const char *encoding="") |
virtual void | compareDatabases () |
virtual void | deleteAll (DeleteAllMode mode=DELETE_ALL_SYNC) |
virtual void | doCopy () |
virtual void | refreshClient () |
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) |
virtual void | sync (SyncMode syncMode, const std::string &logprefix="", CheckSyncReport checkReport=CheckSyncReport(), long maxMsgSize=0, long maxObjSize=0, bool loSupport=false, const char *encoding="") |
Protected Attributes | |
std::vector< std::pair< int, LocalTests * > > | sources |
int * | sourceArray |
SyncTests * | accessClientB |
Definition at line 681 of file ClientTest.h.
typedef std::vector< std::pair<int, LocalTests *> >::iterator SyncTests::source_it [protected] |
Definition at line 679 of file ClientTest.h.
typedef std::vector< std::pair<int, LocalTests *> >::iterator SyncTests::source_it [protected] |
Definition at line 695 of file ClientTest.h.
enum SyncTests::DeleteAllMode [protected] |
Definition at line 687 of file ClientTest.h.
enum SyncTests::DeleteAllMode [protected] |
Definition at line 703 of file ClientTest.h.
SyncTests::SyncTests | ( | const std::string & | name, | |
ClientTest & | cl, | |||
std::vector< int > | sourceIndices, | |||
bool | isClientA = true | |||
) |
SyncTests::~SyncTests | ( | ) |
virtual void SyncTests::addTests | ( | ) | [virtual] |
adds the supported tests to the instance itself
virtual void SyncTests::compareDatabases | ( | ) | [protected, virtual] |
compare databases of first and second client
virtual void SyncTests::deleteAll | ( | DeleteAllMode | mode = DELETE_ALL_SYNC |
) | [protected, virtual] |
deletes all items locally and on server
virtual void SyncTests::doCopy | ( | ) | [protected, virtual] |
get both clients in sync with empty server, then copy one item from client A to B
virtual void SyncTests::doVarSizes | ( | bool | withMaxMsgSize, | |
bool | withLargeObject, | |||
const char * | encoding | |||
) | [protected, virtual] |
implements testMaxMsg(), testLargeObject(), testLargeObjectEncoded() using a sequence of items with varying sizes
virtual void SyncTests::refreshClient | ( | ) | [protected, virtual] |
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 SyncTests::sync | ( | SyncMode | syncMode, | |
const std::string & | logprefix = "" , |
|||
CheckSyncReport | checkReport = CheckSyncReport() , |
|||
long | maxMsgSize = 0 , |
|||
long | maxObjSize = 0 , |
|||
bool | loSupport = false , |
|||
const char * | encoding = "" | |||
) | [protected, virtual] |
executes a sync with the given options, checks the result and (optionally) the sync report
virtual void SyncTests::testAddUpdate | ( | ) | [protected, virtual] |
virtual void SyncTests::testComplexUpdate | ( | ) | [protected, virtual] |
void SyncTests::testCopy | ( | ) | [inline, protected] |
void SyncTests::testCopy | ( | ) | [inline, protected] |
Definition at line 757 of file ClientTest.h.
References compareDatabases(), and doCopy().
Referenced by addTests().
virtual void SyncTests::testDelete | ( | ) | [protected, virtual] |
virtual void SyncTests::testDeleteAllRefresh | ( | ) | [protected, virtual] |
virtual void SyncTests::testDeleteAllSync | ( | ) | [inline, protected, virtual] |
virtual void SyncTests::testDeleteAllSync | ( | ) | [inline, protected, virtual] |
virtual void SyncTests::testItems | ( | ) | [protected, virtual] |
void SyncTests::testLargeObject | ( | ) | [inline, protected] |
void SyncTests::testLargeObject | ( | ) | [inline, protected] |
void SyncTests::testLargeObjectBin | ( | ) | [inline, protected] |
void SyncTests::testLargeObjectBin | ( | ) | [inline, protected] |
void SyncTests::testLargeObjectEncoded | ( | ) | [inline, protected] |
void SyncTests::testLargeObjectEncoded | ( | ) | [inline, protected] |
virtual void SyncTests::testManyItems | ( | ) | [protected, virtual] |
void SyncTests::testMaxMsg | ( | ) | [inline, protected] |
void SyncTests::testMaxMsg | ( | ) | [inline, protected] |
virtual void SyncTests::testMerge | ( | ) | [protected, virtual] |
virtual void SyncTests::testOneWayFromClient | ( | ) | [protected, virtual] |
virtual void SyncTests::testOneWayFromServer | ( | ) | [protected, virtual] |
virtual void SyncTests::testRefreshFromClientSync | ( | ) | [inline, protected, virtual] |
virtual void SyncTests::testRefreshFromClientSync | ( | ) | [inline, protected, virtual] |
virtual void SyncTests::testRefreshFromServerSync | ( | ) | [inline, protected, virtual] |
virtual void SyncTests::testRefreshFromServerSync | ( | ) | [inline, protected, virtual] |
virtual void SyncTests::testRefreshSemantic | ( | ) | [protected, virtual] |
virtual void SyncTests::testRefreshStatus | ( | ) | [protected, virtual] |
virtual void SyncTests::testSlowSync | ( | ) | [inline, protected, virtual] |
virtual void SyncTests::testSlowSync | ( | ) | [inline, protected, virtual] |
virtual void SyncTests::testTwinning | ( | ) | [protected, virtual] |
virtual void SyncTests::testTwoWaySync | ( | ) | [inline, protected, virtual] |
virtual void SyncTests::testTwoWaySync | ( | ) | [inline, protected, virtual] |
virtual void SyncTests::testUpdate | ( | ) | [protected, virtual] |
SyncTests * SyncTests::accessClientB [protected] |
utility functions for second client
Definition at line 701 of file ClientTest.h.
Referenced by addTests(), compareDatabases(), doCopy(), doVarSizes(), sync(), SyncTests(), testAddUpdate(), testComplexUpdate(), testDelete(), testItems(), testManyItems(), testMerge(), testOneWayFromClient(), testOneWayFromServer(), testTwinning(), testUpdate(), and ~SyncTests().
the client we are testing
Definition at line 684 of file ClientTest.h.
Referenced by addTests(), sync(), and SyncTests().
int * SyncTests::sourceArray [protected] |
the indices from sources, terminated by -1 (for sync())
Definition at line 698 of file ClientTest.h.
Referenced by sync(), SyncTests(), and ~SyncTests().
std::vector< std::pair< int, LocalTests * > > SyncTests::sources [protected] |
list with all local test classes for manipulating the sources and their index in the client
Definition at line 694 of file ClientTest.h.
Referenced by addTests(), compareDatabases(), deleteAll(), doCopy(), doVarSizes(), refreshClient(), SyncTests(), testAddUpdate(), testComplexUpdate(), testDelete(), testDeleteAllRefresh(), testItems(), testManyItems(), testMerge(), testOneWayFromClient(), testOneWayFromServer(), testRefreshSemantic(), testRefreshStatus(), testTwinning(), testUpdate(), and ~SyncTests().