1 /*
2  * Copyright (c) 2021 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef DMS_TEST_UTILS
17 #define DMS_TEST_UTILS
18 
19 #include <cstdio>
20 #include <cstdlib>
21 #include <string>
22 #include "samgr_lite.h"
23 
24 #include "dmslite_msg_parser.h"
25 #include "dmslite_tlv_common.h"
26 
27 const int MS2US = 1000;
28 const int OPER_INTERVAL = 200;
29 
30 const int PRESSURE_LEVEL0 = 10;
31 const int PRESSURE_LEVEL1 = 1024;
32 const int PRESSURE_LEVEL2 = 1024 * 10;
33 
34 BOOL SystemInitProxy();
35 
36 long long GetSystemTime();
37 
38 std::string GetStringByLen(int len);
39 
40 BOOL InstallHap();
41 BOOL UninstallHap();
42 
43 #endif