ComprehensiveConvertTest.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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 "RakPeer.h"
  17. #include "RakSleep.h"
  18. #include "RakNetTime.h"
  19. #include "GetTime.h"
  20. #include "DebugTools.h"
  21. #include "CommonFunctions.h"
  22. #include <stdlib.h> // For atoi
  23. #include <cstring> // For strlen
  24. #include "Rand.h"
  25. #include <stdio.h>
  26. using namespace RakNet;
  27. class ComprehensiveConvertTest : public TestInterface
  28. {
  29. public:
  30. ComprehensiveConvertTest(void);
  31. ~ComprehensiveConvertTest(void);
  32. int RunTest(DataStructures::List<RakString> params,bool isVerbose,bool noPauses);//should return 0 if no error, or the error number
  33. RakString GetTestName();
  34. RakString ErrorCodeToString(int errorCode);
  35. void DestroyPeers();
  36. private:
  37. static const int NUM_PEERS =10;
  38. RakPeerInterface *peers[NUM_PEERS];
  39. };
粤ICP备19079148号