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
@@ -26,7 +26,6 @@ namespace AZ
const u32 Timestamp = AZ_CRC("Timestamp", 0xa5d6e63e);
const u32 Duration = AZ_CRC("Duration", 0x865f80c0);
const u32 Instant = AZ_CRC("Instant", 0x0e9047ad);
const u32 InstantScope = AZ_CRC("InstantScope", 0xed4bfb0e);
}
EventTraceDriller::EventTraceDriller()
@@ -66,7 +66,6 @@ namespace AZ
static const int assertLevel_log = 1;
static const int assertLevel_nativeUI = 2;
static const int assertLevel_crash = 3;
static const int logLevel_errorWarning = 1;
static const int logLevel_full = 2;
static AZ::EnvironmentVariable<AZStd::unordered_set<size_t>> g_ignoredAsserts;
static AZ::EnvironmentVariable<int> g_assertVerbosityLevel;
@@ -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)