1 /* 2 * Copyright (c) 2022 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 "edm_sys_manager.h" 18 #include "system_ability_definition.h" 19 20 using namespace testing::ext; 21 22 namespace OHOS { 23 namespace EDM { 24 namespace TEST { 25 class EdmSysManagerTest : public testing::Test { 26 protected: SetUp()27 void SetUp() override {} 28 TearDown()29 void TearDown() override {} 30 }; 31 32 /** 33 * @tc.name: TestGetRemoteObjectOfSystemAbility 34 * @tc.desc: Test GetRemoteObjectOfSystemAbility function. 35 * @tc.type: FUNC 36 */ 37 HWTEST_F(EdmSysManagerTest, TestGetRemoteObjectOfSystemAbility, TestSize.Level1) 38 { 39 auto remoteObject = EdmSysManager::GetRemoteObjectOfSystemAbility(ENTERPRISE_DEVICE_MANAGER_SA_ID); 40 ASSERT_TRUE(remoteObject != nullptr); 41 } 42 } // namespace TEST 43 } // namespace EDM 44 } // namespace OHOS