Files
o3de/Gems/EMotionFX/Code/Tests/Integration/PoseComparisonFixture.h
T
Esteban Papp 7651ba621c Remove old "Integ" functionality from tests (#4688)
* fixes some warnings for newer versions of VS2022

Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>

* more warning fixes

Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>

* remove integ test filters from AzTest

Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>

* remove integ test handling from AzTestRunner

Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>

* changes integ tests of gridmate to regular tests and disables failing ones

Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>

* removes the Integ from the EMotionFX tests, but leaves them disabled since they are failing

Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>

* removes the Integ from the HttpRequestor tests and disables it since is not passing

Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>

* changing integ tests for DISABLED, these ones are using files that are not there

Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>

* fixes linux build
gridmate tests that were Integ are now disabled

Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>

* fixes linux warnings

Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
2021-10-15 08:53:26 -07:00

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 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