You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

44 regels
937 B

  1. #ifndef TESTSCENEPREPROCESSOR_H
  2. #define TESTSCENEPREPROCESSOR_H
  3. #include <cppunit/TestFixture.h>
  4. #include <cppunit/extensions/HelperMacros.h>
  5. #include <assimp/mesh.h>
  6. #include <assimp/scene.h>
  7. #include <assimp/Importer.hpp>
  8. #include <ScenePreprocessor.h>
  9. using namespace std;
  10. using namespace Assimp;
  11. class ScenePreprocessorTest : public CPPUNIT_NS :: TestFixture
  12. {
  13. CPPUNIT_TEST_SUITE (ScenePreprocessorTest);
  14. CPPUNIT_TEST (testMeshPreprocessingPos);
  15. CPPUNIT_TEST (testMeshPreprocessingNeg);
  16. CPPUNIT_TEST (testAnimationPreprocessingPos);
  17. CPPUNIT_TEST_SUITE_END ();
  18. public:
  19. void setUp (void);
  20. void tearDown (void);
  21. protected:
  22. void testMeshPreprocessingPos (void);
  23. void testMeshPreprocessingNeg (void);
  24. void testAnimationPreprocessingPos (void);
  25. private:
  26. void CheckIfOnly(aiMesh* p,unsigned int num, unsigned flag);
  27. ScenePreprocessor* pp;
  28. aiScene* scene;
  29. };
  30. #endif