Lumiera  0.pre.03
»edit your freedom«
CreateAsset_test Class Reference

Description

Test:
creating new Assets and registering them with the AssetManager.
See also
proc_interface::AssetManager::reg

Definition at line 67 of file create-asset-test.cpp.

Private Types

using PM = lib::P< Media >
 

Private Member Functions

bool checkProperties (PM object, Asset::Ident identity, string filename)
 
void createMedia ()
 
void createMetaAssets ()
 
void factoryVariants ()
 
virtual void run (Arg arg)
 

Member Function Documentation

◆ createMedia()

void createMedia ( )
inlineprivate
Test:
Creating and automatically registering Asset instances.

Re-Retrieving the newly created objects from AssetManager. Checking AssetManager access functions, esp. getting different kinds of Assets by ID, querying with the wrong Category and querying unknown IDs.

Definition at line 93 of file create-asset-test.cpp.

References Media::create, AssetManager::getAsset(), AssetManager::instance, AssetManager::known(), and VERIFY_ERROR.

+ Here is the call graph for this function:

◆ factoryVariants()

void factoryVariants ( )
inlineprivate
Test:
different variants of calling the MediaFactory, with focus on the behaviour of the basic Asset creation machinery.

Covers filling out Asset's datafields, amending missing pieces of information.

Definition at line 175 of file create-asset-test.cpp.

References Media::create, and Asset::Ident::name.

+ Inheritance diagram for CreateAsset_test:
+ Collaboration diagram for CreateAsset_test:

The documentation for this class was generated from the following file: