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

Public Member Functions | |
| LocalTests (const std::string &name, ClientTest &cl, int sourceParam, ClientTest::Config &co) | |
| virtual void | addTests () |
| adds the supported tests to the instance itself; this is the function that a derived class can override to add additional tests | |
| virtual std::string | insert (CreateSource createSource, const char *data, bool relaxed=false) |
| opens source and inserts the given item; can be called regardless whether the data source already contains items or not | |
| virtual void | update (CreateSource createSource, const char *data, bool check=true) |
| assumes that exactly one element is currently inserted and updates it with the given item | |
| virtual void | deleteAll (CreateSource createSource) |
| deletes all items locally via sync source | |
| virtual void | compareDatabases (const char *refFile, SyncSource ©, bool raiseAssert=true) |
| takes two databases, exports them, then compares them using synccompare | |
| virtual int | insertManyItems (CreateSource createSource, int startIndex=1, int numItems=0, int size=-1) |
| insert artificial items, number of them determined by TEST_EVOLUTION_NUM_ITEMS unless passed explicitly | |
| virtual void | testOpen () |
| virtual void | testIterateTwice () |
| virtual void | testSimpleInsert () |
| virtual void | testLocalDeleteAll () |
| virtual void | testComplexInsert () |
| virtual void | testLocalUpdate () |
| virtual void | testChanges () |
| virtual void | testImport () |
| virtual void | testImportDelete () |
| virtual void | testManyChanges () |
| virtual void | testLinkedItemsParent () |
| virtual void | testLinkedItemsChild () |
| virtual void | testLinkedItemsParentChild () |
| virtual void | testLinkedItemsChildParent () |
| virtual void | testLinkedItemsChildChangesParent () |
| virtual void | testLinkedItemsRemoveParentFirst () |
| virtual void | testLinkedItemsRemoveNormal () |
| virtual void | testLinkedItemsInsertParentTwice () |
| virtual void | testLinkedItemsInsertChildTwice () |
| virtual void | testLinkedItemsParentUpdate () |
| virtual void | testLinkedItemsUpdateChild () |
| virtual void | testLinkedItemsInsertBothUpdateChild () |
| virtual void | testLinkedItemsInsertBothUpdateParent () |
Public Attributes | |
| ClientTest & | client |
| the client we are testing | |
| const int | source |
| number of the source we are testing in that client | |
| const ClientTest::Config | config |
| configuration that corresponds to source | |
| CreateSource | createSourceA |
| helper funclets to create sources | |
| CreateSource | createSourceB |
1.5.1