CustomSerializeContextTestFixture.h 785 B

123456789101112131415161718192021222324252627282930
  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 <AzCore/Component/ComponentApplicationBus.h>
  10. #include <AzCore/UnitTest/MockComponentApplication.h>
  11. #include <AzCore/UnitTest/TestTypes.h>
  12. namespace UnitTest
  13. {
  14. class CustomSerializeContextTestFixture
  15. : public LeakDetectionFixture
  16. {
  17. public:
  18. void SetUp() override;
  19. void TearDown() override;
  20. protected:
  21. AZStd::unique_ptr<testing::NiceMock<MockComponentApplication>> m_componentApplicationMock;
  22. AZStd::unique_ptr<AZ::SerializeContext> m_serializeContext;
  23. };
  24. } // namespace UnitTest