1 /* 2 * Copyright (c) 2021 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 #ifndef PLATFORM_DEVICE_TEST_H 10 #define PLATFORM_DEVICE_TEST_H 11 12 #ifdef __cplusplus 13 extern "C" { 14 #endif 15 16 enum PlatformDeviceTestCmd { 17 PLAT_DEVICE_TEST_SET_NAME = 0, 18 PLAT_DEVICE_TEST_GET_DEVICE = 1, 19 PLAT_DEVICE_TEST_WAIT_EVENT = 2, 20 PLAT_DEVICE_TEST_ADD_DEVICE = 3, 21 PLAT_DEVICE_TEST_CREATE_SERVICE = 4, 22 PLAT_DEVICE_TEST_BIND_DEVICE = 5, 23 PLAT_DEVICE_TEST_RELIABILITY = 6, 24 PLAT_DEVICE_TEST_CMD_MAX, 25 }; 26 27 int PlatformDeviceTestExecute(int cmd); 28 void PlatformDeviceTestExecuteAll(void); 29 void PlatformDeviceTestSetUpAll(void); 30 void PlatformDeviceTestTearDownAll(void); 31 32 #ifdef __cplusplus 33 } 34 #endif 35 #endif /* PLATFORM_DEVICE_TEST_H */ 36