mirror of
https://gitee.com/openharmony/distributeddatamgr_datamgr_service
synced 2024-11-23 06:50:35 +00:00
!2385 fix:覆写kv_store父类方法GetDatabaseStatus
Merge pull request !2385 from cht/master
This commit is contained in:
commit
55e2dfbc62
@ -382,5 +382,10 @@ DBStatus DBStoreMock::CancelSync(uint32_t syncId)
|
||||
{
|
||||
return NOT_SUPPORT;
|
||||
};
|
||||
|
||||
KvStoreNbDelegate::DatabaseStatus DBStoreMock::GetDatabaseStatus() const
|
||||
{
|
||||
return {};
|
||||
}
|
||||
} // namespace DistributedData
|
||||
} // namespace OHOS
|
@ -115,6 +115,7 @@ public:
|
||||
DBStatus GetDeviceEntries(const std::string &device, std::vector<Entry> &entries) const override;
|
||||
DBStatus Sync(const DeviceSyncOption &option, const DeviceSyncProcessCallback &onProcess) override;
|
||||
DBStatus CancelSync(uint32_t syncId) override;
|
||||
DatabaseStatus GetDatabaseStatus() const override;
|
||||
private:
|
||||
static const uint32_t DEFAULT_SIZE = 0;
|
||||
DBStatus Get(ConcurrentMap<Key, Value> &store, const Key &key, Value &value) const;
|
||||
|
@ -332,4 +332,9 @@ DBStatus KvStoreNbDelegateMock::CancelSync(uint32_t syncId)
|
||||
{
|
||||
return DBStatus::OK;
|
||||
}
|
||||
|
||||
KvStoreNbDelegate::DatabaseStatus KvStoreNbDelegateMock::GetDatabaseStatus() const
|
||||
{
|
||||
return {};
|
||||
}
|
||||
} // namespace DistributedDB
|
@ -106,6 +106,7 @@ public:
|
||||
DBStatus GetDeviceEntries(const std::string &device, std::vector<Entry> &entries) const;
|
||||
DBStatus Sync(const DeviceSyncOption &option, const DeviceSyncProcessCallback &onProcess);
|
||||
DBStatus CancelSync(uint32_t syncId);
|
||||
DatabaseStatus GetDatabaseStatus() const;
|
||||
};
|
||||
} // namespace DistributedDB
|
||||
#endif // KV_STORE_NB_DELEGATE_H_MOCK
|
Loading…
Reference in New Issue
Block a user