1 /*
2  * Copyright (c) 2024 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 
18 #include "ge_system_properties.h"
19 
20 using namespace testing;
21 using namespace testing::ext;
22 
23 namespace OHOS {
24 namespace GraphicsEffectEngine {
25 
26 using namespace Rosen;
27 
28 class GESystemPropertiesTest : public testing::Test {
29 public:
30     static void SetUpTestCase();
31     static void TearDownTestCase();
32     void SetUp() override;
33     void TearDown() override;
34 };
35 
SetUpTestCase(void)36 void GESystemPropertiesTest::SetUpTestCase(void) {}
TearDownTestCase(void)37 void GESystemPropertiesTest::TearDownTestCase(void) {}
38 
SetUp()39 void GESystemPropertiesTest::SetUp() {}
40 
TearDown()41 void GESystemPropertiesTest::TearDown() {}
42 
43 /**
44  * @tc.name: GetEventProperty001
45  * @tc.desc: Verify function GetEventProperty
46  * @tc.type:FUNC
47  */
48 HWTEST_F(GESystemPropertiesTest, GetEventProperty001, TestSize.Level1)
49 {
50     EXPECT_EQ(GESystemProperties::GetEventProperty(""), "0");
51 }
52 
53 /**
54  * @tc.name: GetBoolSystemProperty001
55  * @tc.desc: Verify function GetBoolSystemProperty
56  * @tc.type:FUNC
57  */
58 HWTEST_F(GESystemPropertiesTest, GetBoolSystemProperty001, TestSize.Level1)
59 {
60     EXPECT_FALSE(GESystemProperties::GetBoolSystemProperty("", false));
61 }
62 
63 } // namespace GraphicsEffectEngine
64 } // namespace OHOS
65