@@ -45,6 +45,7 @@ class TestTask : public ppc::task::Task<InType, OutType> {
4545 this ->GetInput () = in;
4646 }
4747
48+ protected:
4849 bool ValidationImpl () override {
4950 return !this ->GetInput ().empty ();
5051 }
@@ -71,6 +72,7 @@ class FakeSlowTask : public TestTask<InType, OutType> {
7172 public:
7273 explicit FakeSlowTask (const InType &in) : TestTask<InType, OutType>(in) {}
7374
75+ protected:
7476 bool RunImpl () override {
7577 std::this_thread::sleep_for (std::chrono::seconds (2 ));
7678 return TestTask<InType, OutType>::RunImpl ();
@@ -233,9 +235,12 @@ TEST(TaskTest, TaskDestructorThrowsIfStageIncomplete) {
233235 {
234236 std::vector<int32_t > in (20 , 1 );
235237 struct LocalTask : Task<std::vector<int32_t >, int32_t > {
238+ public:
236239 explicit LocalTask (const std::vector<int32_t > &in) {
237240 this ->GetInput () = in;
238241 }
242+
243+ protected:
239244 bool ValidationImpl () override {
240245 return true ;
241246 }
@@ -259,9 +264,12 @@ TEST(TaskTest, TaskDestructorThrowsIfEmpty) {
259264 {
260265 std::vector<int32_t > in (20 , 1 );
261266 struct LocalTask : Task<std::vector<int32_t >, int32_t > {
267+ public:
262268 explicit LocalTask (const std::vector<int32_t > &in) {
263269 this ->GetInput () = in;
264270 }
271+
272+ protected:
265273 bool ValidationImpl () override {
266274 return true ;
267275 }
@@ -285,9 +293,12 @@ TEST(TaskTest, InternalTimeTestThrowsIfTimeoutExceeded) {
285293 GTEST_SKIP () << " Skipped on macOS due to time fluctuations." ;
286294#endif
287295 struct SlowTask : Task<std::vector<int32_t >, int32_t > {
296+ public:
288297 explicit SlowTask (const std::vector<int32_t > &in) {
289298 this ->GetInput () = in;
290299 }
300+
301+ protected:
291302 bool ValidationImpl () override {
292303 return true ;
293304 }
@@ -315,6 +326,8 @@ TEST(TaskTest, InternalTimeTestThrowsIfTimeoutExceeded) {
315326class DummyTask : public Task <int , int > {
316327 public:
317328 using Task::Task;
329+
330+ protected:
318331 bool ValidationImpl () override {
319332 return true ;
320333 }
0 commit comments