You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
o3de/Gems/EMotionFX/Code/Tests/Integration/PoseComparisonFixture.h

55 lines
1.7 KiB
C++

/*
* Copyright (c) Contributors to the Open 3D Engine Project.
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include <AzCore/std/smart_ptr/unique_ptr.h>
#include <Tests/SystemComponentFixture.h>
namespace EMotionFX
{
class Actor;
class ActorInstance;
class AnimGraph;
class MotionSet;
struct PoseComparisonFixtureParams
{
const char* m_actorFile = nullptr;
const char* m_animGraphFile = nullptr;
const char* m_motionSetFile = nullptr;
const char* m_recordingFile = nullptr;
PoseComparisonFixtureParams(const char* actorFile, const char* animGraphFile, const char* motionSetFile, const char* recordingFile)
: m_actorFile(actorFile), m_animGraphFile(animGraphFile), m_motionSetFile(motionSetFile), m_recordingFile(recordingFile)
{}
};
class INTEG_PoseComparisonFixture
: public SystemComponentFixture
, public ::testing::WithParamInterface<PoseComparisonFixtureParams>
{
public:
void SetUp() override;
void TearDown() override;
void LoadAssets();
protected:
AZStd::unique_ptr<Actor> m_actor = nullptr;
ActorInstance* m_actorInstance = nullptr;
AnimGraph* m_animGraph = nullptr;
MotionSet* m_motionSet = nullptr;
};
// This fixture exists to separate the tests that test the pose comparsion
// functionality from the tests that use the pose comparison functionality
// (even though it doesn't use the recording)
class INTEG_TestPoseComparisonFixture
: public INTEG_PoseComparisonFixture
{
};
}; // namespace EMotionFX