• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 #ifndef PLATFORM_DUMPER_TEST_H
10 #define PLATFORM_DUMPER_TEST_H
11 
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15 
16 enum PlatformDumperTestCmd {
17     PLAT_DUMPER_TEST_ADD_UINT8 = 0,
18     PLAT_DUMPER_TEST_ADD_UINT16,
19     PLAT_DUMPER_TEST_ADD_UINT32,
20     PLAT_DUMPER_TEST_ADD_UINT64,
21     PLAT_DUMPER_TEST_ADD_INT8,
22     PLAT_DUMPER_TEST_ADD_INT16,
23     PLAT_DUMPER_TEST_ADD_INT32,
24     PLAT_DUMPER_TEST_ADD_INT64,
25     PLAT_DUMPER_TEST_ADD_FLOAT,
26     PLAT_DUMPER_TEST_ADD_DOUBLE,
27     PLAT_DUMPER_TEST_ADD_CHAR,
28     PLAT_DUMPER_TEST_ADD_STRING,
29     PLAT_DUMPER_TEST_ADD_REGISTER,
30     PLAT_DUMPER_TEST_ADD_ARRAY_DATA,
31     PLAT_DUMPER_TEST_SET_OPS,
32     PLAT_DUMPER_TEST_MULTI_THREAD,
33     PLAT_DUMPER_TEST_DEL_DATA,
34     PLAT_DUMPER_TEST_RELIABILITY,
35     PLAT_DUMPER_TEST_CMD_MAX,
36 };
37 
38 #define PLAT_DUMPER_TEST_STACK_SIZE   (1024 * 100)
39 #define PLAT_DUMPER_TEST_WAIT_TIMES   200
40 #define PLAT_DUMPER_TEST_WAIT_TIMEOUT 20
41 
42 int PlatformDumperTestExecute(int cmd);
43 void PlatformDumperTestExecuteAll(void);
44 
45 #ifdef __cplusplus
46 }
47 #endif
48 #endif /* PLATFORM_DUMPER_TEST_H */
49