mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
e916299ceb
- removed double update bug thunder found git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7275 b45a01b8-16f6-495d-af2f-9b41ad6348cc
52 lines
810 B
C++
52 lines
810 B
C++
/*
|
|
* nxsmsgsync_test.h
|
|
*
|
|
* Created on: 13 Apr 2014
|
|
* Author: crispy
|
|
*/
|
|
|
|
#ifndef NXSMSGSYNC_TEST_H_
|
|
#define NXSMSGSYNC_TEST_H_
|
|
|
|
|
|
|
|
|
|
class NxsMessageTest : public NxsTestScenario
|
|
{
|
|
|
|
public:
|
|
|
|
NxsMessageTest(uint16_t servtype);
|
|
virtual ~NxsMessageTest();
|
|
std::string getTestName();
|
|
uint16_t getServiceType();
|
|
RsGeneralDataService* getDataService(const RsPeerId& peer);
|
|
|
|
/*!
|
|
* Call to remove files created
|
|
* in the test directory
|
|
*/
|
|
void cleanUp();
|
|
|
|
bool testPassed();
|
|
|
|
private:
|
|
void setUpDataBases();
|
|
void populateStore(RsGeneralDataService* dStore);
|
|
|
|
private:
|
|
|
|
std::string mTestName;
|
|
std::map<RsPeerId, RsGeneralDataService*> mPeerStoreMap;
|
|
std::set<std::string> mStoreNames;
|
|
uint16_t mServType;
|
|
|
|
RsMutex mMsgTestMtx;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif /* NXSMSGSYNC_TEST_H_ */
|