made getter public

This commit is contained in:
Robin Müller 2021-03-09 23:18:53 +01:00
parent e5b3b6d75e
commit bb5b7bed40
2 changed files with 3 additions and 1 deletions

View File

@ -166,6 +166,8 @@ public:
object_id_t getCreatorObjectId();
bool getReportingEnabled() const;
protected:
sid_t sid;
//! This mutex is used if the data is created by one object only.
@ -180,7 +182,6 @@ protected:
*/
bool reportingEnabled = false;
void setReportingEnabled(bool enabled);
bool getReportingEnabled() const;
void initializePeriodicHelper(float collectionInterval,
dur_millis_t minimumPeriodicInterval,

View File

@ -21,6 +21,7 @@ TEST_CASE("LocalDataSet" , "[LocDataSetTest]") {
SECTION("BasicTest") {
/* Test some basic functions */
CHECK(localSet.getReportingEnabled() == false);
CHECK(localSet.getLocalPoolIdsSerializedSize(false) == 3 * sizeof(lp_id_t));
CHECK(localSet.getLocalPoolIdsSerializedSize(true) ==
3 * sizeof(lp_id_t) + sizeof(uint8_t));