Move timeMode property to manager

The current logic is to maintain the same attribute in manager and
epoch_base, the purpose of this commit is to merge this attribute
into manager for maintenance.

Also, Update the test/TestBmcEpoch.cpp file.

Tested: Built phosphor-time-manager successfully and UT passed.

Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: I05fea271d672bf12ecb722005023dfa6a2a980d1
diff --git a/epoch_base.cpp b/epoch_base.cpp
index 17be2c6..1761bea 100644
--- a/epoch_base.cpp
+++ b/epoch_base.cpp
@@ -24,13 +24,15 @@
 using namespace phosphor::logging;
 using FailedError = sdbusplus::xyz::openbmc_project::Time::Error::Failed;
 
-EpochBase::EpochBase(sdbusplus::bus_t& bus, const char* objPath) :
-    sdbusplus::server::object_t<EpochTime>(bus, objPath), bus(bus)
+EpochBase::EpochBase(sdbusplus::bus_t& bus, const char* objPath,
+                     Manager& manager) :
+    sdbusplus::server::object_t<EpochTime>(bus, objPath),
+    bus(bus), manager(manager)
 {}
 
 void EpochBase::onModeChanged(Mode mode)
 {
-    timeMode = mode;
+    manager.setTimeMode(mode);
 }
 
 using namespace std::chrono;