37 ::Local<vault::test::MediaAccessMock>;
50 virtual void run (Arg)
67 CHECK (isnil (a1->getParents()));
68 CHECK (isnil (a1->getDependant()));
70 PTestA a2 = TA::create(a1);
71 CHECK (a1 == a2->getParents()[0]);
72 CHECK (a2 == a1->getDependant()[0]);
76 CHECK (a3 == a2->getParents()[1]);
77 CHECK (a2 == a3->getDependant()[0]);
78 CHECK (!contains (a1->getDependant(), a3));
86 PTestA a1_ = TA::create();
88 PTestA a2_ = TA::create(a1);
90 PAsset a3 = TA::create(a2);
91 CHECK (a1 == a2->getParents()[0]);
92 CHECK (a2 == a1->getDependant()[0]);
93 CHECK (a2 == a3->getParents()[0]);
94 CHECK (a3 == a2->getDependant()[0]);
97 CHECK (isnil (a2->getDependant()));
98 CHECK (!contains (a1->getDependant(), a2));
99 CHECK (!isnil (a2->getParents()));
100 CHECK (contains (a3->getParents(), a2));
102 a2_->call_unlink(a1->getID());
104 PAsset a4 = TA::create(a1);
105 CHECK (a1 == a2->getParents()[0]);
106 CHECK (a1 == a4->getParents()[0]);
107 CHECK (a2 == a1->getDependant()[0]);
108 CHECK (a4 == a1->getDependant()[1]);
110 a1_->call_unlink(a4->getID());
111 CHECK (!contains (a1->getDependant(), a4));
112 CHECK ( contains (a1->getDependant(), a2));
113 CHECK (a1 == a4->getParents()[0]);
123 PTestA a2_= TA::create(a1);
127 CHECK (a1->isActive());
128 CHECK (a2->isActive());
129 CHECK (a3->isActive());
132 CHECK (!a1->isActive());
133 CHECK (!a2->isActive());
134 CHECK (a3->isActive());
137 CHECK (!a1->isActive());
138 CHECK (!a2->isActive());
141 CHECK (a1->isActive());
142 CHECK (a2->isActive());
145 CHECK (a1->isActive());
146 CHECK (!a2->isActive());
148 CHECK (a1->isActive());
149 CHECK (a2->isActive());
152 CHECK (a1->isActive());
153 CHECK (a2->isActive());
154 CHECK (!a3->isActive());
158 CHECK (!a1->isActive());
159 CHECK (!a2->isActive());
160 CHECK (a3->isActive());
165 CHECK (a1->isActive());
166 CHECK (!a2->isActive());
167 CHECK (!a3->isActive());
170 CHECK (a1->isActive());
171 CHECK (!a2->isActive());
172 CHECK (!a3->isActive());
174 CHECK (!a1->isActive());
176 CHECK (!a1->isActive());
177 CHECK (!a2->isActive());
178 CHECK (a3->isActive());
180 CHECK (a1->isActive());
181 CHECK (a2->isActive());
182 CHECK (a3->isActive());
194 MediaAccessMock useMockMedia;
200 PC cc = mm->createClip()->findClipAsset();
201 CHECK (dependencyCheck (cc,mm));
Per type specific configuration of instances created as service dependencies.
Steam-Layer implementation namespace root.
This framework allows to (re)configure the lib::Depend front-end for dependency-injection.
Simplistic test class runner.
Tiny helper functions and shortcuts to be used everywhere Consider this header to be effectively incl...
void checkDependencyMechanics()
void checkEnablementPropagation()
A mock asset to support unit testing.
Definition of Asset representation for a media clip.
Test(mock) asset subclass usable for hijacking a given asset class (template parameter) and subsequen...
Small helper and diagnostic functions related to Asset and AssetManager.
Customised refcounting smart pointer template, built upon std::shared_ptr, but forwarding type relati...
The asset subsystem of the Steam-Layer.
void checkRealAssetDependencyRegistration()
bool contains(SEQ const &cont, typename SEQ::const_reference val)
shortcut for brute-force containment test in any sequential container