CommandRunnerFixture.h 927 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #pragma once
  9. #include <Tests/UI/UIFixture.h>
  10. #include <EMotionFX/CommandSystem/Source/CommandManager.h>
  11. #include <AzCore/std/containers/vector.h>
  12. #include <AzCore/std/string/string.h>
  13. namespace EMotionFX
  14. {
  15. class CommandRunnerFixtureBase
  16. : public UIFixture
  17. {
  18. public:
  19. void TearDown() override;
  20. void ExecuteCommands(std::vector<std::string> commands);
  21. const AZStd::vector<AZStd::string>& GetResults();
  22. private:
  23. AZStd::vector<AZStd::string> m_results;
  24. };
  25. class CommandRunnerFixture
  26. : public CommandRunnerFixtureBase
  27. , public ::testing::WithParamInterface<std::vector<std::string>>
  28. {
  29. };
  30. } // end namespace EMotionFX