MockAxisAlignedBoxShapeComponent.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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 <gmock/gmock.h>
  10. #include <AzCore/Component/ComponentApplication.h>
  11. #include <AzFramework/Terrain/TerrainDataRequestBus.h>
  12. #include <LmbrCentral/Shape/ShapeComponentBus.h>
  13. #include <LmbrCentral/Shape/MockShapes.h>
  14. namespace UnitTest
  15. {
  16. class MockAxisAlignedBoxShapeComponent
  17. : public AZ::Component
  18. {
  19. public:
  20. AZ_COMPONENT(MockAxisAlignedBoxShapeComponent, "{77CBEED3-FAA3-4BC7-85A9-1A2BFC37BC2A}");
  21. static void Reflect([[maybe_unused]] AZ::ReflectContext* context)
  22. {
  23. }
  24. void Activate() override
  25. {
  26. }
  27. void Deactivate() override
  28. {
  29. }
  30. private:
  31. static void GetProvidedServices(AZ::ComponentDescriptor::DependencyArrayType& provided)
  32. {
  33. provided.push_back(AZ_CRC_CE("ShapeService"));
  34. provided.push_back(AZ_CRC_CE("BoxShapeService"));
  35. provided.push_back(AZ_CRC_CE("AxisAlignedBoxShapeService"));
  36. }
  37. };
  38. }