Dali 3D User Interface Engine
Functions
utc-image-loading-cancel-some-loads.cpp File Reference
#include <set>
#include "utc-image-loading-common.h"
Include dependency graph for utc-image-loading-cancel-some-loads.cpp:

Go to the source code of this file.

Functions

void utc_image_loading_cancel_some_loads_startup (void)
 
void utc_image_loading_cancel_some_loads_cleanup (void)
 
int UtcDaliCancelSomeLoads (void)
 Test case for load cancellation. More...
 

Function Documentation

void utc_image_loading_cancel_some_loads_cleanup ( void  )

Definition at line 29 of file utc-image-loading-cancel-some-loads.cpp.

References utc_dali_loading_cleanup().

Here is the call graph for this function:

void utc_image_loading_cancel_some_loads_startup ( void  )

Definition at line 24 of file utc-image-loading-cancel-some-loads.cpp.

References utc_dali_loading_startup().

Here is the call graph for this function:

int UtcDaliCancelSomeLoads ( void  )

Test case for load cancellation.

Load lots, cancel a subset and be sure the wrong loads are never cancelled and that all loads issued are either completed or cancelled.

: The log should show cancellations of many in-flight loads in desktop builds with info-level logging enabled (e.g., "INFO: DALI: : CheckForCancellation: Cancelled in-flight resource (21)."). If it doesn't, the above delay may need to be adjusted.

Note
If this fires, you are probably not waiting long enough in the draining loop above (usleep( 70 * 1000 );).

Definition at line 40 of file utc-image-loading-cancel-some-loads.cpp.

References Dali::Integration::PlatformAbstraction::CancelLoad(), DALI_ASSERT_ALWAYS, DALI_TEST_CHECK, END_TEST, gAbstraction, gCancelAttributes, Dali::Integration::PlatformAbstraction::GetResources(), Dali::Integration::LoadPriorityNormal, Dali::Integration::PlatformAbstraction::LoadResource(), anonymous_namespace{utc-image-loading-common.h}::MAX_NUM_RESOURCE_TRIES, Dali::Internal::Platform::ResourceCollector::mCompletionStatuses, Dali::Internal::Platform::ResourceCollector::mFailureCounts, Dali::Internal::Platform::ResourceCollector::mGrandTotalCompletions, Dali::Internal::Platform::ResourceCollector::mGrandTotalNotifications, Dali::Internal::Platform::ResourceCollector::mSuccessCounts, anonymous_namespace{utc-image-loading-common.h}::NUM_LOAD_GROUPS_TO_ISSUE, anonymous_namespace{utc-image-loading-common.h}::NUM_VALID_IMAGES, Dali::Integration::ResourceBitmap, tet_printf(), and anonymous_namespace{utc-image-loading-common.h}::VALID_IMAGES.

Here is the call graph for this function:

Dali Docs Home
Read more about Dali