Home
last modified time | relevance | path

Searched refs:kvDelegatePtr (Results 1 – 8 of 8) sorted by relevance

/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/interfaces/
H A Ddistributeddb_interfaces_transaction_testcase.cpp35 EXPECT_EQ(kvDelegatePtr->Commit(), OK); in StartTransaction001()
49 EXPECT_TRUE(kvDelegatePtr->Commit() == OK); in StartTransaction002()
63 EXPECT_TRUE(kvDelegatePtr->Rollback() == OK); in StartTransaction003()
104 kvDelegatePtr = nullptr; in StartTransaction004()
113 ASSERT_TRUE(kvDelegatePtr != nullptr); in StartTransaction004()
137 KvStoreDelegate *temp = kvDelegatePtr; in StartTransaction005()
143 ASSERT_TRUE(kvDelegatePtr != nullptr); in StartTransaction005()
150 kvDelegatePtr->Put(KEY_2, VALUE_2); in StartTransaction005()
162 EXPECT_NE(kvDelegatePtr->Commit(), OK); in StartTransaction005()
185 EXPECT_TRUE(kvDelegatePtr->Commit() == OK); in Commit002()
[all …]
H A Ddistributeddb_interfaces_transaction_testcase.h41 static void Commit001(DistributedDB::KvStoreDelegate *&kvDelegatePtr);
43 static void Commit002(DistributedDB::KvStoreDelegate *&kvDelegatePtr);
45 static void Commit003(DistributedDB::KvStoreDelegate *&kvDelegatePtr,
48 static void Commit004(DistributedDB::KvStoreDelegate *&kvDelegatePtr,
51 static void Commit005(DistributedDB::KvStoreDelegate *&kvDelegatePtr,
54 static void Commit006(DistributedDB::KvStoreDelegate *&kvDelegatePtr,
57 static void Commit007(DistributedDB::KvStoreDelegate *&kvDelegatePtr,
60 static void Commit008(DistributedDB::KvStoreDelegate *&kvDelegatePtr,
67 static void RollBack003(DistributedDB::KvStoreDelegate *&kvDelegatePtr,
70 static void RollBack004(DistributedDB::KvStoreDelegate *&kvDelegatePtr,
[all …]
H A Ddistributeddb_interfaces_import_and_export_rd_test.cpp394 static void GetSnapshotUnitTest(KvStoreDelegate *&kvDelegatePtr, KvStoreSnapshotDelegate *&snapshot… in GetSnapshotUnitTest() argument
400 kvDelegatePtr->GetKvStoreSnapshot(nullptr, snapshotDelegateCallback); in GetSnapshotUnitTest()
H A Ddistributeddb_interfaces_import_and_export_test.cpp252 static void GetSnapshotUnitTest(KvStoreDelegate *&kvDelegatePtr, KvStoreSnapshotDelegate *&snapshot… in GetSnapshotUnitTest() argument
258 kvDelegatePtr->GetKvStoreSnapshot(nullptr, snapshotDelegateCallback); in GetSnapshotUnitTest()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/fuzztest/delegate_fuzzer/
H A Ddelegate_fuzzer.cpp53 return kvDelegatePtr; in PrepareKvStore()
58 if (kvDelegatePtr == nullptr) { in EncryptOperation()
64 kvDelegatePtr->Rekey(passwd); in EncryptOperation()
72 if (kvDelegatePtr == nullptr) { in CombineTest()
75 kvDelegatePtr->GetStoreId(); in CombineTest()
76 kvDelegatePtr->Rollback(); in CombineTest()
77 kvDelegatePtr->Commit(); in CombineTest()
96 kvDelegatePtr->Put(key, value); in MultiCombineFuzzer()
113 kvDelegatePtr->Delete(key); in MultiCombineFuzzer()
124 kvDelegatePtr->DeleteBatch(keys); in MultiCombineFuzzer()
[all …]
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/fuzztest/fileoper_fuzzer/
H A Dfileoper_fuzzer.cpp72 KvStoreDelegate *kvDelegatePtr = nullptr; in MultiVerExportAndImport() local
74 [&kvDelegatePtr](DBStatus status, KvStoreDelegate* kvStoreDelegate) { in MultiVerExportAndImport()
76 kvDelegatePtr = kvStoreDelegate; in MultiVerExportAndImport()
79 if (kvDelegatePtr == nullptr) { in MultiVerExportAndImport()
82 kvDelegatePtr->PutBatch(CreateEntries(data, size)); in MultiVerExportAndImport()
85 kvDelegatePtr->Export(multiExportFileName, passwd); in MultiVerExportAndImport()
86 kvDelegatePtr->Import(multiExportFileName, passwd); in MultiVerExportAndImport()
87 g_kvManager.CloseKvStore(kvDelegatePtr); in MultiVerExportAndImport()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/syncer/
H A Ddistributeddb_single_ver_p2p_simple_sync_test.cpp175 void CheckWatermark(const std::string &dev, KvStoreNbDelegate *kvDelegatePtr, WatermarkInfo expectI… in CheckWatermark() argument
178 auto [status, watermarkInfo] = kvDelegatePtr->GetWatermarkInfo(dev); in CheckWatermark()
H A Ddistributeddb_single_ver_p2p_sync_check_test.cpp822 void Sync(KvStoreNbDelegate *kvDelegatePtr, vector<std::string> &devices, const DBStatus &targetSta… in Sync() argument
825 …DBStatus status = g_tool.SyncTest(kvDelegatePtr, devices, DistributedDB::SYNC_MODE_PUSH_ONLY, resu… in Sync()