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 "security_guard_risk_analysis_test.h" 17 18 #include "file_ex.h" 19 #include "gmock/gmock.h" 20 21 #include "security_guard_define.h" 22 #include "security_guard_log.h" 23 #include "security_guard_utils.h" 24 #define private public 25 #define protected public 26 27 #undef private 28 #undef protected 29 #include "os_account_manager.h" 30 31 using namespace testing; 32 using namespace testing::ext; 33 using namespace OHOS::Security::SecurityGuard; 34 using namespace OHOS::Security::SecurityGuardTest; 35 36 namespace OHOS { 37 std::shared_ptr<AccountSA::MockOsAccountManagerInterface> AccountSA::OsAccountManager::instance_ = nullptr; 38 std::mutex AccountSA::OsAccountManager::mutex_ {}; 39 } 40 41 namespace OHOS::Security::SecurityGuardTest { SetUpTestCase()42void SecurityGuardRiskAnalysisTest::SetUpTestCase() 43 { 44 } 45 TearDownTestCase()46void SecurityGuardRiskAnalysisTest::TearDownTestCase() 47 { 48 } 49 SetUp()50void SecurityGuardRiskAnalysisTest::SetUp() 51 { 52 } 53 TearDown()54void SecurityGuardRiskAnalysisTest::TearDown() 55 { 56 } 57 }