PacketAndLowLevelTestsTest.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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 "RakString.h"
  13. #include "RakPeerInterface.h"
  14. #include "MessageIdentifiers.h"
  15. #include "BitStream.h"
  16. #include "RakSleep.h"
  17. #include "RakNetTime.h"
  18. #include "GetTime.h"
  19. #include "DebugTools.h"
  20. #include "CommonFunctions.h"
  21. #include "TestHelpers.h"
  22. #include "PacketChangerPlugin.h"
  23. using namespace RakNet;
  24. class PacketAndLowLevelTestsTest : public TestInterface
  25. {
  26. public:
  27. PacketAndLowLevelTestsTest(void);
  28. ~PacketAndLowLevelTestsTest(void);
  29. int RunTest(DataStructures::List<RakString> params,bool isVerbose,bool noPauses);//should return 0 if no error, or the error number
  30. RakString GetTestName();
  31. RakString ErrorCodeToString(int errorCode);
  32. void DestroyPeers();
  33. protected:
  34. void FloodWithHighPriority(RakPeerInterface* client);
  35. private:
  36. DataStructures::List <RakString> errorList;
  37. DataStructures::List <RakPeerInterface *> destroyList;
  38. };
粤ICP备19079148号