test_Main.cpp 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. #include <AzTest/AzTest.h>
  9. #include <Mocks/ITimerMock.h>
  10. #include <Mocks/ICryPakMock.h>
  11. #include <Mocks/IConsoleMock.h>
  12. #include <AzCore/Memory/OSAllocator.h>
  13. using ::testing::NiceMock;
  14. class CryMovieTestEnvironment
  15. : public AZ::Test::ITestEnvironment
  16. {
  17. public:
  18. virtual ~CryMovieTestEnvironment()
  19. {}
  20. protected:
  21. void SetupEnvironment() override
  22. {
  23. m_stubEnv.pTimer = &m_stubTimer;
  24. m_stubEnv.pCryPak = &m_stubPak;
  25. m_stubEnv.pConsole = &m_stubConsole;
  26. gEnv = &m_stubEnv;
  27. }
  28. void TeardownEnvironment() override
  29. {}
  30. private:
  31. SSystemGlobalEnvironment m_stubEnv;
  32. NiceMock<TimerMock> m_stubTimer;
  33. NiceMock<CryPakMock> m_stubPak;
  34. NiceMock<ConsoleMock> m_stubConsole;
  35. };
  36. AZ_UNIT_TEST_HOOK(new CryMovieTestEnvironment)
  37. TEST(CryMovieSanityTest, Sanity)
  38. {
  39. EXPECT_EQ(1, 1);
  40. }