// Copyright Epic Games, Inc. All Rights Reserved. #pragma once #include "raftests/Defs.h" #include "raf/RegionAffiliationBinaryStreamReaderImpl.h" #include "raf/RegionAffiliationBinaryStreamWriterImpl.h" #include "raf/RegionAffiliationJSONStreamReaderImpl.h" #include "raf/RegionAffiliationJSONStreamWriterImpl.h" #include #include #include #include template class RegionAffiliationReaderWriterTest : public ::testing::Test { protected: using TStreamReaderImpl = typename std::tuple_element<0, TReaderWriterPair>::type; using TStreamWriterImpl = typename std::tuple_element<1, TReaderWriterPair>::type; using TStreamReader = typename TStreamReaderImpl::ReaderInterface; using TStreamWriter = typename TStreamWriterImpl::WriterInterface; protected: void SetUp() override { stream = pma::makeScoped(); reader = pma::makeScoped(stream.get()); writer = pma::makeScoped(stream.get()); } protected: pma::ScopedPtr stream; pma::ScopedPtr reader; pma::ScopedPtr writer; };