ReliableOrderedConvertedTest.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. * Copyright (c) 2014, Oculus VR, Inc.
  3. * All rights reserved.
  4. *
  5. * This source code is licensed under the BSD-style license found in the
  6. * LICENSE file in the root directory of this source tree. An additional grant
  7. * of patent rights can be found in the PATENTS file in the same directory.
  8. *
  9. */
  10. #pragma once
  11. #include "TestInterface.h"
  12. #include "RakPeerInterface.h"
  13. #include "GetTime.h"
  14. #include "MessageIdentifiers.h"
  15. #include "BitStream.h"
  16. #include <cstdio>
  17. #include <memory.h>
  18. #include <cstring>
  19. #include <stdlib.h>
  20. #include "Rand.h"
  21. #include "RakNetStatistics.h"
  22. #include "RakSleep.h"
  23. #include "RakMemoryOverride.h"
  24. #include "DebugTools.h"
  25. using namespace RakNet;
  26. class ReliableOrderedConvertedTest : public TestInterface
  27. {
  28. public:
  29. ReliableOrderedConvertedTest(void);
  30. ~ReliableOrderedConvertedTest(void);
  31. int RunTest(DataStructures::List<RakString> params,bool isVerbose,bool noPauses);//should return 0 if no error, or the error number
  32. RakString GetTestName();
  33. RakString ErrorCodeToString(int errorCode);
  34. void DestroyPeers();
  35. protected:
  36. void *LoggedMalloc(size_t size, const char *file, unsigned int line);
  37. void LoggedFree(void *p, const char *file, unsigned int line);
  38. void* LoggedRealloc(void *p, size_t size, const char *file, unsigned int line);
  39. private:
  40. DataStructures::List <RakPeerInterface *> destroyList;
  41. };
粤ICP备19079148号