Lumiera
0.pre.03
»edit your freedom«
|
Go to the source code of this file.
A hierarchy of simple dummy-Media-Objects for easy unit testing.
Normally, the creation of MObjects and corresponding Placements is defined to be very restricted. Any MObjects are supposed to be created by the MObjectFactory, which provided very specialised factory functions. When writing unit tests to check the basic MObject properties and behaviour, this can be an obstacle. Thus we create a separate branch in the MObject hierarchy with relaxed requirements and some dummy/test API functions.
Definition in file test-dummy-mobject.hpp.
#include "lib/test/run.hpp"
#include "steam/mobject/builder/buildertool.hpp"
#include "steam/mobject/session/abstractmo.hpp"
#include "steam/mobject/placement.hpp"
#include "lib/format-string.hpp"
#include "lib/format-cout.hpp"
#include "lib/symbol.hpp"
#include "lib/util.hpp"
#include <cstdlib>
Classes | |
class | DummyMO |
Test MObject subclass, which, contrary to any real MObject, can be created directly without involving MObjectFactory. More... | |
class | TestPlacement< DMO, B > |
class | TestPlacement< DMO, B > |
class | TestPlacement<> |
struct | TestSubMO1 |
Subclass-1 is not defined "processible", thus will always be handled as DummyMO... More... | |
struct | TestSubMO2 |
Subclass-2 is defined "processible", but we omit the necessary "applicable" definition in TestTool, resulting in an invocation of the error (catch-all) function... More... | |
struct | TestSubMO21 |
Namespaces | |
steam | |
Steam-Layer implementation namespace root. | |
steam::mobject | |
Media-Objects, edit operations and high-level session. | |