1 /*
2 * Copyright (c) 2023 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 #include <gtest/gtest.h>
17 #include "hisys_event_util.h"
18 #include "print_constant.h"
19 #include "print_log.h"
20
21 using namespace testing::ext;
22
23 namespace OHOS {
24 namespace Print {
25 class HisysEventUtilTest : public testing::Test {
26 public:
27 static void SetUpTestCase(void);
28 static void TearDownTestCase(void);
29 void SetUp();
30 void TearDown();
31 };
32
SetUpTestCase(void)33 void HisysEventUtilTest::SetUpTestCase(void) {}
34
TearDownTestCase(void)35 void HisysEventUtilTest::TearDownTestCase(void) {}
36
SetUp(void)37 void HisysEventUtilTest::SetUp(void) {}
38
TearDown(void)39 void HisysEventUtilTest::TearDown(void) {}
40
41 /**
42 * @tc.name: HisysEventUtilTest_0001
43 * @tc.desc: reportPrintSuccess
44 * @tc.type: FUNC
45 * @tc.require:
46 */
47 HWTEST_F(HisysEventUtilTest, HisysEventUtilTest_0001, TestSize.Level1)
48 {
49 HisysEventUtil::reportPrintSuccess("printSuccess");
50 }
51
52 /**
53 * @tc.name: HisysEventUtilTest_0001
54 * @tc.desc: faultPrint
55 * @tc.type: FUNC
56 * @tc.require:
57 */
58 HWTEST_F(HisysEventUtilTest, HisysEventUtilTest_0002, TestSize.Level1)
59 {
60 HisysEventUtil::faultPrint("printfault", "errCode");
61 }
62 } // namespace Print
63 } // namespace OHOS