Lumiera
0.pre.03
»edit your freedom«
|
#include "/Werk/devel/lumi/tests/core/steam/asset/testasset.hpp"
Test(mock) asset subclass usable for hijacking a given asset class (template parameter) and subsequently accessing internal facilities for writing unit tests.
Prerequisite for using this template is that the used asset base class has a (protected) ctor taking an Asset::Ident....
Definition at line 43 of file testasset.hpp.
Public Types | |
using | PA = lib::P< TestAsset< A > > |
Public Member Functions | |
void | call_unlink () |
void | call_unlink (IDA target) |
void | set_depend (PAsset parent) |
Static Public Member Functions | |
static PA | create () |
static PA | create (PAsset &pRef) |
Private Member Functions | |
TestAsset (PAsset &) | |
declared dependent on the given Asset | |
PA | ptrFromThis () |
Static Private Member Functions | |
static void | deleter (TestAsset< A > *aa) |
helper for the create()-Functions retrieving the smart ptr created automatically within AssetManager by the Asset base class ctor
Definition at line 78 of file testasset.cpp.
References AssetManager::instance.