TestInterface.h 754 B

123456789101112131415161718192021222324252627
  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 "RakString.h"
  12. #include "DS_List.h"
  13. using namespace RakNet;
  14. class TestInterface
  15. {
  16. public:
  17. TestInterface();
  18. virtual ~TestInterface();
  19. virtual int RunTest(DataStructures::List<RakString> params,bool isVerbose,bool noPauses)=0;//should return 0 if no error, or the error number
  20. virtual RakString GetTestName()=0;
  21. virtual RakString ErrorCodeToString(int errorCode)=0;
  22. virtual void DestroyPeers()=0;
  23. };
粤ICP备19079148号