38261d0800
* Updated all copyright headers to split the longer original copyright line into 2 shorter lines Signed-off-by: Steve Pham <spham@amazon.com>
55 lines
1.7 KiB
C++
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* actorFile = nullptr;
|
|
const char* animGraphFile = nullptr;
|
|
const char* motionSetFile = nullptr;
|
|
const char* recordingFile = nullptr;
|
|
PoseComparisonFixtureParams(const char* actorFile, const char* animGraphFile, const char* motionSetFile, const char* recordingFile)
|
|
: actorFile(actorFile), animGraphFile(animGraphFile), motionSetFile(motionSetFile), 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
|