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 "session_manager/include/scene_session_manager.h"
19 #include "session_manager/include/scene_session_manager_lite.h"
20 
21 using namespace testing;
22 using namespace testing::ext;
23 
24 namespace OHOS {
25 namespace Rosen {
26 class SceneSessionManagerLiteTest : public testing::Test {
27 public:
28     static void SetUpTestCase();
29     static void TearDownTestCase();
30     void SetUp() override;
31     void TearDown() override;
32 };
33 
SetUpTestCase()34 void SceneSessionManagerLiteTest::SetUpTestCase()
35 {
36 }
37 
TearDownTestCase()38 void SceneSessionManagerLiteTest::TearDownTestCase()
39 {
40 }
41 
SetUp()42 void SceneSessionManagerLiteTest::SetUp()
43 {
44 }
45 
TearDown()46 void SceneSessionManagerLiteTest::TearDown()
47 {
48 }
49 
50 namespace {
51 /**
52  * @tc.name: GetInstance
53  * @tc.desc: test function : GetInstance
54  * @tc.type: FUNC
55  */
56 HWTEST_F(SceneSessionManagerLiteTest, GetInstance, Function | SmallTest | Level1)
57 {
58     SceneSessionManagerLite& instance1 = SceneSessionManagerLite::GetInstance();
59     EXPECT_NE(nullptr, &instance1);
60     SceneSessionManagerLite& instance2 = SceneSessionManagerLite::GetInstance();
61     EXPECT_EQ(&instance1, &instance2);
62 }
63 }
64 }
65 }