55 lines
1.7 KiB
C++
55 lines
1.7 KiB
C++
/*
|
|
* Copyright (c) 2014, Oculus VR, Inc.
|
|
* All rights reserved.
|
|
*
|
|
* This source code is licensed under the BSD-style license found in the
|
|
* RakNet License.txt file in the licenses directory of this source tree. An additional grant
|
|
* of patent rights can be found in the RakNet Patents.txt file in the same directory.
|
|
*
|
|
*
|
|
* Modified work: Copyright (c) 2017, SLikeSoft UG (haftungsbeschränkt)
|
|
*
|
|
* This source code was modified by SLikeSoft. Modifications are licensed under the MIT-style
|
|
* license found in the license.txt file in the root directory of this source tree.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
|
|
#include "TestInterface.h"
|
|
|
|
|
|
#include "slikenet/peerinterface.h"
|
|
#include "slikenet/GetTime.h"
|
|
#include "slikenet/MessageIdentifiers.h"
|
|
#include "slikenet/BitStream.h"
|
|
#include <cstdio>
|
|
#include <memory.h>
|
|
#include <cstring>
|
|
#include <stdlib.h>
|
|
#include "slikenet/Rand.h"
|
|
#include "slikenet/statistics.h"
|
|
#include "slikenet/sleep.h"
|
|
#include "slikenet/memoryoverride.h"
|
|
|
|
#include "DebugTools.h"
|
|
|
|
using namespace RakNet;
|
|
class ReliableOrderedConvertedTest : public TestInterface
|
|
{
|
|
public:
|
|
ReliableOrderedConvertedTest(void);
|
|
~ReliableOrderedConvertedTest(void);
|
|
int RunTest(DataStructures::List<RakString> params,bool isVerbose,bool noPauses);//should return 0 if no error, or the error number
|
|
RakString GetTestName();
|
|
RakString ErrorCodeToString(int errorCode);
|
|
void DestroyPeers();
|
|
protected:
|
|
void *LoggedMalloc(size_t size, const char *file, unsigned int line);
|
|
void LoggedFree(void *p, const char *file, unsigned int line);
|
|
void* LoggedRealloc(void *p, size_t size, const char *file, unsigned int line);
|
|
private:
|
|
DataStructures::List <RakPeerInterface *> destroyList;
|
|
|
|
};
|