• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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) {}
37 
TearDownTestCase(void)38 void GESystemPropertiesTest::TearDownTestCase(void) {}
39 
SetUp()40 void GESystemPropertiesTest::SetUp() {}
41 
TearDown()42 void GESystemPropertiesTest::TearDown() {}
43 
44 /**
45  * @tc.name: GetEventProperty_001
46  * @tc.desc: Verify function GetEventProperty
47  * @tc.type:FUNC
48  */
49 HWTEST_F(GESystemPropertiesTest, GetEventProperty_001, TestSize.Level2)
50 {
51     EXPECT_EQ(GESystemProperties::GetEventProperty(""), "0");
52 }
53 
54 /**
55  * @tc.name: GetBoolSystemProperty_001
56  * @tc.desc: Verify function GetBoolSystemProperty
57  * @tc.type:FUNC
58  */
59 HWTEST_F(GESystemPropertiesTest, GetBoolSystemProperty_001, TestSize.Level2)
60 {
61     EXPECT_FALSE(GESystemProperties::GetBoolSystemProperty("", false));
62 }
63 
64 } // namespace GraphicsEffectEngine
65 } // namespace OHOS
66