Code/Framework

Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
Esteban Papp
2021-08-23 13:00:45 -07:00
parent 7d71e3dc07
commit 6bdef50444
12 changed files with 7 additions and 15 deletions
@@ -68,7 +68,6 @@ namespace UnitTest
static constexpr size_t max_expected_size = MaxExpectedSize;
};
constexpr size_t pairSize = sizeof(AZStd::compressed_pair<CompressedPairInternal::EmptyStruct, int32_t>);
using CompressedPairTestConfigs = ::testing::Types<
CompressedPairTestConfig<CompressedPairInternal::EmptyStruct, CompressedPairInternal::FinalEmptyStruct, 1>
, CompressedPairTestConfig<CompressedPairInternal::EmptyStruct, int32_t, 4>
@@ -639,7 +639,7 @@ namespace AZ::IO
path.InitFromAbsolutePath(m_dummyFilepath);
request->CreateRead(nullptr, buffer, unalignedSize + 4, path, unalignedOffset, unalignedSize);
auto callback = [&fileSize, unalignedOffset, unalignedSize, this](const FileRequest& request)
auto callback = [unalignedOffset, unalignedSize, this](const FileRequest& request)
{
EXPECT_EQ(request.GetStatus(), AZ::IO::IStreamerTypes::RequestStatus::Completed);
auto& readRequest = AZStd::get<AZ::IO::FileRequest::ReadData>(request.GetCommand());
@@ -469,7 +469,7 @@ namespace JsonSerializationTests
*this->m_jsonDocument,
*this->m_jsonDeserializationContext);
ASSERT_EQ(Outcomes::Success, result.GetOutcome());
ASSERT_EQ(Outcomes::DefaultsUsed, result.GetOutcome());
EXPECT_TRUE(defaultValue == output);
}
@@ -225,6 +225,7 @@ namespace UnitTest
defaultTD,
[td = AZStd::move(td)]
{
AZ_UNUSED(td);
});
task.Invoke();
// Destructor should not have run yet (except on moved-from instances)