X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/7981fe568ccfcc3c517bd73ac146d2b59fa85ea2..78edc5d868c7cb88107abcdc887180ff15c5228f:/src/surf/trace_mgr_test.cpp diff --git a/src/surf/trace_mgr_test.cpp b/src/surf/trace_mgr_test.cpp index d8bc1c94c0..3b64866250 100644 --- a/src/surf/trace_mgr_test.cpp +++ b/src/surf/trace_mgr_test.cpp @@ -4,12 +4,12 @@ * under the terms of the license (GNU LGPL) which comes with this package. */ #define BOOST_TEST_MODULE Trace Manager tests -bool init_unit_test(); // boost forget to give this prototype on NetBSD, which does not fit our paranoid flags +bool init_unit_test(); // boost sometimes forget to give this prototype (NetBSD and other), which does not fit our paranoid flags #define BOOST_TEST_DYN_LINK #define BOOST_TEST_NO_MAIN #include -#include "src/kernel/model/Resource.hpp" +#include "simgrid/kernel/resource/Resource.hpp" #include "src/surf/surf_interface.hpp" #include "src/surf/trace_mgr.hpp" @@ -24,15 +24,15 @@ namespace tmgr = simgrid::trace_mgr; XBT_LOG_NEW_DEFAULT_CATEGORY(unit, "Unit tests of the Trace Manager"); double thedate; -class MockedResource : public simgrid::kernel::model::Resource { +class MockedResource : public simgrid::kernel::resource::Resource { public: - explicit MockedResource() : simgrid::kernel::model::Resource(nullptr, "fake", nullptr) {} - void apply_event(tmgr_trace_event_t event, double value) + explicit MockedResource() : simgrid::kernel::resource::Resource(nullptr, "fake", nullptr) {} + void apply_event(tmgr_trace_event_t event, double value) override { XBT_VERB("t=%.1f: Change value to %lg (idx: %u)", thedate, value, event->idx); tmgr_trace_event_unref(&event); } - bool isUsed() { return true; } + bool is_used() override { return true; } }; static void trace2vector(const char* str, std::vector* whereto) @@ -50,7 +50,7 @@ static void trace2vector(const char* str, std::vector* whereto while (fes.next_date() <= 20.0 && fes.next_date() >= 0) { thedate = fes.next_date(); double value; - simgrid::kernel::model::Resource* res; + simgrid::kernel::resource::Resource* res; tmgr_trace_event_t it = fes.pop_leq(thedate, &value, &res); if (it == nullptr) continue;