SyncTests Class Reference
[Test]

Tests synchronization with one or more sync sources enabled. More...

#include <ClientTest.h>

Collaboration diagram for SyncTests:
[legend]

List of all members.

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

ClientTestclient
 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 testMappings ()
virtual void testConfigSyncSource ()
virtual void testServerError506 ()
virtual void testLargeObject2 ()
virtual void testLOItem ()
virtual void testLOItemb64 ()
virtual void testLOItemSlowSync ()
virtual void testLOItemSlowSyncb64 ()
virtual void testLOItemReplaceb64 ()
virtual void testLOItemWithItemEncoding ()
virtual void testLOItemDES ()
virtual void testFileSyncSource ()
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())
SyncTestsaccessClientB
 utility functions for second client
SyncItemListener * itemListener
 Listeners for all sync tests.


Detailed Description

Tests synchronization with one or more sync sources enabled.

When testing multiple sources at once only the first config is checked to see which tests can be executed.


Member Enumeration Documentation

enum SyncTests::DeleteAllMode [protected]

Enumerator:
DELETE_ALL_SYNC  make sure client and server are in sync, delete locally, sync again
DELETE_ALL_REFRESH  delete locally, refresh server


The documentation for this class was generated from the following files:

Generated on Tue Apr 6 13:00:43 2010 for Funambol Outlook Plug-in Library by  doxygen 1.5.7.1