• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 #ifndef EDM_UNIT_TEST_ENTERPRISE_DEVICE_MGR_ABILITY_TEST_H
17 #define EDM_UNIT_TEST_ENTERPRISE_DEVICE_MGR_ABILITY_TEST_H
18 
19 #include <gtest/gtest.h>
20 #include "enterprise_device_mgr_ability.h"
21 
22 namespace OHOS {
23 namespace EDM {
24 namespace TEST {
25 class EnterpriseDeviceMgrAbilityTest : public testing::Test {
26 public:
27     void SetUp() override;
28     void TearDown() override;
29     void PrepareBeforeHandleDevicePolicy();
30     int HandleDevicePolicyFuncTest001(void);
31     int HandleDevicePolicyFuncTest002(void);
32     int HandleDevicePolicyFuncTest003(void);
33     int HandleDevicePolicyFuncTest004(void);
34     int HandleDevicePolicyFuncTest005(void);
35     int HandleDevicePolicyFuncTest006(void);
36     int HandleDevicePolicyFuncTest007(void);
37     int HandleDevicePolicyFuncTest008(void);
38     int GetDevicePolicyFuncTest001(void);
39     int GetDevicePolicyFuncTest002(void);
40 protected:
41     sptr<EnterpriseDeviceMgrAbility> edmMgr_;
42     std::shared_ptr<IPlugin> plugin_;
43 };
44 } // namespace TEST
45 } // namespace EDM
46 } // namespace OHOS
47 #endif // EDM_UNIT_TEST_ENTERPRISE_DEVICE_MGR_ABILITY_TEST_H