You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
o3de/Code/Framework/AzCore/Tests
lumberyard-employee-dm 586678a5f9
Added a deferred queue to the AZ Console class (#3298)
* Added a deferred queue to the AZ Console class

An AZ Console instance will now store any console commands that could be
dispatched from a configuration file into a deferred queue, that can be
invoked later.

This can be used to defer execution of console commands in configuration files such as
.cfg, .setreg and .setregpatch files that are defined in gem modules that
have not been loaded yet.
The defered execution can then be invoked at any point later in the
application

Updated the Component Application CreateCommon function to invoke deferred console commands
after all the gems have loaded

fixes #2062

Signed-off-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com>

* Fixed variable shadowing in the Console Deferred Command Test

Updated commit for the ClearDeferredQueue function to just mention
clearing the queue

Signed-off-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com>

* Filtered out execution of the ConsoleRootCommandKey as a console command

The AZ::Console notification handler is tracking changes to the fields
of "/Amazon/AzCore/Runtime/ConsoleCommands" and it's children.

Now the "/Amazon/AzCore/Runtime/ConsoleCommands" field is the
ConsoleRootCommandKey and not an actual console command so it shouldn't
attempt to be invoked

Signed-off-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com>

* Moved the execution of deferred console commands after linking deferred
functors

Signed-off-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com>

* Moved the execution of deferred console commands into CreateModuleClass
hook

Any module that loads using the ModuleManager system will attempt to
execute any deferred console commands to allow newly registered commands
from that module to be dispatched.

Signed-off-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com>
5 years ago
..
AZStd Merge branch 'development' into cmake/SPEC-7484 5 years ago
AZTestShared Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
Asset Disabling a flaky test (#2749) ContainerFilterTest_ContainersWithAndWithoutFiltering_Success 5 years ago
Console Added a deferred queue to the AZ Console class (#3298) 5 years ago
Debug Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
EBus Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
IO/Path FixedMaxPathString replacement 5 years ago
Math [GHI 2178] Vegetation Debugger info was sometimes getting culled (#2209) 5 years ago
Memory Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
Name Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
Platform Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
RTTI Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
Serialization/Json Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
Settings Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
Streamer Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
AssetJsonSerializerTests.cpp Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
AssetManager.cpp Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
AssetSerializerTests.cpp Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
AzEnumTest.cpp Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
BehaviorContext.cpp Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
BehaviorContextFixture.h Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
Components.cpp Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
DLL.cpp Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
DLLMainTest.cpp Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
Debug.cpp More windows/linux fixes 5 years ago
Driller.cpp Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
EBus.cpp Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
EntityIdTests.cpp Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
EntityTests.cpp Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
EnumTests.cpp Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
EventTests.cpp Settings registry notification deadlock fix (#3065) 5 years ago
FileIOBaseTestTypes.h Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
FixedWidthIntegers.cpp Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
GenericStreamMock.h Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
GenericStreamTests.cpp Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
Geometry2DUtils.cpp Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
IPC.cpp Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
Interface.cpp Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
IntersectPoint.cpp Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
JSON.cpp Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
Jobs.cpp Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
Main.cpp Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
Memory.cpp Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
Module.cpp Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
ModuleTestBus.h Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
OrderedEventBenchmarks.cpp Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
OrderedEventTests.cpp Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
Outcome.cpp Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
Patching.cpp Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
RemappableId.cpp Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
Rtti.cpp Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
Script.cpp Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
ScriptMath.cpp Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
ScriptProperty.cpp Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
Serialization.cpp Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
SerializeContextFixture.h Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
SettingsRegistryMergeUtilsTests.cpp Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
SettingsRegistryTests.cpp Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
Slice.cpp Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
State.cpp Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
StatisticalProfiler.cpp Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
Statistics.cpp Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
StreamerTests.cpp Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
StringFunc.cpp Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
SystemFile.cpp Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
TaskTests.cpp Remove TaskGraph::Drain which was only added initially for testing 5 years ago
TestCatalog.cpp Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
TestCatalog.h Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
TickBusTest.cpp Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
TimeDataStatistics.cpp Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
UUIDTests.cpp Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
XML.cpp Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
azcoretestdll_files.cmake Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
azcoretests_files.cmake JobGraph -> TaskGraph (and associated classes/files) 5 years ago
aztestshared_files.cmake Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago