Refactor XGL unit test
parent
963d475748
commit
2875f7fd5f
|
@ -42,22 +42,16 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "UnitTestPCH.h"
|
#include "UnitTestPCH.h"
|
||||||
#include "AbstractImportExportBase.h"
|
|
||||||
#include <assimp/Importer.hpp>
|
#include <assimp/Importer.hpp>
|
||||||
#include <assimp/postprocess.h>
|
#include <assimp/postprocess.h>
|
||||||
|
|
||||||
|
|
||||||
using namespace Assimp;
|
using namespace Assimp;
|
||||||
|
|
||||||
class utXGLImportExport : public AbstractImportExportBase {
|
|
||||||
public:
|
|
||||||
virtual bool importerTest() {
|
|
||||||
Assimp::Importer importer;
|
|
||||||
const aiScene *scene = importer.ReadFile(ASSIMP_TEST_MODELS_DIR "/XGL/sample_official.xgl", 0);
|
|
||||||
return true;
|
|
||||||
return nullptr != scene;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
TEST_F(utXGLImportExport, importXGLFromFileTest) {
|
TEST(utXGLImporter, importSample_official) {
|
||||||
EXPECT_TRUE(importerTest());
|
Assimp::Importer importer;
|
||||||
|
const aiScene *scene = importer.ReadFile(ASSIMP_TEST_MODELS_DIR "/XGL/sample_official.xgl", aiProcess_ValidateDataStructure);
|
||||||
|
ASSERT_NE(nullptr, scene);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue