/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/moduletest/include/ |
H A D | distributeddb_nb_cursor_testcase.h | 26 static void ResultSetDb001(DistributedDB::KvStoreNbDelegate *delegate, bool isRowIdMode); 27 static void ResultSetDb002(DistributedDB::KvStoreNbDelegate *delegate, bool isRowIdMode); 28 static void ResultSetDb003(DistributedDB::KvStoreNbDelegate *delegate, bool isRowIdMode); 29 static void ResultSetDb004(DistributedDB::KvStoreNbDelegate *delegate, bool isRowIdMode); 30 static void ResultSetDb005(DistributedDB::KvStoreNbDelegate *delegate, bool isRowIdMode); 31 static void ResultSetDb006(DistributedDB::KvStoreNbDelegate *delegate, bool isRowIdMode); 32 static void ResultSetDb007(DistributedDB::KvStoreNbDelegate *delegate, bool isRowIdMode); 33 static void ResultSetDb008(DistributedDB::KvStoreNbDelegate *delegate, bool isRowIdMode); 34 static void ResultSetDb009(DistributedDB::KvStoreNbDelegate *delegate, bool isRowIdMode); 35 static void ResultSetDb010(DistributedDB::KvStoreNbDelegate *delegate, bool isRowIdMode); [all …]
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/moduletest/common/distributeddb/src/ |
H A D | distributeddb_nb_test_tools.cpp | 46 KvStoreNbDelegate *DelegateMgrNbCallback::GetKvStore() in GetKvStore() 63 function<void(DBStatus, KvStoreNbDelegate*)> function in GetNbDelegateSuccess() 93 …const KvStoreNbDelegate* delegate = const_cast<KvStoreNbDelegate *>(delegateMgrCallback.GetKvStore… in GetNbDelegateSuccess() 104 return const_cast<KvStoreNbDelegate *>(delegate); in GetNbDelegateSuccess() 119 function<void(DBStatus, KvStoreNbDelegate*)> function in GetNbDelegateStatus() 149 …const KvStoreNbDelegate* delegate = const_cast<KvStoreNbDelegate *>(delegateMgrCallback.GetKvStore… in GetNbDelegateStatus() 160 return const_cast<KvStoreNbDelegate *>(delegate); in GetNbDelegateStatus() 164 vector<KvStoreNbDelegate *> &outDelegateVec, in GetNbDelegateStoresSuccess() 186 function<void(DBStatus, KvStoreNbDelegate*)> function in GetNbDelegateStoresSuccess() 202 …const KvStoreNbDelegate *delegate = const_cast<KvStoreNbDelegate *>(delegateMgrCallback.GetKvStore… in GetNbDelegateStoresSuccess() [all …]
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/moduletest/common/distributeddb/include/ |
H A D | distributeddb_nb_test_tools.h | 157 DistributedDB::KvStoreNbDelegate *GetKvStore(); 161 DistributedDB::KvStoreNbDelegate *kvStoreNbDelegate_ = nullptr; 200 static DistributedDB::DBStatus Get(DistributedDB::KvStoreNbDelegate &kvStoreNbDelegate, 206 static DistributedDB::DBStatus Put(DistributedDB::KvStoreNbDelegate &kvStoreNbDelegate, 209 static DistributedDB::DBStatus PutBatch(DistributedDB::KvStoreNbDelegate &kvStoreNbDelegate, 212 static DistributedDB::DBStatus Delete(DistributedDB::KvStoreNbDelegate &kvStoreNbDelegate, 218 static DistributedDB::DBStatus GetLocal(DistributedDB::KvStoreNbDelegate &kvStoreNbDelegate, 239 DistributedDB::KvStoreNbDelegate *&delegate); 251 static bool CheckNbRecord(DistributedDB::KvStoreNbDelegate *&delegate, 280 DistributedDB::KvStoreNbDelegate *&delegate, CallBackParam ¶m); [all …]
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/moduletest/src/ |
H A D | distributeddb_nb_create_test.cpp | 88 KvStoreNbDelegate *result = nullptr; 116 KvStoreNbDelegate *result = nullptr; 141 KvStoreNbDelegate *result = nullptr; 327 … KvStoreNbDelegate *delegate = const_cast<KvStoreNbDelegate*>(delegateMgrCallback.GetKvStore()); 359 KvStoreNbDelegate *delegate = const_cast<KvStoreNbDelegate*>(delegateMgrCallback.GetKvStore()); 545 KvStoreNbDelegate::Option &option, function<void(DBStatus, KvStoreNbDelegate*)> &nbfunction, in GetAndCloseKvStore() 550 KvStoreNbDelegate *delegate = const_cast<KvStoreNbDelegate *>(delegateMgrCallback.GetKvStore()); in GetAndCloseKvStore() 572 KvStoreNbDelegate::Option option; 720 KvStoreNbDelegate *delegate = const_cast<KvStoreNbDelegate*>(delegateMgrCallback.GetKvStore()); 915 KvStoreNbDelegate *delegate = const_cast<KvStoreNbDelegate*>(delegateMgrCallback.GetKvStore()); [all …]
|
H A D | distributeddb_nb_cursor_testcase.cpp | 103 void SetResultSetCacheMode(KvStoreNbDelegate *delegate, bool isRowIdMode) in SetResultSetCacheMode() 135 void DistributeddbNbCursorTestcase::ResultSetDb001(KvStoreNbDelegate *delegate, bool isRowIdMode) in ResultSetDb001() 1366 void ExecuteResultSetDb020(KvStoreNbDelegate *&delegate) in ExecuteResultSetDb020() 1464 void DistributeddbNbCursorTestcase::ResultSetDb021(KvStoreNbDelegate *delegate, in ResultSetDb021() 1498 KvStoreNbDelegate *delegate = nullptr; in ResultSetDb022() 1540 KvStoreNbDelegate *delegate = nullptr; in ResultSetDb023() 1581 KvStoreNbDelegate *delegate2 = nullptr; in ResultSetDb023() 1599 KvStoreNbDelegate *delegate = nullptr; in ResultSetDb024() 1650 void CursorOperThread(KvStoreNbDelegate *&nbCursorDelegate) in CursorOperThread() 1978 void VerifyResultSetInterfaces(KvStoreNbDelegate **delegates, unsigned long delegateCount) in VerifyResultSetInterfaces() [all …]
|
H A D | distributeddb_nb_schema_test.cpp | 29 KvStoreNbDelegate *g_nbSchemaDelegate = nullptr; 147 KvStoreNbDelegate *delegate = nullptr; 181 KvStoreNbDelegate *delegate = nullptr; 248 KvStoreNbDelegate *delegate = nullptr; 280 KvStoreNbDelegate *delegate = nullptr; 340 KvStoreNbDelegate *delegate = nullptr; 409 KvStoreNbDelegate *delegate = nullptr; 455 KvStoreNbDelegate *delegate = nullptr; 507 KvStoreNbDelegate *delegate = nullptr; 593 KvStoreNbDelegate *delegate = nullptr; [all …]
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/interfaces/ |
H A D | distributeddb_interfaces_database_rd_kernel_test.cpp | 139 KvStoreNbDelegate::Option option; 205 KvStoreNbDelegate::Option option; 261 KvStoreNbDelegate::Option option; 307 KvStoreNbDelegate::Option option; 360 KvStoreNbDelegate::Option option; 381 KvStoreNbDelegate::Option option; 419 KvStoreNbDelegate::Option option; 446 KvStoreNbDelegate::Option option; 469 KvStoreNbDelegate::Option option; 492 KvStoreNbDelegate::Option option; [all …]
|
H A D | distributeddb_interfaces_nb_delegate_test.cpp | 1909 KvStoreNbDelegate::Option option; 1959 KvStoreNbDelegate::Option option; 2042 KvStoreNbDelegate::Option option; 2119 KvStoreNbDelegate::Option option; 2197 KvStoreNbDelegate::Option option; 2418 KvStoreNbDelegate::Option option; 2463 KvStoreNbDelegate::Option option; 2660 KvStoreNbDelegate::Option option; 2705 KvStoreNbDelegate::Option option; 2769 KvStoreNbDelegate::Option option; [all …]
|
H A D | distributeddb_interfaces_database_test.cpp | 55 KvStoreNbDelegate *g_kvNbDelegatePtr = nullptr; 937 KvStoreNbDelegate::Option option = {true, true, false}; 971 KvStoreNbDelegate *kvNbDelegatePtr = g_kvNbDelegatePtr; 1212 KvStoreNbDelegate::Option option; 1291 KvStoreNbDelegate::Option option; in OpenCloseDatabase() 1293 KvStoreNbDelegate *delegate = nullptr; in OpenCloseDatabase() 1376 KvStoreNbDelegate::Option option; 1411 KvStoreNbDelegate::Option option; 1437 KvStoreNbDelegate::Option option; 1450 KvStoreNbDelegate *delegate = nullptr; [all …]
|
H A D | distributeddb_interfaces_nb_transaction_test.cpp | 45 KvStoreNbDelegate *g_kvNbDelegatePtr = nullptr; 95 DBStatus *statusDst, KvStoreNbDelegate **kvStoreDst) in KvStoreNbDelegateCallback() 165 const KvStoreNbDelegate::Option option = {true, false}; 197 const KvStoreNbDelegate::Option option = {true, false}; 247 const KvStoreNbDelegate::Option option = {true, false}; 299 const KvStoreNbDelegate::Option option = {true, false}; 353 const KvStoreNbDelegate::Option option = {true, false}; 378 const KvStoreNbDelegate::Option option = {true, false}; 433 const KvStoreNbDelegate::Option option = {true, false}; 506 const KvStoreNbDelegate::Option option = {true, false}; [all …]
|
H A D | distributeddb_interfaces_encrypt_database_test.cpp | 385 KvStoreNbDelegate *kvStore1 = nullptr; 391 KvStoreNbDelegate::Option option = {true, false, false}; 395 KvStoreNbDelegate *kvStore2 = nullptr; 437 KvStoreNbDelegate *kvStore = nullptr; 443 KvStoreNbDelegate::Option option = {true, false, false}; 492 KvStoreNbDelegate *kvStore = nullptr; 498 KvStoreNbDelegate::Option option = {true, false, false}; 538 KvStoreNbDelegate *kvStore = nullptr; 544 KvStoreNbDelegate::Option option = {true, false, false}; 545 …g_mgr.GetKvStore(STORE_ID2, option, [&status, &kvStore](DBStatus dbStatus, KvStoreNbDelegate *dele… in __anon4c4781730202()
|
H A D | distributeddb_interfaces_nb_delegate_schema_put_test.cpp | 60 KvStoreNbDelegate *g_kvStore = nullptr; 62 KvStoreNbDelegate::Option g_strictOpt = {true, false, false, CipherType::DEFAULT, g_passwd, 64 KvStoreNbDelegate::Option g_compOpt = {true, false, false, CipherType::DEFAULT, g_passwd, 68 …DBStatus statusSrc, KvStoreNbDelegate* kvStoreSrc, DBStatus* statusDst, KvStoreNbDelegate** kvStor… in KvStoreNbDelegateCallback() 78 void CheckPutSchemaData(KvStoreNbDelegate *kvStore) in CheckPutSchemaData() 131 void CheckPutBatchSchemaData(KvStoreNbDelegate *kvStore) in CheckPutBatchSchemaData() 304 DistributedDB::KvStoreNbDelegate::Option option = g_compOpt; 391 KvStoreNbDelegate::Option option = {true, false, false};
|
H A D | distributeddb_interfaces_nb_publish_test.cpp | 38 KvStoreNbDelegate *g_kvNbDelegatePtr = nullptr; 41 DBStatus *statusDst, KvStoreNbDelegate **kvStoreDst) in KvStoreNbDelegateCallback() 128 const KvStoreNbDelegate::Option option = {true, false}; 215 const KvStoreNbDelegate::Option option = {true, false}; 292 const KvStoreNbDelegate::Option option = {true, false}; 368 const KvStoreNbDelegate::Option option = {true, false}; 446 const KvStoreNbDelegate::Option option = {true, false}; 523 const KvStoreNbDelegate::Option option = {true, false}; 564 const KvStoreNbDelegate::Option option = {true, false}; 612 const KvStoreNbDelegate::Option option = {true, false}; [all …]
|
H A D | distributeddb_interfaces_import_and_export_rd_test.cpp | 40 KvStoreNbDelegate *g_kvNbDelegatePtr = nullptr; 41 KvStoreNbDelegate *g_kvNbDelegatePtrWithoutPasswd = nullptr; 156 KvStoreNbDelegate::Option option = {true, false, false}; 205 KvStoreNbDelegate::Option option = {true, false, false}; 270 KvStoreNbDelegate::Option option = {true, false, false}; 308 KvStoreNbDelegate::Option option = {true, false, false}; 340 KvStoreNbDelegate::Option option = {true, false, false}; 485 KvStoreNbDelegate::Option option = {true, false, false}; 590 KvStoreNbDelegate::Option option = {true, false, false}; 630 KvStoreNbDelegate::Option option = {true, false, false}; [all …]
|
H A D | distributeddb_interfaces_resultset_performance.cpp | 42 KvStoreNbDelegate *g_kvNbDelegatePtr = nullptr; 44 void KvStoreNbDelegateCallback(DBStatus statusSrc, KvStoreNbDelegate* kvStoreSrc, in KvStoreNbDelegateCallback() 45 DBStatus* statusDst, KvStoreNbDelegate** kvStoreDst) in KvStoreNbDelegateCallback() 124 KvStoreNbDelegate::Option option = {true, false, false};
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/fuzztest/rekey_fuzzer/ |
H A D | rekey_fuzzer.cpp | 45 KvStoreNbDelegate::Option nbOption = {true, false, true, CipherType::DEFAULT, passwd}; in SingerVerReKey() 46 KvStoreNbDelegate *kvNbDelegatePtr = nullptr; in SingerVerReKey() 49 [&kvNbDelegatePtr](DBStatus status, KvStoreNbDelegate * kvNbDelegate) { in SingerVerReKey() 69 KvStoreNbDelegate::Option nbOption = {true, false, true, CipherType::DEFAULT, passwd}; in MultiVerVerReKey() 70 KvStoreNbDelegate *kvNbDelegatePtr = nullptr; in MultiVerVerReKey() 73 [&kvNbDelegatePtr](DBStatus status, KvStoreNbDelegate * kvNbDelegate) { in MultiVerVerReKey()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/interfaces/include/ |
H A D | kv_store_delegate_manager.h | 56 DB_API void GetKvStore(const std::string &storeId, const KvStoreNbDelegate::Option &option, 57 const std::function<void(DBStatus, KvStoreNbDelegate *)> &callback); 62 DB_API DBStatus CloseKvStore(KvStoreNbDelegate *kvStore); 115 bool GetKvStoreParamCheck(const std::string &storeId, const KvStoreNbDelegate::Option &option, 116 const std::function<void(DBStatus, KvStoreNbDelegate *)> &callback) const; 117 … DBStatus SetObserverNotifier(KvStoreNbDelegate *kvStore, const KvStoreNbDelegate::Option &option);
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/fuzztest/nbdelegate_fuzzer/ |
H A D | nbdelegate_fuzzer.cpp | 123 void FuzzSetInterceptorTest(KvStoreNbDelegate *kvNbDelegatePtr) in FuzzSetInterceptorTest() 162 void TestCRUD(const Key &key, const Value &value, KvStoreNbDelegate *kvNbDelegatePtr) in TestCRUD() 184 void GetDeviceEntriesTest(const uint8_t *data, size_t size, KvStoreNbDelegate *kvNbDelegatePtr) in GetDeviceEntriesTest() 196 void RandomModeRemoveDeviceData(const uint8_t *data, size_t size, KvStoreNbDelegate *kvNbDelegatePt… in RandomModeRemoveDeviceData() 216 void FuzzCURD(const uint8_t *data, size_t size, KvStoreNbDelegate *kvNbDelegatePtr) in FuzzCURD() 266 void EncryptOperation(const uint8_t *data, size_t size, std::string &DirPath, KvStoreNbDelegate *kv… in EncryptOperation() 282 void CombineTest(const uint8_t *data, size_t size, KvStoreNbDelegate::Option &option) in CombineTest() 288 KvStoreNbDelegate *kvNbDelegatePtr = nullptr; in CombineTest() 290 [&kvNbDelegatePtr] (DBStatus status, KvStoreNbDelegate* kvNbDelegate) { in CombineTest() 308 DistributedDB::KvStoreNbDelegate::Option option = {true, false, false}; in LLVMFuzzerTestOneInput()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/syncer/ |
H A D | distributeddb_single_ver_dlp_test.cpp | 43 DBStatus OpenDelegate(const std::string &dlpPath, KvStoreNbDelegate *&delegatePtr, in OpenDelegate() 63 KvStoreNbDelegate::Option option; in OpenDelegate() 66 …mgr.GetKvStore(STORE_ID_1, option, [&delegatePtr, &res](DBStatus status, KvStoreNbDelegate *delega… in OpenDelegate() 90 …void CloseDelegate(KvStoreNbDelegate *&delegatePtr, KvStoreDelegateManager &mgr, std::string store… in CloseDelegate() 178 KvStoreNbDelegate *delegatePtr1 = nullptr; 183 KvStoreNbDelegate *delegatePtr2 = nullptr; 240 KvStoreNbDelegate *delegatePtr1 = nullptr; 293 KvStoreNbDelegate *delegatePtr1 = nullptr; 327 KvStoreNbDelegate *delegatePtr1 = nullptr;
|
H A D | distributeddb_single_ver_multi_sub_user_test.cpp | 91 KvStoreNbDelegate::Option option; in OpenDelegate() 412 KvStoreNbDelegate *delegatePtr1 = nullptr; 418 KvStoreNbDelegate *delegatePtr2 = nullptr; 424 KvStoreNbDelegate *delegatePtr3 = nullptr; 474 KvStoreNbDelegate *delegatePtr1 = nullptr; 479 KvStoreNbDelegate *delegatePtr2 = nullptr; 589 KvStoreNbDelegate *delegatePtr1 = nullptr; 622 KvStoreNbDelegate *delegatePtr1 = nullptr; 628 KvStoreNbDelegate *delegatePtr2 = nullptr; 719 KvStoreNbDelegate *delegatePtr1 = nullptr; [all …]
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/syncer/cloud/ |
H A D | distributeddb_cloud_kv_syncer_test.cpp | 52 …DBStatus GetKvStore(KvStoreNbDelegate *&delegate, const std::string &storeId, KvStoreNbDelegate::O… 54 void CloseKvStore(KvStoreNbDelegate *&delegate, const std::string &storeId); 55 void BlockSync(KvStoreNbDelegate *delegate, DBStatus expectDBStatus, CloudSyncOption option, 65 KvStoreNbDelegate* kvDelegatePtrS1_ = nullptr; 66 KvStoreNbDelegate* kvDelegatePtrS2_ = nullptr; 111 KvStoreNbDelegate::Option option1; in SetUp() 117 KvStoreNbDelegate::Option option2; in SetUp() 249 KvStoreNbDelegate::Option option, bool invalidSchema) in GetKvStore() 658 KvStoreNbDelegate* kvDelegatePtrS3 = nullptr; 659 KvStoreNbDelegate::Option option; [all …]
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/fuzztest/schemadelegate_fuzzer/ |
H A D | schemadelegate_fuzzer.cpp | 47 void SchemaFuzzCURD(FuzzerData &fuzz, KvStoreNbDelegate *delegate) in SchemaFuzzCURD() 98 KvStoreNbDelegate *kvNbDelegatePtr = nullptr; in SchemaFuzzTest() 100 DistributedDB::KvStoreNbDelegate::Option option = {true, false, false}; in SchemaFuzzTest() 108 [&kvNbDelegatePtr] (DBStatus status, KvStoreNbDelegate* kvNbDelegate) { in SchemaFuzzTest()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/storage/ |
H A D | distributeddb_storage_single_ver_upgrade_test.cpp | 66 KvStoreNbDelegate *g_kvNbDelegatePtr = nullptr; 133 …DBStatus statusSrc, KvStoreNbDelegate *kvStoreSrc, DBStatus &statusDst, KvStoreNbDelegate *&kvStor… in KvStoreNbDelegateCallback() 242 void GetKvStoreProcess(const KvStoreNbDelegate::Option &option, bool putCheck, bool secOptCheck, in GetKvStoreProcess() 349 KvStoreNbDelegate::Option option = {true, false, false}; 394 KvStoreNbDelegate::Option option = {true, false, false}; 444 KvStoreNbDelegate::Option option = {true, false, false}; 502 KvStoreNbDelegate::Option option = {true, false, false}; 542 KvStoreNbDelegate::Option option = {true, false, false}; 577 KvStoreNbDelegate::Option option = {true, false, false}; 610 KvStoreNbDelegate::Option option = {true, false, false};
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/fuzztest/importfile_fuzzer/ |
H A D | importfile_fuzzer.cpp | 38 KvStoreNbDelegate::Option option = {true, false, true, CipherType::DEFAULT, passwd}; in SingerVerImport() 40 KvStoreNbDelegate *kvNbDelegatePtr = nullptr; in SingerVerImport() 42 [&kvNbDelegatePtr](DBStatus status, KvStoreNbDelegate* kvNbDelegate) { in SingerVerImport()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/fuzztest/kvstoreresultset_fuzzer/ |
H A D | kvstoreresultset_fuzzer.cpp | 29 KvStoreNbDelegate::Option option = {true, false, true}; in ResultSetFuzzer() 30 KvStoreNbDelegate *kvNbDelegatePtr = nullptr; in ResultSetFuzzer() 33 [&kvNbDelegatePtr](DBStatus status, KvStoreNbDelegate * kvNbDelegate) { in ResultSetFuzzer()
|