diff options
author | William A. Kennington III <wak@google.com> | 2018-02-28 15:26:06 -0800 |
---|---|---|
committer | William A. Kennington III <wak@google.com> | 2018-02-28 15:44:54 -0800 |
commit | ab17520b8558d2e83aea5162124a6379418ec32a (patch) | |
tree | 1b0a4437e9cf6a9c33ef4f85e80e1bf782b86d24 | |
parent | f0fe2d6ef7cef8de419277f6839dd229cddc1c1c (diff) | |
download | phosphor-watchdog-ab17520b8558d2e83aea5162124a6379418ec32a.tar.gz phosphor-watchdog-ab17520b8558d2e83aea5162124a6379418ec32a.zip |
tests: Make private members protected
Googletest derived classes should never have private members unless they
are inteded to not be accessible to class functions. Since class
functions are derived from the provided class, the private members are
unable to be accessed by the test cases. In a future change we need access
to one of these members so make them protected.
Change-Id: Iadbb53adc748d02168a1fc83f738f86437a1d15c
Signed-off-by: William A. Kennington III <wak@google.com>
-rw-r--r-- | test/watchdog_test.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/watchdog_test.hpp b/test/watchdog_test.hpp index beeda66..5b5348a 100644 --- a/test/watchdog_test.hpp +++ b/test/watchdog_test.hpp @@ -40,7 +40,7 @@ class WdogTest : public TimerTest // has happened that remaining time was off by few msecs. milliseconds defaultDrift; - private: + protected: // Dummy name for object path // This is just to satisfy the constructor. Does not have // a need to check if the objects paths have been created. |