From 3efe74c0409b805dfee51a27bd9a3b9c6f54c0be Mon Sep 17 00:00:00 2001
From: Dimitrios Stoupis <dimitris.apple@gmail.com>
Date: Sat, 16 Mar 2019 01:13:31 +0000
Subject: [PATCH] Enabled access to private members for the tester

---
 inc/Services/TimeBasedSchedulingService.hpp  | 15 +++++++++++----
 test/Services/TimeBasedSchedulingService.cpp |  4 ++++
 2 files changed, 15 insertions(+), 4 deletions(-)
 create mode 100644 test/Services/TimeBasedSchedulingService.cpp

diff --git a/inc/Services/TimeBasedSchedulingService.hpp b/inc/Services/TimeBasedSchedulingService.hpp
index ea75f0d6..f869b716 100644
--- a/inc/Services/TimeBasedSchedulingService.hpp
+++ b/inc/Services/TimeBasedSchedulingService.hpp
@@ -20,6 +20,9 @@
 #define MAX_DELTA_OF_RELEASE_TIME   60 // todo: Define the maximum delta between the specified
 // release time and the actual release time
 
+namespace unit_test {
+	struct Tester;
+}
 
 class TimeBasedSchedulingService : public Service {
 public:
@@ -52,6 +55,9 @@ private:
 	};
 	etl::vector<ScheduledActivity, MAX_NUMBER_OF_ACTIVITIES> scheduledActivities; // Scheduled activity definitions
 
+	// Enable tester access to private members
+	friend struct ::unit_test::Tester;
+
 
 public:
 	/**
@@ -98,7 +104,7 @@ public:
 	 * TC[11,16] detail-report all activities
 	 *
 	 * @details Send a detailed report about the status of all the activities
-				on the current schedule
+				on the current schedule. Generates a TM[11,10] response
 	 * @param request Provide the received message as a parameter
 	 */
 	void detailReportAllActivities(Message &request);
@@ -106,7 +112,8 @@ public:
 	/**
 	 * TC[11,9] detail-report activities identified by request identifier
 	 *
-	 * @details Send a detailed report about the status of the requested activities
+	 * @details Send a detailed report about the status of the requested activities. Generates a
+	 * 			TM[11,10] response
 	 * @param request Provide the received message as a parameter
 	 */
 	void detailReporActivitiesByID(Message &request);
@@ -114,7 +121,8 @@ public:
 	/**
 	 * TC[11,12] summary-report activities identified by request identifier
 	 *
-	 * @details Send a summary report about the status of the requested activities
+	 * @details Send a summary report about the status of the requested activities. Generates a
+	 * 			TM[11,13] response
 	 * @param request Provide the received message as a parameter
 	 */
 	void summaryReporActivitiesByID(Message &request);
@@ -138,7 +146,6 @@ public:
 
 private:
 
-
 };
 
 #endif //ECSS_SERVICES_TIMEBASEDSCHEDULINGSERVICE_HPP
diff --git a/test/Services/TimeBasedSchedulingService.cpp b/test/Services/TimeBasedSchedulingService.cpp
new file mode 100644
index 00000000..4a901724
--- /dev/null
+++ b/test/Services/TimeBasedSchedulingService.cpp
@@ -0,0 +1,4 @@
+//
+// Created by dimitris on 15/03/19.
+//
+
-- 
GitLab