![]() |
Lumiera 0.pre.04
»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 > > |
Static Public Member Functions | |
| static PA | create () |
| static PA | create (PAsset &pRef) |
Public Member Functions | |
| void | call_unlink () |
| void | call_unlink (IDA target) |
| void | set_depend (PAsset parent) |
Private Member Functions | |
| TestAsset () | |
| TestAsset (PAsset &) | |
| declared dependent on the given Asset | |
| PA | ptrFromThis () |
Static Private Member Functions | |
| static void | deleter (TestAsset< A > *aa) |
|
private |
Definition at line 59 of file testasset.cpp.
declared dependent on the given Asset
Definition at line 65 of file testasset.cpp.
Definition at line 51 of file testasset.hpp.
|
inlinestaticprivate |
Definition at line 48 of file testasset.hpp.
|
inlinestatic |
Definition at line 53 of file testasset.hpp.
Definition at line 54 of file testasset.hpp.
|
inline |
Definition at line 57 of file testasset.hpp.
|
inline |
Definition at line 58 of file testasset.hpp.
|
inline |
Definition at line 59 of file testasset.hpp.
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.
Inheritance diagram for TestAsset< A >:
Collaboration diagram for TestAsset< A >: