Files
o3de/Gems/EMotionFX/Code/Tests/Integration/PoseComparisonFixture.h
T
Steve Pham b4a2edec6a Final update copyright headers to reference license files at the repo root (#1693)
* Final update copyright headers to reference license files at the repo root

Signed-off-by: spham <spham@amazon.com>

* Fix copyright validator unit tests to support the stale O3DE header scenario

Signed-off-by: spham <spham@amazon.com>
2021-06-30 19:51:55 -07:00

54 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