26 #include <boost/functional/hash.hpp> 35 using vault::gear::JobParameter;
57 verify_simple_job_properties();
58 verify_job_identity();
63 verify_simple_job_properties()
66 Time beforeInvocation = RealClock::now();
69 CHECK (MockJob::was_invoked (job));
70 CHECK (RealClock::now() > MockJob::invocationTime (job));
71 CHECK (beforeInvocation < MockJob::invocationTime (job));
81 CHECK (job1 != job2,
"random test data clash");
86 CHECK (!isSameObject (job1, copy));
91 copy.parameter.nominalTime++;
95 copy.parameter.invoKey.part.a++;
102 void invokeJobOperation (JobParameter) { }
109 return boost::hash_value (invoKey.part.a);
112 OtherClosure someOtherClosure;
115 copy.jobClosure = &someOtherClosure;
Mock data structures to support implementation testing of render job planning and frame dispatch...
Mock setup for a render Job with NO action but built-in diagnostics.
Steam-Layer implementation namespace root.
Lumiera's internal time value datatype.
Simplistic test class runner.
Tiny helper functions and shortcuts to be used everywhere Consider this header to be effectively incl...
Definition of a render job.
opaque ID attached to each individual job invocation.
size_t HashVal
a STL compatible hash value
Interface of the closure for frame rendering jobs.
render process self organisation
Individual frame rendering task, forwarding to a closure.
Front-end for simplified access to the current wall clock time.
HashVal hash_value(ProcID const &procID)
generate registry hash value based on the distinct data in ProcID.
bool isSameObject(A const &a, B const &b)
compare plain object identity, based directly on the referee's memory identities. ...