You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#preflight skip #rb trivial #rnx #robomerge FNMain [CL 21301375 by Devin Doucette in ue5-main branch]
42 lines
1.4 KiB
C++
42 lines
1.4 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#if WITH_LOW_LEVEL_TESTS
|
|
|
|
#include "DerivedDataLegacyCacheStore.h"
|
|
|
|
namespace UE::DerivedData
|
|
{
|
|
|
|
class ITestCacheStore : public ILegacyCacheStore
|
|
{
|
|
public:
|
|
virtual ECacheStoreFlags GetFlags() const = 0;
|
|
virtual uint32 GetTotalRequestCount() const = 0;
|
|
virtual uint32 GetCanceledRequestCount() const = 0;
|
|
|
|
virtual void AddRecord(const FCacheKey& Key, TConstArrayView<FValueWithId> Values, const FCbObject* Meta = nullptr) = 0;
|
|
virtual TConstArrayView<FValueWithId> FindRecord(const FCacheKey& Key, FCbObject* OutMeta = nullptr) const = 0;
|
|
|
|
virtual void AddValue(const FCacheKey& Key, const FValue& Value) = 0;
|
|
virtual FValue FindValue(const FCacheKey& Key) const = 0;
|
|
|
|
virtual void AddContent(const FCompressedBuffer& Content) = 0;
|
|
virtual FCompressedBuffer FindContent(const FIoHash& RawHash, uint64 RawSize) const = 0;
|
|
|
|
virtual TConstArrayView<FCachePutRequest> GetPutRequests() const = 0;
|
|
virtual TConstArrayView<FCacheGetRequest> GetGetRequests() const = 0;
|
|
virtual TConstArrayView<FCachePutValueRequest> GetPutValueRequests() const = 0;
|
|
virtual TConstArrayView<FCacheGetValueRequest> GetGetValueRequests() const = 0;
|
|
virtual TConstArrayView<FCacheGetChunkRequest> GetGetChunkRequests() const = 0;
|
|
|
|
virtual void ExecuteAsync() = 0;
|
|
};
|
|
|
|
ITestCacheStore* CreateTestCacheStore(ECacheStoreFlags Flags, bool bAsync);
|
|
|
|
} // UE::DerivedData
|
|
|
|
#endif // WITH_LOW_LEVEL_TESTS
|