diff --git a/src/lib/depend-inject.hpp b/src/lib/depend-inject.hpp index 8ef9f8dd6..2cc05e43a 100644 --- a/src/lib/depend-inject.hpp +++ b/src/lib/depend-inject.hpp @@ -285,7 +285,7 @@ namespace lib { * instance of the `MOC` subclass, which it manages and exposes like a smart-ptr. * When the handle goes out of scope, the original state and configuration is restored */ - template + template class Local : util::MoveOnly { diff --git a/tests/gui/interact/view-spec-dsl-test.cpp b/tests/gui/interact/view-spec-dsl-test.cpp index c0b8fd29f..cf6459a95 100644 --- a/tests/gui/interact/view-spec-dsl-test.cpp +++ b/tests/gui/interact/view-spec-dsl-test.cpp @@ -29,15 +29,20 @@ #include "lib/test/test-helper.hpp" #include "gui/interact/view-spec-dsl.hpp" #include "gui/interact/ui-coord.hpp" +#include "gui/interact/gen-node-location-query.hpp" +#include "lib/depend-inject.hpp" #include "lib/format-cout.hpp" //#include "lib/idi/entry-id.hpp" //#include "lib/diff/gen-node.hpp" //#include "lib/util.hpp" //#include +//#include -//using std::string; +using std::string; +using lib::diff::MakeRec; +using lib::diff::Rec; //using lib::idi::EntryID; //using lib::diff::GenNode; //using util::isSameObject; @@ -51,6 +56,8 @@ namespace test { // using lumiera::error::LUMIERA_ERROR_WRONG_TYPE; using lib::test::showSizeof; + using MockLoationSolver = lib::DependInject::Local<>; + namespace { //Test fixture... }//(End)Test fixture @@ -86,6 +93,21 @@ namespace test { void verify_standardUsage() { + //-------------------------------------------------------------Test-Fixture + // a Test dummy placeholder for the real UI structure + Rec dummyUiStructure = MakeRec() + .set("win-1" + , MakeRec() + .type("perspective") + .set("parentLocation", MakeRec()) + ); + // answer "location queries" backed by this structure + GenNodeLocationQuery locationQuery{dummyUiStructure}; + MockLoationSolver mock ([&]{ return new UILocationSolver{locationQuery}; }); + //--------------------------------------------------------------(End)Test-Fixture + + + uint allocCounter = 0; // Simulation/Example for an allocator-builder @@ -96,8 +118,6 @@ namespace test { else return target.tab(limit); }; - /////////TODO verify this... - cout << showSizeof(limitAllocation) < - + + - - + + + + + + + + @@ -11830,14 +11837,15 @@ - + + - - + +