2018-11-04 15:17:22 -05:00
|
|
|
/*******************************************************************************
|
|
|
|
* unittests/libretroshare/services/gxs/GxsPairServiceTester.h *
|
|
|
|
* *
|
2018-11-11 14:42:48 -05:00
|
|
|
* Copyright 2014 by Robert Fernie <retroshare.project@gmail.com> *
|
2018-11-04 15:17:22 -05:00
|
|
|
* *
|
|
|
|
* This program is free software: you can redistribute it and/or modify *
|
|
|
|
* it under the terms of the GNU Affero General Public License as *
|
|
|
|
* published by the Free Software Foundation, either version 3 of the *
|
|
|
|
* License, or (at your option) any later version. *
|
|
|
|
* *
|
|
|
|
* This program is distributed in the hope that it will be useful, *
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
|
|
|
* GNU Lesser General Public License for more details. *
|
|
|
|
* *
|
|
|
|
* You should have received a copy of the GNU Lesser General Public License *
|
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>. *
|
|
|
|
* *
|
|
|
|
******************************************************************************/
|
2014-04-13 08:21:51 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
// from librssimulator
|
|
|
|
#include "testing/SetServiceTester.h"
|
2014-04-27 09:26:14 -04:00
|
|
|
#include "gxstestservice.h"
|
2014-04-13 08:21:51 -04:00
|
|
|
|
|
|
|
class GxsPeerNode;
|
|
|
|
|
|
|
|
class GxsPairServiceTester: public SetServiceTester
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
2014-04-27 09:26:14 -04:00
|
|
|
GxsPairServiceTester(const RsPeerId &peerId1, const RsPeerId &peerId2, int testMode, bool useIdentityService);
|
2014-04-13 08:21:51 -04:00
|
|
|
~GxsPairServiceTester();
|
|
|
|
|
2014-04-27 09:26:14 -04:00
|
|
|
// Make 4 peer version.
|
|
|
|
GxsPairServiceTester(
|
|
|
|
const RsPeerId &peerId1,
|
|
|
|
const RsPeerId &peerId2,
|
|
|
|
const RsPeerId &peerId3,
|
|
|
|
const RsPeerId &peerId4,
|
|
|
|
int testMode,
|
|
|
|
bool useIdentityService);
|
2014-04-13 08:21:51 -04:00
|
|
|
|
|
|
|
GxsPeerNode *getGxsPeerNode(const RsPeerId &id);
|
2014-04-27 09:26:14 -04:00
|
|
|
void PrintCapturedPackets();
|
2014-04-13 08:21:51 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|