Dali 3D User Interface Engine
Classes | Namespaces | Functions | Variables
utc-Dali-Internal-ResourceClient.cpp File Reference
#include <iostream>
#include <stdlib.h>
#include <dali/public-api/dali-core.h>
#include <dali-test-suite-utils.h>
#include <test-native-image.h>
#include <dali/public-api/shader-effects/shader-effect.h>
#include <dali/internal/event/common/thread-local-storage.h>
#include <dali/internal/update/resources/texture-metadata.h>
#include <dali/internal/update/resources/resource-manager.h>
#include <dali/internal/update/manager/update-manager.h>
#include <dali/internal/event/resources/resource-client.h>
#include <dali/internal/event/resources/resource-ticket.h>
#include <dali/internal/event/resources/image-ticket.h>
#include <dali/internal/event/resources/resource-ticket-observer.h>
#include <dali/internal/event/images/resource-image-impl.h>
#include <dali/integration-api/resource-cache.h>
#include <dali/internal/render/gl-resources/texture-declarations.h>
#include <dali/internal/render/shaders/scene-graph-shader.h>
#include <dali/internal/common/owner-pointer.h>
#include <dali/internal/common/image-attributes.h>
#include <mesh-builder.h>
Include dependency graph for utc-Dali-Internal-ResourceClient.cpp:

Go to the source code of this file.

Classes

class  anonymous_namespace{utc-Dali-Internal-ResourceClient.cpp}::TestTicketObserver
 
class  anonymous_namespace{utc-Dali-Internal-ResourceClient.cpp}::TestTicketLifetimeObserver
 

Namespaces

namespace  anonymous_namespace{utc-Dali-Internal-ResourceClient.cpp}
 

Functions

Internal::ImagePtr anonymous_namespace{utc-Dali-Internal-ResourceClient.cpp}::LoadImage (TestApplication &application, char *name)
 
Internal::ResourceTicketPtr anonymous_namespace{utc-Dali-Internal-ResourceClient.cpp}::CheckLoadBitmap (TestApplication &application, const char *name, int w, int h)
 
void utc_dali_internal_resource_client_startup ()
 
void utc_dali_internal_resource_client_cleanup ()
 
int UtcDaliInternalRequestResourceBitmapRequests01 (void)
 
int UtcDaliInternalRequestResourceBitmapRequests02 (void)
 
int UtcDaliInternalRequestResourceBitmapRequests03 (void)
 
int UtcDaliInternalRequestReloadBitmapRequests01 (void)
 
int UtcDaliInternalRequestReloadBitmapRequests02 (void)
 
int UtcDaliInternalRequestReloadBitmapRequests03 (void)
 
int UtcDaliInternalRequestResourceTicket01 (void)
 
int UtcDaliInternalRequestResourceTicket02 (void)
 
int UtcDaliInternalAddBitmapImage01 (void)
 
int UtcDaliInternalAddBitmapImage02 (void)
 
int UtcDaliInternalAddBitmapImage03 (void)
 
int UtcDaliInternalAllocateTexture01 (void)
 
int UtcDaliInternalAddNativeImage (void)
 
int UtcDaliInternalAddFrameBufferImage (void)
 

Variables

static TestTicketObserver anonymous_namespace{utc-Dali-Internal-ResourceClient.cpp}::testTicketObserver
 
static TestTicketLifetimeObserver anonymous_namespace{utc-Dali-Internal-ResourceClient.cpp}::testTicketLifetimeObserver
 

Function Documentation

void utc_dali_internal_resource_client_cleanup ( )

Definition at line 152 of file utc-Dali-Internal-ResourceClient.cpp.

References test_return_value, and TET_PASS.

void utc_dali_internal_resource_client_startup ( )

Definition at line 147 of file utc-Dali-Internal-ResourceClient.cpp.

References test_return_value, and TET_UNDEF.

int UtcDaliInternalAddBitmapImage01 ( void  )
int UtcDaliInternalAddBitmapImage02 ( void  )
int UtcDaliInternalAddBitmapImage03 ( void  )
int UtcDaliInternalAddFrameBufferImage ( void  )
int UtcDaliInternalAddNativeImage ( void  )
int UtcDaliInternalAllocateTexture01 ( void  )
int UtcDaliInternalRequestReloadBitmapRequests01 ( void  )

Definition at line 372 of file utc-Dali-Internal-ResourceClient.cpp.

References Dali::Integration::Bitmap::BITMAP_2D_PACKED_PIXELS, Dali::TestPlatformAbstraction::CancelLoadFunc, anonymous_namespace{utc-Dali-Internal-ResourceClient.cpp}::CheckLoadBitmap(), DALI_TEST_CHECK, DALI_TEST_EQUALS(), END_TEST, Dali::Internal::ThreadLocalStorage::Get(), Dali::Integration::Bitmap::GetPackedPixelsProfile(), Dali::TestApplication::GetPlatform(), Dali::TestPlatformAbstraction::GetRequest(), Dali::Internal::ThreadLocalStorage::GetResourceClient(), Dali::Internal::ThreadLocalStorage::GetResourceManager(), Dali::TestPlatformAbstraction::GetResourcesFunc, anonymous_namespace{utc-Dali-Internal-ResourceClient.cpp}::TestTicketObserver::LoadFailedCalled(), Dali::TestPlatformAbstraction::LoadResourceFunc, anonymous_namespace{utc-Dali-Internal-ResourceClient.cpp}::TestTicketObserver::LoadSucceededCalled(), Dali::Integration::Bitmap::New(), Dali::ResourcePolicy::OWNED_RETAIN, Dali::TestApplication::Render(), Dali::Integration::Bitmap::PackedPixelsProfile::ReserveBuffer(), anonymous_namespace{utc-Dali-Internal-ResourceClient.cpp}::TestTicketObserver::Reset(), Dali::TestPlatformAbstraction::ResetTrace(), Dali::Integration::ResourceBitmap, Dali::ResourceLoading, Dali::ResourceLoadingSucceeded, Dali::Pixel::RGBA8888, Dali::TestApplication::SendNotification(), Dali::TestPlatformAbstraction::SetResourceLoaded(), TEST_LOCATION, anonymous_namespace{utc-Dali-Internal-ResourceClient.cpp}::testTicketObserver, tet_infoline(), anonymous_namespace{utc-Dali-Internal-ResourceClient.cpp}::TestTicketObserver::UploadCalled(), and Dali::TestPlatformAbstraction::WasCalled().

