/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/common/ |
H A D | distributeddb_parcel_unit_test.cpp | 140 EXPECT_TRUE(DistributedDBToolsUnitTest::CompareVector<uint8_t>(writeData, readData)); 175 EXPECT_TRUE(DistributedDBToolsUnitTest::CompareVector<uint8_t>(writeData, readData)); 210 EXPECT_TRUE(DistributedDBToolsUnitTest::CompareVector<uint32_t>(writeData, readData)); 245 EXPECT_TRUE(DistributedDBToolsUnitTest::CompareVector<uint32_t>(writeData, readData)); 281 EXPECT_TRUE(DistributedDBToolsUnitTest::CompareVector<uint64_t>(writeData, readData)); 316 EXPECT_TRUE(DistributedDBToolsUnitTest::CompareVector<uint64_t>(writeData, readData));
|
H A D | distributeddb_tools_unit_test.h | 96 static bool CompareVector(const std::vector<T>& vec1, const std::vector<T>& vec2) in CompareVector() function
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/moduletest/src/ |
H A D | distributeddb_nb_batch_crud_test.cpp | 1439 … return (CompareVector(entry.key, entry_.key) && CompareVector(entry.value, entry_.value)); in __anon46b79ee70502() 1444 … if (!CompareVector(entry.key, entries1[1].key) && !CompareVector(entry.key, entries1[2].key)) { 1446 … return (CompareVector(entry.key, entry_.key) && CompareVector(entry.value, entry_.value)); in __anon46b79ee70602() 1449 } else if (CompareVector(entry.key, entries1[1].key)) { 1451 … return (CompareVector(entry.key, entry_.key) && CompareVector(VALUE_2, entry_.value)); in __anon46b79ee70702() 1456 … return (CompareVector(entry.key, entry_.key) && CompareVector(entry.value, entry_.value)); in __anon46b79ee70802() 1687 … return (CompareVector(entry.key, entry_.key) && CompareVector(entry.value, entry_.value)); in __anon46b79ee70902() 1693 … return (CompareVector(entry.key, entry_.key) && CompareVector(entry.value, entry_.value)); in __anon46b79ee70a02() 1699 … return (CompareVector(entry.key, entry_.key) && CompareVector(entry.value, entry_.value)); in __anon46b79ee70b02()
|
H A D | distributeddb_nb_cursor_testcase.cpp | 262 EXPECT_TRUE(CompareVector(entry.key, entries[position - 1].key)); in ResultSetDb002() 263 EXPECT_TRUE(CompareVector(entry.value, entries[position - 1].value)); in ResultSetDb002() 554 EXPECT_TRUE(CompareVector(entry.key, entries[position + CURSOR_POSITION_1].key)); in ResultSetDb006() 555 EXPECT_TRUE(CompareVector(entry.value, entries[position + CURSOR_POSITION_1].value)); in ResultSetDb006() 575 EXPECT_TRUE(CompareVector(entry.key, entries[position - CURSOR_POSITION_1].key)); in ResultSetDb006() 576 EXPECT_TRUE(CompareVector(entry.value, entries[position - CURSOR_POSITION_1].value)); in ResultSetDb006() 827 EXPECT_TRUE(CompareVector(entry.key, entries[position - CURSOR_POSITION_1].key)); in ResultSetDb010() 828 EXPECT_TRUE(CompareVector(entry.value, entries[position - CURSOR_POSITION_1].value)); in ResultSetDb010()
|
H A D | distributeddb_nb_predicate_query_expand_test.cpp | 1115 EXPECT_TRUE(CompareVector(entry.key, entriesBatch[position + CURSOR_POSITION_1].key)); in MoveCursor() 1116 … EXPECT_TRUE(CompareVector(entry.value, entriesBatch[position + CURSOR_POSITION_1].value)); in MoveCursor() 1136 EXPECT_TRUE(CompareVector(entry.key, entriesBatch[position - CURSOR_POSITION_1].key)); in MoveCursor() 1137 … EXPECT_TRUE(CompareVector(entry.value, entriesBatch[position - CURSOR_POSITION_1].value)); in MoveCursor()
|
H A D | distributeddb_kv_batch_crud_test.cpp | 750 if (CompareVector(keys1[idxKey], entriesInDB[idxEntry].key)) { in SnapWithTransactionCheck() 774 if (CompareVector(entriesInDB[idx].key, KEY_3)) { in SnapWithTransactionCheck() 969 if (CompareVector(keys1[idxKey], entriesInDB[idxEntry].key)) { in RegisterSnapAgainAndCheck5() 984 if (CompareVector(entriesInDB[idx].key, KEY_3)) { in RegisterSnapAgainAndCheck5()
|
H A D | distributeddb_nb_crud_test.cpp | 1784 if (CompareVector(entry.key, entryCurrent.key)) { in JudgeInLongWriteWrite() 1793 if (CompareVector(entriesBatch[index].key, entryCurrent.key)) { in JudgeInLongWriteWrite()
|
H A D | distributeddb_nb_local_batch_crud_test.cpp | 462 EXPECT_TRUE(CompareVector(gotValue, VALUE_1));
|
H A D | distributeddb_nb_observer_test.cpp | 2025 if (CompareVector(entry.key, entryCurrent.key)) { in CheckPressureLongCompare() 2034 if (CompareVector(entriesBatch[index].key, entryCurrent.key)) { in CheckPressureLongCompare()
|
H A D | distributeddb_kv_transaction_test.cpp | 1412 if (CompareVector(applyKey, *key)) { in CheckKeyHolding()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/moduletest/common/distributeddb/include/ |
H A D | distributed_test_tools.h | 105 bool CompareVector(const std::vector<uint8_t>& first, const std::vector<uint8_t>& second);
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/moduletest/common/distributeddb/src/ |
H A D | distributed_test_tools.cpp | 63 bool CompareVector(const std::vector<uint8_t>& first, const std::vector<uint8_t>& second) in CompareVector() function 119 if (CompareVector(entryVec[idxEntry].key, putKey)) { in PutUniqueKey()
|