BigFile/Sasquatch #1
@@ -64,6 +64,14 @@ class DataAccessor
|
||||
virtual void SaveAssetFlatbuffer(const AssetMetadata& p_metadata,
|
||||
const eastl::span<const std::byte> p_flatbuffer) = 0;
|
||||
|
||||
/**
|
||||
* Check if the Asset exists
|
||||
*
|
||||
* \param p_uuid The asset to check
|
||||
* \param True if it exists, false otherwise
|
||||
*/
|
||||
virtual bool Has(const UUID& p_uuid) const = 0;
|
||||
|
||||
DataAccessor& operator=(const DataAccessor& p_accessor) = default;
|
||||
DataAccessor& operator=(DataAccessor&& p_accessor) = default;
|
||||
};
|
||||
|
||||
@@ -23,6 +23,7 @@ class DataAccessorFixture: public ::testing::Test
|
||||
SaveAssetFlatbuffer,
|
||||
(const AssetMetadata& p_metaData, const eastl::span<const std::byte> p_flatbuffer),
|
||||
(override));
|
||||
MOCK_METHOD(bool, Has, (const UUID& p_uuid), (const, override));
|
||||
};
|
||||
|
||||
void SetUp() override
|
||||
|
||||
Reference in New Issue
Block a user