diff options
| author | Lei YU <mine260309@gmail.com> | 2017-02-23 15:24:05 +0800 |
|---|---|---|
| committer | Lei YU <mine260309@gmail.com> | 2017-10-16 20:40:04 +0800 |
| commit | a741713c3edcf19569d02bce1c76c53f76a61e13 (patch) | |
| tree | bf4d0f2e825aff3ce06d73f17b2e35b2e78b14c5 /test | |
| parent | 7b21879622a974d4ca92da760be7c7008732b6c3 (diff) | |
| download | phosphor-time-manager-a741713c3edcf19569d02bce1c76c53f76a61e13.tar.gz phosphor-time-manager-a741713c3edcf19569d02bce1c76c53f76a61e13.zip | |
Invoke SetNTP and UpdateUseNtpField in time manager
1. When time mode is changed, invoke systemd timedate1's SetNTP
method to update NTP settings;
2. When settings use_dhcp_ntp property is changed, invoke
NetworkManager's UpdateUseNtpField method to update its setting;
3. Move the common code of getProperty() into utils.hpp
Change-Id: I981e0e9de9c0430282b3364c38c282312bb2be89
Signed-off-by: Lei YU <mine260309@gmail.com>
Diffstat (limited to 'test')
| -rw-r--r-- | test/TestManager.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/TestManager.cpp b/test/TestManager.cpp index 935590e..1e4096e 100644 --- a/test/TestManager.cpp +++ b/test/TestManager.cpp @@ -135,5 +135,8 @@ TEST_F(TestManager, propertyChange) ASSERT_DEATH(notifyPropertyChanged("invalid property", "whatever"), ""); } +// TODO: if gmock is ready, add case to test +// updateNtpSetting() and updateNetworkSetting() + } } |

