Dali 3D User Interface Engine
Namespaces | Typedefs | Functions | Variables
utc-image-loading-common.h File Reference
#include <unistd.h>
#include <iostream>
#include <stdlib.h>
#include <ctime>
#include <dali/dali.h>
#include <dali-test-suite-utils.h>
#include "tizen-platform-abstraction.h"
#include "resource-collector.h"
Include dependency graph for utc-image-loading-common.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  anonymous_namespace{utc-image-loading-common.h}
 

Typedefs

typedef std::pair
< ImageDimensions, std::pair
< FittingMode::Type, std::pair
< SamplingMode::Type, bool > > > 
ImageParameters
 A variety of parameters to reach different code paths in the image loading. More...
 

Functions

double anonymous_namespace{utc-image-loading-common.h}::GetTimeMilliseconds (Integration::PlatformAbstraction &abstraction)
 Returns elapsed milliseconds. More...
 
void utc_dali_loading_startup (void)
 
void utc_dali_loading_cleanup (void)
 

Variables

const unsigned anonymous_namespace{utc-image-loading-common.h}::NUM_LOAD_GROUPS_TO_ISSUE = 158
 The number of loads issued in test cases is a multiple of this. More...
 
const unsigned anonymous_namespace{utc-image-loading-common.h}::NUM_CANCELLED_LOAD_GROUPS_TO_ISSUE = NUM_LOAD_GROUPS_TO_ISSUE * 10
 The number of loads to issue when they will be cancelled. More...
 
const unsigned anonymous_namespace{utc-image-loading-common.h}::MAX_NUM_RESOURCE_TRIES = 10
 The number of times to ask for resource load status. More...
 
const unsigned anonymous_namespace{utc-image-loading-common.h}::MAX_MILLIS_TO_WAIT_FOR_KNOWN_LOADS = 1000 * 60
 The maximum time to wait for loads to complete when the number of expected loads is known. More...
 
const char *const anonymous_namespace{utc-image-loading-common.h}::VALID_IMAGES []
 Images that should load without issue. More...
 
const unsigned anonymous_namespace{utc-image-loading-common.h}::NUM_VALID_IMAGES = sizeof(VALID_IMAGES) / sizeof(VALID_IMAGES[0])
 
Integration::PlatformAbstractiongAbstraction
 Live platform abstraction recreated for each test case. More...
 
std::vector< ImageParametersgCancelAttributes
 A variety of parameters to reach different code paths in image loading code. More...
 

Typedef Documentation

typedef std::pair<ImageDimensions, std::pair<FittingMode::Type, std::pair<SamplingMode::Type, bool> > > ImageParameters

A variety of parameters to reach different code paths in the image loading.

Definition at line 82 of file utc-image-loading-common.h.

Function Documentation

void utc_dali_loading_cleanup ( void  )
void utc_dali_loading_startup ( void  )

: Add attribute variants for all scale modes. : Add attribute variants for all filter modes.

Definition at line 26 of file utc-image-loading-common.cpp.

References Dali::CreatePlatformAbstraction(), Dali::FittingMode::FIT_HEIGHT, Dali::FittingMode::FIT_WIDTH, Dali::FittingMode::SCALE_TO_FILL, Dali::FittingMode::SHRINK_TO_FIT, test_return_value, and TET_UNDEF.

Referenced by utc_image_loading_cancel_all_loads_startup(), utc_image_loading_cancel_some_loads_startup(), and utc_image_loading_load_completion_startup().

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

Live platform abstraction recreated for each test case.

Definition at line 21 of file utc-image-loading-common.cpp.

Referenced by utc_dali_loading_cleanup(), UtcDaliCancelAllLoads(), UtcDaliCancelSomeLoads(), and UtcDaliLoadCompletion().

std::vector<ImageParameters> gCancelAttributes

A variety of parameters to reach different code paths in image loading code.

Definition at line 24 of file utc-image-loading-common.cpp.

Referenced by UtcDaliCancelAllLoads(), and UtcDaliCancelSomeLoads().

Dali Docs Home
Read more about Dali