45 using LERR_(UNKNOWN_ASSET_ID);
46 using LERR_(WRONG_ASSET_KIND);
49 ::Local<vault::test::MediaAccessMock>;
60 virtual void run(Arg arg)
62 MediaAccessMock useMockMedia;
70 TRACE (asset_mem,
"leaving CreateAsset_test::run()");
95 registered = aMang.
getAsset (mm1->getID());
96 CHECK (registered == mm1);
97 registered = aMang.
getAsset (mm2->getID());
98 CHECK (registered == mm2);
99 registered = aMang.
getAsset (mm3->getID());
100 CHECK (registered == mm3);
102 registered = aMang.
getAsset (mm1->getID());
103 CHECK (registered != mm2);
120 CHECK (aMang.
known (mm1->getID()));
121 CHECK (aMang.
known (mm2->getID()));
122 CHECK (aMang.
known (mm3->getID()));
134 CHECK (mm1->ident.name ==
"test-1");
135 CHECK (mm2->ident.name ==
"test-1");
136 CHECK (mm3->ident.name ==
"test-2");
138 CHECK (cat ==
Category (VIDEO,
"bin1"));
139 CHECK (mm1->ident.category ==
Category (VIDEO,
"bin1"));
140 CHECK (mm2->ident.category ==
Category (VIDEO,
"bin1"));
141 CHECK (mm3->ident.category ==
Category (VIDEO ));
143 CHECK (mm1->ident.org ==
"ichthyo");
144 CHECK (mm2->ident.org ==
"lumi");
145 CHECK (mm3->ident.org ==
"lumi");
147 CHECK (mm1->ident.version == 5);
148 CHECK (mm2->ident.version == 1);
149 CHECK (mm3->ident.version == 1);
151 CHECK (mm1->getFilename() ==
"testfile.mov");
152 CHECK (mm2->getFilename() ==
"test-1.mov");
153 CHECK (mm3->getFilename() ==
"test-2.mov");
156 TRACE (asset_mem,
"leaving test method scope");
172 CHECK ( checkProperties (candi, key1,
""));
175 CHECK ( checkProperties (candi, key1,
"test-1.wav"));
179 CHECK ( checkProperties (candi, key2,
"test-2.wav"));
180 CHECK (key2.
name ==
"test-2");
188 ,
"some/path/test-4.wav"));
199 bool checkProperties (
PM object,
Asset::Ident identity,
string filename)
201 return identity ==
object->ident
202 && filename ==
object->getFilename();
212 GridID myGrID (randStr(8));
215 PGrid myGrid = gridSpec.commit();
218 CHECK (myGrid->ident.name == myGrID.getSym());
226 CHECK (globalLog->ident.name == meta::theErrorLog_ID.getSym());
228 CHECK (2 == globalLog.use_count());
231 CHECK (3 == globalLog.use_count());
232 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.
Simplistic 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.