54 using LERR_(UNKNOWN_ASSET_ID);
55 using LERR_(WRONG_ASSET_KIND);
58 ::Local<vault::test::MediaAccessMock>;
69 virtual void run(Arg arg)
71 MediaAccessMock useMockMedia;
79 TRACE (asset_mem,
"leaving CreateAsset_test::run()");
104 registered = aMang.
getAsset (mm1->getID());
105 CHECK (registered == mm1);
106 registered = aMang.
getAsset (mm2->getID());
107 CHECK (registered == mm2);
108 registered = aMang.
getAsset (mm3->getID());
109 CHECK (registered == mm3);
111 registered = aMang.
getAsset (mm1->getID());
112 CHECK (registered != mm2);
129 CHECK (aMang.
known (mm1->getID()));
130 CHECK (aMang.
known (mm2->getID()));
131 CHECK (aMang.
known (mm3->getID()));
143 CHECK (mm1->ident.name ==
"test-1");
144 CHECK (mm2->ident.name ==
"test-1");
145 CHECK (mm3->ident.name ==
"test-2");
147 CHECK (cat ==
Category (VIDEO,
"bin1"));
148 CHECK (mm1->ident.category ==
Category (VIDEO,
"bin1"));
149 CHECK (mm2->ident.category ==
Category (VIDEO,
"bin1"));
150 CHECK (mm3->ident.category ==
Category (VIDEO ));
152 CHECK (mm1->ident.org ==
"ichthyo");
153 CHECK (mm2->ident.org ==
"lumi");
154 CHECK (mm3->ident.org ==
"lumi");
156 CHECK (mm1->ident.version == 5);
157 CHECK (mm2->ident.version == 1);
158 CHECK (mm3->ident.version == 1);
160 CHECK (mm1->getFilename() ==
"testfile.mov");
161 CHECK (mm2->getFilename() ==
"test-1.mov");
162 CHECK (mm3->getFilename() ==
"test-2.mov");
165 TRACE (asset_mem,
"leaving test method scope");
181 CHECK ( checkProperties (candi, key1,
""));
184 CHECK ( checkProperties (candi, key1,
"test-1.wav"));
188 CHECK ( checkProperties (candi, key2,
"test-2.wav"));
189 CHECK (key2.
name ==
"test-2");
197 ,
"some/path/test-4.wav"));
208 bool checkProperties (
PM object,
Asset::Ident identity,
string filename)
210 return identity ==
object->ident
211 && filename ==
object->getFilename();
221 GridID myGrID (randStr(8));
224 PGrid myGrid = gridSpec.commit();
227 CHECK (myGrid->ident.name == myGrID.getSym());
235 CHECK (globalLog->ident.name == meta::theErrorLog_ID.getSym());
237 CHECK (2 == globalLog.use_count());
240 CHECK (3 == globalLog.use_count());
241 CHECK (furtherRef == globalLog);
string name
element ID, comprehensible but sanitised.
Steam-Layer Interface: Asset Lookup and Organisation.
Tree like classification of Assets.
Framerate specified as frames per second.
Per type specific configuration of instances created as service dependencies.
typed symbolic and hash ID for asset-like position accounting.
#define VERIFY_ERROR(ERROR_ID, ERRONEOUS_STATEMENT)
Macro to verify that a statement indeed raises an exception.
Facade for the Asset subsystem.
This header is for including and configuring NoBug.
Steam-Layer implementation namespace root.
static lib::Depend< AssetManager > instance
get at the system-wide asset manager instance.
string randStr(size_t len)
create garbage string of given length
An entity to collect, possibly filter and persist incident records.
This framework allows to (re)configure the lib::Depend front-end for dependency-injection.
Data processing Plugins and Codecs can be treated as a specific Kind of Asset.
a POD comprised of all the information sufficiently identifying any given Asset.
Simple test class runner.
Tiny helper functions and shortcuts to be used everywhere Consider this header to be effectively incl...
A collection of frequently used helper functions to support unit testing.
lib::P< KIND > getAsset(const ID< KIND > &id)
find and return corresponding object
Small helper and diagnostic functions related to Asset and AssetManager.
To establish a reference scale for quantised time values.
Customised refcounting smart pointer template, built upon std::shared_ptr, but forwarding type relati...
a family of time value like entities and their relationships.
The asset subsystem of the Steam-Layer.