Files
o3de/Gems/Maestro/Code/Source/Cinematics/Tests/test_Main.cpp
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

50 lines
1.1 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 "Maestro_precompiled.h"
#include <AzTest/AzTest.h>
#include <Mocks/ITimerMock.h>
#include <Mocks/ICryPakMock.h>
#include <Mocks/IConsoleMock.h>
#include <AzCore/Memory/OSAllocator.h>
using ::testing::NiceMock;
class CryMovieTestEnvironment
: public AZ::Test::ITestEnvironment
{
public:
AZ_TEST_CLASS_ALLOCATOR(CryMovieTestEnvironment);
virtual ~CryMovieTestEnvironment()
{}
protected:
void SetupEnvironment() override
{
m_stubEnv.pTimer = &m_stubTimer;
m_stubEnv.pCryPak = &m_stubPak;
m_stubEnv.pConsole = &m_stubConsole;
gEnv = &m_stubEnv;
}
void TeardownEnvironment() override
{}
private:
SSystemGlobalEnvironment m_stubEnv;
NiceMock<TimerMock> m_stubTimer;
NiceMock<CryPakMock> m_stubPak;
NiceMock<ConsoleMock> m_stubConsole;
};
AZ_UNIT_TEST_HOOK(new CryMovieTestEnvironment)
TEST(CryMovieSanityTest, Sanity)
{
EXPECT_EQ(1, 1);
}