OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
---------------------------------------------------------------------------
*/
-#include "ModelDiffer.h"
+#include "SceneDiffer.h"
#include <assimp/scene.h>
#include <assimp/mesh.h>
#include <assimp/material.h>
using namespace Assimp;
-ModelDiffer::ModelDiffer() {
+SceneDiffer::SceneDiffer() {
// empty
}
-ModelDiffer::~ModelDiffer() {
+SceneDiffer::~SceneDiffer() {
// empty
}
-bool ModelDiffer::isEqual( const aiScene *expected, const aiScene *toCompare ) {
+bool SceneDiffer::isEqual( const aiScene *expected, const aiScene *toCompare ) {
if ( expected == toCompare ) {
return true;
}
return true;
}
-void ModelDiffer::showReport() {
+void SceneDiffer::showReport() {
if ( m_diffs.empty() ) {
return;
}
std::cout << std::endl;
}
-void ModelDiffer::reset() {
+void SceneDiffer::reset() {
m_diffs.resize( 0 );
}
-void ModelDiffer::addDiff( const std::string &diff ) {
+void SceneDiffer::addDiff( const std::string &diff ) {
if ( diff.empty() ) {
return;
}
return stream.str();
}
-bool ModelDiffer::compareMesh( aiMesh *expected, aiMesh *toCompare ) {
+bool SceneDiffer::compareMesh( aiMesh *expected, aiMesh *toCompare ) {
if ( expected == toCompare ) {
return true;
}
return true;
}
-bool ModelDiffer::compareFace( aiFace *expected, aiFace *toCompare ) {
+bool SceneDiffer::compareFace( aiFace *expected, aiFace *toCompare ) {
if ( nullptr == expected ) {
return false;
}
return false;
}
-bool ModelDiffer::compareMaterial( aiMaterial *expected, aiMaterial *toCompare ) {
+bool SceneDiffer::compareMaterial( aiMaterial *expected, aiMaterial *toCompare ) {
if ( nullptr == expected ) {
return false;
}
*/
#include "UnitTestPCH.h"
-#include "ModelDiffer.h"
+#include "SceneDiffer.h"
#include <assimp/Importer.hpp>
#include <assimp/scene.h>
aiScene *expected = createScene();
EXPECT_NE( nullptr, scene );
- ModelDiffer differ;
+ SceneDiffer differ;
EXPECT_TRUE( differ.isEqual( expected, scene ) );
differ.showReport();
}