FileCacheManagerMock.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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 <FileCacheManager.h>
  10. #include <AzTest/AzTest.h>
  11. #include <AzFramework/Entity/EntityDebugDisplayBus.h>
  12. namespace AZ::IO
  13. {
  14. class FileRequestHandle;
  15. }
  16. namespace Audio
  17. {
  18. class FileCacheManagerMock
  19. : public CFileCacheManager
  20. {
  21. public:
  22. explicit FileCacheManagerMock(TATLPreloadRequestLookup& preloadLookup)
  23. : CFileCacheManager(preloadLookup)
  24. {}
  25. MOCK_METHOD0(Initialize, void());
  26. MOCK_METHOD0(Release, void());
  27. MOCK_METHOD0(Update, void());
  28. MOCK_METHOD3(TryAddFileCacheEntry, TAudioFileEntryID(const AZ::rapidxml::xml_node<char>*, EATLDataScope, bool));
  29. MOCK_METHOD2(TryRemoveFileCacheEntry, bool(const TAudioFileEntryID, const EATLDataScope));
  30. MOCK_METHOD0(UpdateLocalizedFileCacheEntries, void());
  31. MOCK_METHOD3(DrawDebugInfo, void(AzFramework::DebugDisplayRequests&, const float, const float));
  32. MOCK_METHOD3(TryLoadRequest, EAudioRequestStatus(const TAudioPreloadRequestID, const bool, const bool));
  33. MOCK_METHOD1(TryUnloadRequest, EAudioRequestStatus(const TAudioPreloadRequestID));
  34. MOCK_METHOD1(UnloadDataByScope, EAudioRequestStatus(const EATLDataScope));
  35. };
  36. } // namespace Audio