DedicatedCacheTests.cpp 941 B

12345678910111213141516171819202122232425262728293031
  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 <AzCore/Memory/Memory.h>
  9. #include <AzCore/IO/Streamer/DedicatedCache.h>
  10. #include <Tests/Streamer/StreamStackEntryConformityTests.h>
  11. namespace AZ::IO
  12. {
  13. class DedicatedCacheTestDescription :
  14. public StreamStackEntryConformityTestsDescriptor<DedicatedCache>
  15. {
  16. public:
  17. DedicatedCache CreateInstance() override
  18. {
  19. return DedicatedCache(1 * 1024 * 1024, 64 * 1024, AZCORE_GLOBAL_NEW_ALIGNMENT, false);
  20. }
  21. bool UsesSlots() const override
  22. {
  23. return false;
  24. }
  25. };
  26. INSTANTIATE_TYPED_TEST_SUITE_P(Streamer_DedicatedCacheConformityTests, StreamStackEntryConformityTests, DedicatedCacheTestDescription);
  27. } // namespace AZ::IO