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/Tools/AssetProcessor/native/unittests
lumberyard-employee-dm 090aa8f053
Removed ununeeded includes from EBus EBus.h and Policies.h (#4256)
* Removed ununeeded includes from EBus EBus.h and Policies.h

Updated the locations which needed those includes

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

* Adding missing include for <memory> to AWsClientAuthBus.h

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

* Remove the while true loop in the EBusQueuePolicy Execute() function

The while true loop in Execute was for allowing additional functions to be queued in the middle of execution of current list of functions.
That functionality was dangerous, because if a queued function added itself during execution unconditionally, then it would result in an infinite loop

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

* Updated the AssetManager::DispatchEvents function to pump the AssetBus event queue until empty

Queued Events on the AssetBus is able to queue additional events on that Bus during execution of those events.

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

* Changed the AssetManager::DispatchEvents function to only execute the
AssetBus queued events once

Changed the AssetJobsFloodTest.AssetWithNoLoadReference_LoadDependencies_BehaviorObeyed test to dispatch events until the OnAssetContainerReady callback is signaled.

This happens after every asset load to make sure that the
expiring AssetContainer instances are removed from `AssetManager::m_ownedAssetContainer` container before retrying to load the same asset.

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

* Added a MaxTimeoutSeconds constant for the maximum amount of the time to run a single DispatchEvents loop

Signed-off-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com>
4 years ago
..
AssetProcessingStateDataUnitTests.cpp XCode doesnt support files per configuration, using the old method (#3789) 4 years ago
AssetProcessingStateDataUnitTests.h Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
AssetProcessorManagerUnitTests.cpp Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
AssetProcessorManagerUnitTests.h Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
AssetProcessorServerUnitTests.cpp Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
AssetProcessorServerUnitTests.h Removed ununeeded includes from EBus EBus.h and Policies.h (#4256) 4 years ago
AssetRequestHandlerUnitTests.cpp Code/Tools/AssetProcessor 4 years ago
AssetRequestHandlerUnitTests.h Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
AssetScannerUnitTests.cpp Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
AssetScannerUnitTests.h Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
BuilderSDKUnitTests.cpp Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
ConnectionManagerUnitTests.cpp Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
ConnectionManagerUnitTests.h Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
ConnectionUnitTests.cpp Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
ConnectionUnitTests.h Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
FileWatcherUnitTests.cpp Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
FileWatcherUnitTests.h Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
MockApplicationManager.cpp Final fixes for MSVC 4 years ago
MockApplicationManager.h Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
MockConnectionHandler.h Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
PlatformConfigurationUnitTests.cpp Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
PlatformConfigurationUnitTests.h Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
RCcontrollerUnitTests.cpp Code/Tools 4 years ago
RCcontrollerUnitTests.h Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
ShaderCompilerUnitTests.cpp Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
ShaderCompilerUnitTests.h Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
UnitTestRunner.cpp Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
UnitTestRunner.h Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
UtilitiesUnitTests.cpp Code/Tools/AssetProcessor 4 years ago
UtilitiesUnitTests.h Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago