/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/storage/ |
H A D | distributeddb_storage_memory_single_ver_naturall_store_test.cpp | 31 DistributedDB::SQLiteSingleVerNaturalStoreConnection *g_connection = nullptr; variable 66 ASSERT_NE(g_connection, nullptr); in SetUp() 73 if (g_connection != nullptr) { in TearDown() 74 g_connection->Close(); in TearDown() 96 DistributedDBStorageSingleVerNaturalStoreTestCase::GetSyncData001(g_store, g_connection); 115 DistributedDBStorageSingleVerNaturalStoreTestCase::GetSyncData002(g_store, g_connection); 133 DistributedDBStorageSingleVerNaturalStoreTestCase::GetSyncData003(g_store, g_connection); 156 DistributedDBStorageSingleVerNaturalStoreTestCase::GetSyncData004(g_store, g_connection); 174 DistributedDBStorageSingleVerNaturalStoreTestCase::GetSyncData005(g_store, g_connection); 192 DistributedDBStorageSingleVerNaturalStoreTestCase::GetSyncData006(g_store, g_connection); [all …]
|
H A D | distributeddb_storage_sqlite_single_ver_natural_store_test.cpp | 36 DistributedDB::SQLiteSingleVerNaturalStoreConnection *g_connection = nullptr; variable 75 ASSERT_NE(g_connection, nullptr); in SetUp() 82 if (g_connection != nullptr) { in TearDown() 83 g_connection->Close(); in TearDown() 106 DistributedDBStorageSingleVerNaturalStoreTestCase::GetSyncData001(g_store, g_connection); 125 DistributedDBStorageSingleVerNaturalStoreTestCase::GetSyncData002(g_store, g_connection); 143 DistributedDBStorageSingleVerNaturalStoreTestCase::GetSyncData003(g_store, g_connection); 166 DistributedDBStorageSingleVerNaturalStoreTestCase::GetSyncData004(g_store, g_connection); 184 DistributedDBStorageSingleVerNaturalStoreTestCase::GetSyncData005(g_store, g_connection); 202 DistributedDBStorageSingleVerNaturalStoreTestCase::GetSyncData006(g_store, g_connection); [all …]
|
H A D | distributeddb_storage_data_connection_test.cpp | 32 SQLiteLocalKvDBConnection *g_connection = nullptr; variable 108 ASSERT_NE(g_connection, nullptr); in SetUp() 113 if (g_connection != nullptr) { in TearDown() 114 g_connection->Close(); in TearDown() 115 g_connection = nullptr; in TearDown() 354 g_connection->ReleaseSnapshot(snapshot); 378 g_connection->StartTransaction(); 380 g_connection->RollBack(); 425 g_connection->StartTransaction(); 428 g_connection->RollBack(); [all …]
|
H A D | distributeddb_storage_rd_single_ver_natural_store_test.cpp | 35 DistributedDB::RdSingleVerNaturalStoreConnection *g_connection = nullptr; variable 73 …g_connection = static_cast<RdSingleVerNaturalStoreConnection *>(g_store->GetDBConnection(erroCode)… in SetUp() 74 ASSERT_NE(g_connection, nullptr); in SetUp() 81 if (g_connection != nullptr) { in TearDown() 82 g_connection->Close(); in TearDown() 83 g_connection = nullptr; in TearDown() 144 …DistributedDBStorageRdSingleVerNaturalStoreTestCase::SyncDatabaseOperate001(g_store, g_connection); 177 …DistributedDBStorageRdSingleVerNaturalStoreTestCase::SyncDatabaseOperate003(g_store, g_connection); 212 …DistributedDBStorageRdSingleVerNaturalStoreTestCase::SyncDatabaseOperate005(g_store, g_connection); 243 …DistributedDBStorageRdSingleVerNaturalStoreTestCase::SyncDatabaseOperate006(g_store, g_connection);
|
H A D | distributeddb_storage_data_operation_test.cpp | 122 if (g_connection != nullptr) { in TearDown() 123 g_connection->Close(); in TearDown() 124 g_connection = nullptr; in TearDown() 138 EXPECT_NE(g_connection, nullptr); 139 if (g_connection == nullptr) { 180 EXPECT_NE(g_connection, nullptr); 181 if (g_connection == nullptr) { 235 EXPECT_NE(g_connection, nullptr); 236 if (g_connection == nullptr) { 307 if (g_connection == nullptr) { [all …]
|
H A D | distributeddb_storage_rd_single_ver_natural_executor_test.cpp | 39 RdSingleVerNaturalStoreConnection *g_connection = nullptr; variable 83 ASSERT_NE(g_connection, nullptr); in SetUp() 105 if (g_connection != nullptr) { in TearDown() 106 g_connection->Close(); in TearDown() 107 g_connection = nullptr; in TearDown() 278 EXPECT_EQ(g_connection->GetKeys(option, KEY_1, keys), -E_NOT_SUPPORT); 291 EXPECT_EQ(g_connection->GetKeys(option, KEY_1, keys), -E_NOT_SUPPORT); 408 g_connection->StartTransaction(); 411 g_connection->RollBack(); 425 g_connection->StartTransaction(); [all …]
|
H A D | distributeddb_storage_sqlite_single_ver_natural_executor_test.cpp | 89 ASSERT_NE(g_connection, nullptr); in SetUp() 111 if (g_connection != nullptr) { in TearDown() 112 g_connection->Close(); in TearDown() 113 g_connection = nullptr; in TearDown() 660 g_connection->StartTransaction(); 662 g_connection->RollBack(); 720 g_connection->StartTransaction(); 723 g_connection->RollBack(); 821 g_connection->StartTransaction(); 824 g_connection->RollBack(); [all …]
|
H A D | distributeddb_storage_resultset_and_json_optimize.cpp | 43 SQLiteSingleVerNaturalStoreConnection *g_connection = nullptr; variable 95 ASSERT_NE(g_connection, nullptr); in SetUp() 101 g_connection->Clear(option); in SetUp() 103 ASSERT_EQ(g_connection->StartTransaction(), E_OK); in SetUp() 109 ASSERT_EQ(g_connection->Commit(), E_OK); in SetUp() 117 if (g_connection != nullptr) { in TearDown() 118 g_connection->Close(); in TearDown() 119 g_connection = nullptr; in TearDown() 408 ASSERT_EQ(g_connection->StartTransaction(), E_OK); 412 ASSERT_EQ(g_connection->Delete(option, insertKey), E_OK); [all …]
|
H A D | distributeddb_storage_rd_single_ver_storage_engine_test.cpp | 34 RdSingleVerNaturalStoreConnection *g_connection = nullptr; variable 83 …g_connection = static_cast<RdSingleVerNaturalStoreConnection *>(g_store->GetDBConnection(erroCode)… in SetUp() 84 ASSERT_NE(g_connection, nullptr); in SetUp() 91 if (g_connection != nullptr) { in TearDown() 92 g_connection->Close(); in TearDown() 93 g_connection = nullptr; in TearDown()
|
H A D | distributeddb_storage_sqlite_single_ver_storage_engine_test.cpp | 35 SQLiteSingleVerNaturalStoreConnection *g_connection = nullptr; variable 96 …g_connection = static_cast<SQLiteSingleVerNaturalStoreConnection *>(g_store->GetDBConnection(erroC… in SetUp() 97 ASSERT_NE(g_connection, nullptr); in SetUp() 104 if (g_connection != nullptr) { in TearDown() 105 g_connection->Close(); in TearDown() 106 g_connection = nullptr; in TearDown()
|
H A D | distributeddb_storage_register_conflict_test.cpp | 50 DistributedDB::SQLiteSingleVerNaturalStoreConnection *g_connection = nullptr; variable 192 ASSERT_NE(g_connection, nullptr); in SetUp() 202 if (g_connection != nullptr) { in TearDown() 203 g_connection->Close(); in TearDown() 283 ASSERT_EQ(g_connection->SetConflictNotifier(CONFLICT_ALL, NotifierConnectCallback), E_OK); in SyncPutConflictData() 342 g_connection->SetConflictNotifier(CONFLICT_ALL, NotifierConnectCallback); in SyncPutFromDiffDevConflictData() 784 if (g_connection != nullptr) { in GetNewConflictStore() 785 g_connection->Close(); in GetNewConflictStore() 804 ASSERT_NE(g_connection, nullptr); in GetNewConflictStore() 823 g_connection->Put(option, KEY_1, VALUE_1); [all …]
|
H A D | distributeddb_storage_query_sync_test.cpp | 149 ASSERT_NE(g_connection, nullptr); in SetUp() 178 if (g_connection != nullptr) { in TearDown() 179 g_connection->Close(); in TearDown() 211 EXPECT_EQ(g_connection->Put(option, key, value), E_OK); 225 EXPECT_EQ(g_connection->Put(option, keyOther, value), E_OK); 287 g_connection->DeleteBatch(option, vector{KEY1, KEY3}); 356 g_connection->DeleteBatch(option, vector{KEY1, KEY3}); 443 g_connection->Delete(option, Key(str.begin(), str.end())); 465 g_connection->Delete(option, Key(str.begin(), str.end())); 638 EXPECT_EQ(g_connection->Put(option, key, value), E_OK); [all …]
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/interfaces/ |
H A D | distributeddb_interfaces_single_version_result_set_test.cpp | 46 DistributedDB::SQLiteSingleVerNaturalStoreConnection *g_connection = nullptr; variable 114 …g_connection = static_cast<SQLiteSingleVerNaturalStoreConnection *>(g_store->GetDBConnection(errCo… in SetUp() 115 ASSERT_NE(g_connection, nullptr); in SetUp() 125 g_connection->Clear(option); in SetUp() 126 ASSERT_EQ(g_connection->Put(option, LOCAL_KEY_1, VALUE_1), E_OK); in SetUp() 127 ASSERT_EQ(g_connection->Put(option, LOCAL_KEY_2, VALUE_2), E_OK); in SetUp() 128 ASSERT_EQ(g_connection->Put(option, LOCAL_KEY_3, VALUE_3), E_OK); in SetUp() 137 if (g_connection != nullptr) { in TearDown() 138 g_connection->Close(); in TearDown() 139 g_connection = nullptr; in TearDown() [all …]
|
H A D | distributeddb_interfaces_device_identifier_test.cpp | 44 DistributedDB::SQLiteSingleVerNaturalStoreConnection *g_connection = nullptr; variable 100 …g_connection = static_cast<SQLiteSingleVerNaturalStoreConnection *>(g_store->GetDBConnection(erroC… in SetUp() 101 ASSERT_NE(g_connection, nullptr); in SetUp() 108 if (g_connection != nullptr) { in TearDown() 109 g_connection->Close(); in TearDown()
|