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 "res_sched_system_util_test.h"
17
18 #include "res_sched_system_util.h"
19
20 using namespace std;
21 using namespace testing::ext;
22
23 namespace OHOS {
24 namespace ResourceSchedule {
25
26
SetUpTestCase()27 void ResSchedSystemUtilTest::SetUpTestCase() {}
28
TearDownTestCase()29 void ResSchedSystemUtilTest::TearDownTestCase() {}
30
SetUp()31 void ResSchedSystemUtilTest::SetUp() {}
32
TearDown()33 void ResSchedSystemUtilTest::TearDown() {}
34
35 /**
36 * @tc.name: ResSchedSystemUtilTest GetTotalRamSize_001
37 * @tc.desc: test GetTotalRamSize
38 * @tc.type: FUNC
39 * @tc.require: issueIB8Y0E
40 */
41 HWTEST_F(ResSchedSystemUtilTest, GetTotalRamSize_001, Function | MediumTest | Level0)
42 {
43 EXPECT_NE(ResCommonUtil::GetTotalRamSize("test"), 0);
44 EXPECT_NE(ResCommonUtil::GetTotalRamSize(), 0);
45 }
46
47 /**
48 * @tc.name: ResSchedSystemUtilTest GetTotalRomSize_001
49 * @tc.desc: test GetTotalRomSize
50 * @tc.type: FUNC
51 * @tc.require: issueIB8Y0E
52 */
53 HWTEST_F(ResSchedSystemUtilTest, GetTotalRomSize_001, Function | MediumTest | Level0)
54 {
55 EXPECT_NE(ResCommonUtil::GetTotalRomSize(), 0);
56 }
57
58 /**
59 * @tc.name: ResSchedSystemUtilTest GetSystemProperties_001
60 * @tc.desc: test GetSystemProperties
61 * @tc.type: FUNC
62 * @tc.require: issueIB8Y0E
63 */
64 HWTEST_F(ResSchedSystemUtilTest, GetSystemProperties_001, Function | MediumTest | Level0)
65 {
66 EXPECT_EQ(ResCommonUtil::GetSystemProperties("", ""), "");
67 }
68 } // namespace ResourceSchedule
69 } // namespace OHOS
70