Here is the call graph for this function:

int UtcDaliInternalRequestReloadBitmapRequests02 ( void  )

Definition at line 457 of file utc-Dali-Internal-ResourceClient.cpp.

References Dali::Integration::Bitmap::BITMAP_2D_PACKED_PIXELS, DALI_TEST_CHECK, DALI_TEST_EQUALS(), END_TEST, Dali::Internal::ThreadLocalStorage::Get(), Dali::Integration::Bitmap::GetPackedPixelsProfile(), Dali::TestApplication::GetPlatform(), Dali::TestPlatformAbstraction::GetRequest(), Dali::Internal::ThreadLocalStorage::GetResourceClient(), Dali::Internal::ThreadLocalStorage::GetResourceManager(), Dali::TestPlatformAbstraction::GetResourcesFunc, anonymous_namespace{utc-Dali-Internal-ResourceClient.cpp}::TestTicketObserver::LoadFailedCalled(), Dali::TestPlatformAbstraction::LoadResourceFunc, anonymous_namespace{utc-Dali-Internal-ResourceClient.cpp}::TestTicketObserver::LoadSucceededCalled(), Dali::Integration::Bitmap::New(), Dali::ResourcePolicy::OWNED_RETAIN, Dali::TestApplication::Render(), Dali::Integration::Bitmap::PackedPixelsProfile::ReserveBuffer(), anonymous_namespace{utc-Dali-Internal-ResourceClient.cpp}::TestTicketObserver::Reset(), Dali::TestPlatformAbstraction::ResetTrace(), Dali::Integration::ResourceBitmap, Dali::ResourceLoadingSucceeded, Dali::Pixel::RGBA8888, Dali::TestApplication::SendNotification(), Dali::TestPlatformAbstraction::SetResourceLoaded(), TEST_LOCATION, anonymous_namespace{utc-Dali-Internal-ResourceClient.cpp}::testTicketObserver, tet_infoline(), anonymous_namespace{utc-Dali-Internal-ResourceClient.cpp}::TestTicketObserver::UploadCalled(), and Dali::TestPlatformAbstraction::WasCalled().

Here is the call graph for this function:

int UtcDaliInternalRequestReloadBitmapRequests03 ( void  )

Definition at line 571 of file utc-Dali-Internal-ResourceClient.cpp.

References Dali::Integration::Bitmap::BITMAP_2D_PACKED_PIXELS, DALI_TEST_CHECK, DALI_TEST_EQUALS(), END_TEST, Dali::Internal::ThreadLocalStorage::Get(), Dali::Integration::ResourceRequest::GetId(), Dali::Integration::Bitmap::GetPackedPixelsProfile(), Dali::TestApplication::GetPlatform(), Dali::TestPlatformAbstraction::GetRequest(), Dali::Internal::ThreadLocalStorage::GetResourceClient(), Dali::Internal::ThreadLocalStorage::GetResourceManager(), Dali::TestPlatformAbstraction::GetResourcesFunc, anonymous_namespace{utc-Dali-Internal-ResourceClient.cpp}::TestTicketObserver::LoadFailedCalled(), Dali::TestPlatformAbstraction::LoadResourceFunc, anonymous_namespace{utc-Dali-Internal-ResourceClient.cpp}::TestTicketObserver::LoadSucceededCalled(), Dali::Integration::Bitmap::New(), Dali::ResourcePolicy::OWNED_RETAIN, Dali::TestApplication::Render(), Dali::Integration::Bitmap::PackedPixelsProfile::ReserveBuffer(), anonymous_namespace{utc-Dali-Internal-ResourceClient.cpp}::TestTicketObserver::Reset(), Dali::TestPlatformAbstraction::ResetTrace(), Dali::Integration::ResourceBitmap, Dali::ResourceLoading, Dali::ResourceLoadingSucceeded, Dali::Pixel::RGBA8888, Dali::TestApplication::SendNotification(), Dali::TestPlatformAbstraction::SetResourceLoaded(), TEST_LOCATION, anonymous_namespace{utc-Dali-Internal-ResourceClient.cpp}::testTicketObserver, tet_infoline(), anonymous_namespace{utc-Dali-Internal-ResourceClient.cpp}::TestTicketObserver::UploadCalled(), and Dali::TestPlatformAbstraction::WasCalled().

Here is the call graph for this function:

int UtcDaliInternalRequestResourceBitmapRequests01 ( void  )
int UtcDaliInternalRequestResourceBitmapRequests02 ( void  )
int UtcDaliInternalRequestResourceBitmapRequests03 ( void  )
int UtcDaliInternalRequestResourceTicket01 ( void  )
int UtcDaliInternalRequestResourceTicket02 ( void  )
Dali Docs Home
Read more about Dali