• 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 #include "gmock/gmock.h"
17 #include "rdb_helper.h"
18 #include "security_guard_define.h"
19 #define private public
20 #define protected public
21 #undef private
22 #undef protected
23 
24 using namespace testing;
25 using namespace testing::ext;
26 using namespace OHOS::Security::SecurityGuard;
27 namespace OHOS {
28     std::shared_ptr<NativeRdb::MockRdbHelperInterface> NativeRdb::RdbHelper::instance_ = nullptr;
29     std::mutex NativeRdb::RdbHelper::mutex_ {};
30 }
31 namespace OHOS::Security::SecurityGuardTest {
32 class AppInfoDataBaseTest : public testing::Test {
33 public:
34     static void SetUpTestCase();
35 
36     static void TearDownTestCase();
37 
38     void SetUp() override;
39 
40     void TearDown() override;
41 };
42 
SetUpTestCase()43 void AppInfoDataBaseTest::SetUpTestCase()
44 {
45 }
46 
TearDownTestCase()47 void AppInfoDataBaseTest::TearDownTestCase()
48 {
49     NativeRdb::RdbHelper::DelInterface();
50 }
51 
SetUp()52 void AppInfoDataBaseTest::SetUp()
53 {
54 }
55 
TearDown()56 void AppInfoDataBaseTest::TearDown()
57 {
58 }
59 
60 }
61