12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- /*
- * 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 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 TestPoseComparisonFixture
- : public PoseComparisonFixture
- {
- };
- }; // namespace EMotionFX
|