Commit e70da63e authored by Michal 'vorner' Vaner's avatar Michal 'vorner' Vaner
Browse files

[2207] Tests for the zone updater

Doesn't compile, there's no (not even empty) implementation of many
methods of the updater.
parent 234026e0
......@@ -79,7 +79,23 @@ public:
// TODO: Fully define this. It is supposed to be passed to the install_action
// callback, but what does it actually represent? Is it the actuall zone data
// there?
class ZoneSegment {};
// The current interface is temporary, so the tests work. It will probably
// change (and we may even fold this class to some other, because there
// seem to be too many classes around holding zone already).
// FIXME: Who is responsible for releasing of the segment itself?
class ZoneSegment {
explicit ZoneSegment(ZoneData* data) :
ZoneData* getZoneData() {
return (data_);
ZoneData* data_;
// TODO: Somehow specify what the ID is
class ZoneSegmentID {};
......@@ -98,7 +114,8 @@ typedef boost::function<void(ZoneData*)> LoadAction;
/// Upon successful completion, the ownership of the new zone is passed
/// to the callback and the old to the updater.
typedef boost::function<ZoneData* (ZoneSegmentID, ZoneSegment*)> InstallAction;
typedef boost::function<ZoneData* (const ZoneSegmentID&,
ZoneSegment*)> InstallAction;
/// \brief Updater implementation which loads data locally.
......@@ -33,6 +33,7 @@ run_unittests_SOURCES += memory_segment_test.h
run_unittests_SOURCES +=
run_unittests_SOURCES +=
run_unittests_SOURCES +=
run_unittests_SOURCES +=
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment