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 "svc_restore_deps_manager_mock.h"
17
18 namespace OHOS::FileManagement::Backup {
19 using namespace std;
20
GetRestoreBundleNames(const vector<BJsonEntityCaps::BundleInfo> & bundleInfos,RestoreTypeEnum restoreType)21 vector<string> SvcRestoreDepsManager::GetRestoreBundleNames(const vector<BJsonEntityCaps::BundleInfo> &bundleInfos,
22 RestoreTypeEnum restoreType)
23 {
24 return BSvcRestoreDepsManager::manager->GetRestoreBundleNames(bundleInfos, restoreType);
25 }
26
GetRestoreBundleMap()27 map<string, SvcRestoreDepsManager::RestoreInfo> SvcRestoreDepsManager::GetRestoreBundleMap()
28 {
29 return BSvcRestoreDepsManager::manager->GetRestoreBundleMap();
30 }
31
AddRestoredBundles(const string & bundleName)32 void SvcRestoreDepsManager::AddRestoredBundles(const string &bundleName) {}
33
GetAllBundles() const34 vector<BJsonEntityCaps::BundleInfo> SvcRestoreDepsManager::GetAllBundles() const
35 {
36 return BSvcRestoreDepsManager::manager->GetAllBundles();
37 }
38
IsAllBundlesRestored() const39 bool SvcRestoreDepsManager::IsAllBundlesRestored() const
40 {
41 return BSvcRestoreDepsManager::manager->IsAllBundlesRestored();
42 }
43
UpdateToRestoreBundleMap(const string & bundleName,const string & fileName)44 bool SvcRestoreDepsManager::UpdateToRestoreBundleMap(const string &bundleName, const string &fileName)
45 {
46 return BSvcRestoreDepsManager::manager->UpdateToRestoreBundleMap(bundleName, fileName);
47 }
48 } // namespace OHOS::FileManagement::Backup