//------------------------------------------------------------------------------ // Constructor //------------------------------------------------------------------------------ NTPService::NTPService(void) { // Retrieve NTP informations if(!getNTPInfo()) throw CIMObjectNotFoundException("NTPService " "can't create PG_NTPService instance"); }
void test_GetNTPInfo() { OnvifNTPInfo ntpInfo; TEST_ASSERT_EQUAL(RET_CODE_SUCCESS, getNTPInfo(&ntpInfo)); }