Additional unit tests for the Json Serialization to make sure custom json serializer work if they're the first used through the higher Load/Store calls.

This commit is contained in:
AMZN-koppersr
2021-05-05 17:22:57 -07:00
parent 6ad135f35c
commit ec52e51476
3 changed files with 131 additions and 13 deletions
@@ -104,6 +104,11 @@ namespace JsonSerializationTests
AZ::AllocatorInstance<AZ::PoolAllocator>::Destroy();
}
void Reflect(AZStd::unique_ptr<AZ::SerializeContext>& context) override
{
context->RegisterGenericType<Asset>();
}
AZStd::shared_ptr<AZ::BaseJsonSerializer> CreateSerializer() override
{
return AZStd::make_shared<AZ::Data::AssetJsonSerializer>();