1 /* 2 * Copyright (c) 2022 Huawei Device Co., Ltd. 3 * 4 * HDF is dual licensed: you can use it either under the terms of 5 * the GPL, or the BSD license, at your option. 6 * See the LICENSE file in the root of this repository for complete details. 7 */ 8 9 #include "hdf_timer_entry_test.h" 10 #include "hdf_log.h" 11 #include "timer_test.h" 12 13 #define HDF_LOG_TAG hdf_timer_entry_test 14 HdfTimerUnitTestEntry(HdfTestMsg * msg)15int32_t HdfTimerUnitTestEntry(HdfTestMsg *msg) 16 { 17 if (msg == NULL) { 18 HDF_LOGE("HdfTimerUnitTestEntry: msg is null!"); 19 return HDF_FAILURE; 20 } 21 22 msg->result = TimerTestExecute(msg->subCmd); 23 return msg->result; 24 } 25