• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2020-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 #include "hdf_platform_core_entry_test.h"
10 #include "hdf_log.h"
11 #include "platform_event_test.h"
12 #include "platform_queue_test.h"
13 
14 #define HDF_LOG_TAG hdf_platform_core_entry_test
15 
HdfPlatformEventTestEntry(HdfTestMsg * msg)16 int32_t HdfPlatformEventTestEntry(HdfTestMsg *msg)
17 {
18     if (msg != NULL) {
19         msg->result = PlatformEventTestExecute(msg->subCmd);
20     }
21     return HDF_SUCCESS;
22 }
23 
HdfPlatformQueueTestEntry(HdfTestMsg * msg)24 int32_t HdfPlatformQueueTestEntry(HdfTestMsg *msg)
25 {
26     if (msg != NULL) {
27         msg->result = PlatformQueueTestExecute(msg->subCmd);
28     }
29     return HDF_SUCCESS;
30 }
31 
HdfPlatformDeviceTestEntry(HdfTestMsg * msg)32 int32_t HdfPlatformDeviceTestEntry(HdfTestMsg *msg)
33 {
34     msg->result = HDF_SUCCESS;
35     return HDF_SUCCESS;
36 }
37 
HdfPlatformManagerTestEntry(HdfTestMsg * msg)38 int32_t HdfPlatformManagerTestEntry(HdfTestMsg *msg)
39 {
40     msg->result = HDF_SUCCESS;
41     return HDF_SUCCESS;
42 }
43 
44