test/unit/utScenePreprocessor.cpp
// ------------------------------------------------------------------------------------------------
// Check whether a mesh is preprocessed correctly. Case 1: The mesh doesn't need preprocessing
Check whether a mesh is preprocessed correctly. Case 1: The mesh doesn't need preprocessing
Check whether a mesh is preprocessed correctly . Case 1 : The mesh doesn ' t need preprocessing
TEST_F(ScenePreprocessorTest, testMeshPreprocessingNeg)
{
    aiMesh* p = new aiMesh();
    p->mPrimitiveTypes = aiPrimitiveType_TRIANGLE|aiPrimitiveType_POLYGON;
    ProcessMesh(p);
    EXPECT_EQ(static_cast<unsigned int>(aiPrimitiveType_TRIANGLE|aiPrimitiveType_POLYGON),
              p->mPrimitiveTypes);
    delete p;
}
TEST_F ( ScenePreprocessorTest , testMeshPreprocessingNeg ) { aiMesh * p = new aiMesh ( ) ; p -> mPrimitiveTypes = aiPrimitiveType_TRIANGLE | aiPrimitiveType_POLYGON ; ProcessMesh ( p ) ; EXPECT_EQ ( static_cast < unsigned int > ( aiPrimitiveType_TRIANGLE | aiPrimitiveType_POLYGON ) , p -> mPrimitiveTypes ) ; delete p ; }
Check whether a mesh is preprocessed correctly.
Check whether a mesh is preprocessed correctly .
// should be unmodified