Home
last modified time | relevance | path

Searched refs:g_store (Results 1 – 22 of 22) sorted by relevance

/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/storage/
H A Ddistributeddb_storage_memory_single_ver_naturall_store_test.cpp30 DistributedDB::SQLiteSingleVerNaturalStore *g_store = nullptr; variable
60 g_store = new (std::nothrow) SQLiteSingleVerNaturalStore; in SetUp()
61 ASSERT_NE(g_store, nullptr); in SetUp()
62 ASSERT_EQ(g_store->Open(property), E_OK); in SetUp()
67 g_store->DecObjRef(g_store); in SetUp()
77 g_store = nullptr; 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);
[all …]
H A Ddistributeddb_storage_sqlite_single_ver_natural_store_test.cpp35 DistributedDB::SQLiteSingleVerNaturalStore *g_store = nullptr; variable
69 g_store = new (std::nothrow) SQLiteSingleVerNaturalStore; in SetUp()
70 ASSERT_NE(g_store, nullptr); in SetUp()
71 ASSERT_EQ(g_store->Open(property), E_OK); in SetUp()
76 g_store->DecObjRef(g_store); in SetUp()
86 g_store = nullptr; in TearDown()
106 DistributedDBStorageSingleVerNaturalStoreTestCase::GetSyncData001(g_store, g_connection);
1110 ASSERT_NE(g_store, nullptr);
1111 ASSERT_EQ(g_store->TryToDisableConnection(OperatePerm::NORMAL_WRITE), E_OK);
1113 EXPECT_EQ(g_store->Export(g_testDir, password), -E_BUSY);
[all …]
H A Ddistributeddb_storage_rd_single_ver_natural_store_test.cpp34 DistributedDB::RdSingleVerNaturalStore *g_store = nullptr; variable
68 g_store = new (std::nothrow) RdSingleVerNaturalStore; in SetUp()
69 ASSERT_NE(g_store, nullptr); in SetUp()
70 ASSERT_EQ(g_store->Open(property), E_OK); in SetUp()
73 …g_connection = static_cast<RdSingleVerNaturalStoreConnection *>(g_store->GetDBConnection(erroCode)… in SetUp()
75 g_store->DecObjRef(g_store); in SetUp()
86 g_store = nullptr; in TearDown()
255 ASSERT_NE(g_store, nullptr);
256 ASSERT_EQ(g_store->TryToDisableConnection(OperatePerm::NORMAL_WRITE), E_OK);
258 EXPECT_EQ(g_store->Export(g_testDir, password), -E_READ_ONLY);
[all …]
H A Ddistributeddb_storage_resultset_and_json_optimize.cpp42 SQLiteSingleVerNaturalStore *g_store = nullptr; variable
89 g_store = new (std::nothrow) SQLiteSingleVerNaturalStore; in SetUp()
90 ASSERT_NE(g_store, nullptr); in SetUp()
91 ASSERT_EQ(g_store->Open(g_Property), E_OK); in SetUp()
96 g_store->DecObjRef(g_store); in SetUp()
122 g_store = nullptr; in TearDown()
139 std::make_unique<SQLiteSingleVerResultSet>(g_store, EMPTY_KEY, OPTION);
151 std::make_unique<SQLiteSingleVerResultSet>(g_store, EMPTY_KEY, OPTION);
179 std::make_unique<SQLiteSingleVerResultSet>(g_store, EMPTY_KEY, OPTION);
212 std::make_unique<SQLiteSingleVerResultSet>(g_store, EMPTY_KEY, OPTION);
[all …]
H A Ddistributeddb_storage_rd_single_ver_storage_engine_test.cpp33 RdSingleVerNaturalStore *g_store = nullptr; variable
78 g_store = new (std::nothrow) RdSingleVerNaturalStore; in SetUp()
79 ASSERT_NE(g_store, nullptr); in SetUp()
80 ASSERT_EQ(g_store->Open(g_property), E_OK); in SetUp()
83 …g_connection = static_cast<RdSingleVerNaturalStoreConnection *>(g_store->GetDBConnection(erroCode)… in SetUp()
85 g_store->DecObjRef(g_store); in SetUp()
95 g_store = nullptr; in TearDown()
H A Ddistributeddb_storage_register_conflict_test.cpp47 SQLiteSingleVerNaturalStore *g_store = nullptr; variable
186 g_store = new (std::nothrow) SQLiteSingleVerNaturalStore; in SetUp()
187 ASSERT_NE(g_store, nullptr); in SetUp()
188 ASSERT_EQ(g_store->Open(property), E_OK); in SetUp()
193 g_store->DecObjRef(g_store); in SetUp()
206 g_store = nullptr; in TearDown()
280 EXPECT_EQ(DistributedDBToolsUnitTest::PutSyncDataTest(g_store, vect, "deviceB"), E_OK); in SyncPutConflictData()
798 g_store = new (std::nothrow) SQLiteSingleVerNaturalStore; in GetNewConflictStore()
799 ASSERT_NE(g_store, nullptr); in GetNewConflictStore()
800 ASSERT_EQ(g_store->Open(property), E_OK); in GetNewConflictStore()
[all …]
H A Ddistributeddb_storage_query_sync_test.cpp144 ASSERT_NE(g_store, nullptr); in SetUp()
150 g_store->DecObjRef(g_store); in SetUp()
186 g_store = nullptr; in TearDown()
224 g_store->ReleaseContinueToken(token);
229 g_store->ReleaseContinueToken(token);
261 g_store->ReleaseContinueToken(token);
279 g_store->ReleaseContinueToken(token);
298 g_store->ReleaseContinueToken(token);
330 g_store->ReleaseContinueToken(token);
348 g_store->ReleaseContinueToken(token);
[all …]
H A Ddistributeddb_storage_sqlite_single_ver_storage_engine_test.cpp34 SQLiteSingleVerNaturalStore *g_store = nullptr; variable
91 g_store = new (std::nothrow) SQLiteSingleVerNaturalStore; in SetUp()
92 ASSERT_NE(g_store, nullptr); in SetUp()
93 ASSERT_EQ(g_store->Open(g_property), E_OK); in SetUp()
96 …g_connection = static_cast<SQLiteSingleVerNaturalStoreConnection *>(g_store->GetDBConnection(erroC… in SetUp()
98 g_store->DecObjRef(g_store); in SetUp()
108 g_store = nullptr; in TearDown()
H A Ddistributeddb_relational_remote_query_test.cpp48 IRelationalStore *g_store = nullptr; variable
89 g_store = RelationalStoreInstance::GetDataBase(properties, errCode); in GetRelationalStore()
90 if (g_store == nullptr) { in GetRelationalStore()
204 RefObject::DecObjRef(g_store);
290 RefObject::DecObjRef(g_store);
337 RefObject::DecObjRef(g_store);
399 RefObject::DecObjRef(g_store);
431 RefObject::DecObjRef(g_store);
515 RefObject::DecObjRef(g_store);
568 RefObject::DecObjRef(g_store);
[all …]
H A Ddistributeddb_storage_rd_single_ver_natural_executor_test.cpp38 RdSingleVerNaturalStore *g_store = nullptr; variable
77 g_store = new (std::nothrow) RdSingleVerNaturalStore; in SetUp()
78 ASSERT_NE(g_store, nullptr); in SetUp()
79 ASSERT_EQ(g_store->Open(g_property), E_OK); in SetUp()
82 …g_connection = static_cast<RdSingleVerNaturalStoreConnection *>(g_store->GetDBConnection(erroCode)… in SetUp()
84 g_store->DecObjRef(g_store); in SetUp()
88 g_store->GetHandle(true, erroCode, OperatePerm::NORMAL_PERM)); in SetUp()
102 if (g_store != nullptr) { in TearDown()
103 g_store->ReleaseHandle(g_handle); in TearDown()
109 g_store = nullptr; in TearDown()
[all …]
H A Ddistributeddb_relational_encrypted_db_test.cpp58 IRelationalStore *g_store = nullptr; variable
77 g_store = RelationalStoreInstance::GetDataBase(properties, errCode); in GetRelationalStore()
78 if (g_store == nullptr) { in GetRelationalStore()
82 return static_cast<SQLiteRelationalStore *>(g_store)->GetStorageEngine(); in GetRelationalStore()
269 RefObject::DecObjRef(g_store);
371 RefObject::DecObjRef(g_store);
425 RefObject::DecObjRef(g_store);
447 RefObject::DecObjRef(g_store);
H A Ddistributeddb_storage_sqlite_single_ver_natural_executor_test.cpp84 ASSERT_NE(g_store, nullptr); in SetUp()
85 ASSERT_EQ(g_store->Open(g_property), E_OK); in SetUp()
90 g_store->DecObjRef(g_store); in SetUp()
108 if (g_store != nullptr) { in TearDown()
109 g_store->ReleaseHandle(g_handle); in TearDown()
115 g_store = nullptr; in TearDown()
604 g_store->ReleaseHandle(g_handle);
647 g_store->ReleaseHandle(g_handle);
692 g_store->ReleaseHandle(g_handle);
820 g_store->ReleaseHandle(g_handle);
[all …]
H A Ddistributeddb_relational_get_data_test.cpp51 IRelationalStore *g_store = nullptr; variable
146 if (g_store == nullptr) { in GetRelationalStore()
404 RefObject::DecObjRef(g_store);
447 RefObject::DecObjRef(g_store);
537 RefObject::DecObjRef(g_store);
580 RefObject::DecObjRef(g_store);
649 RefObject::DecObjRef(g_store);
738 RefObject::DecObjRef(g_store);
824 RefObject::DecObjRef(g_store);
890 RefObject::DecObjRef(g_store);
[all …]
H A Ddistributeddb_relational_cloud_syncable_storage_test.cpp69 IRelationalStore *g_store = nullptr; variable
368 g_store = RelationalStoreInstance::GetDataBase(properties, errCode); in GetRelationalStore()
369 if (g_store == nullptr) { in GetRelationalStore()
373 return static_cast<SQLiteRelationalStore *>(g_store)->GetStorageEngine(); in GetRelationalStore()
424 RefObject::DecObjRef(g_store); in TearDown()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/interfaces/
H A Ddistributeddb_interfaces_device_identifier_test.cpp43 SQLiteSingleVerNaturalStore *g_store = nullptr; variable
95 g_store = new (std::nothrow) SQLiteSingleVerNaturalStore; in SetUp()
96 ASSERT_NE(g_store, nullptr); in SetUp()
97 ASSERT_EQ(g_store->Open(g_property), E_OK); in SetUp()
102 g_store->DecObjRef(g_store); in SetUp()
112 g_store = nullptr; in TearDown()
528 g_store->Dump(fd); in StorageEngineTest002()
556 g_store->IncreaseCacheRecordVersion();
715 EXPECT_EQ(g_store->Rekey(passwd), -E_NOT_SUPPORT);
724 EXPECT_EQ(g_store->Rekey(passwd), -E_BUSY);
[all …]
H A Ddistributeddb_interfaces_single_version_result_set_test.cpp45 SQLiteSingleVerNaturalStore *g_store = nullptr; variable
109 g_store = new (std::nothrow) SQLiteSingleVerNaturalStore; in SetUp()
110 ASSERT_NE(g_store, nullptr); in SetUp()
111 ASSERT_EQ(g_store->Open(property), E_OK); in SetUp()
114 …g_connection = static_cast<SQLiteSingleVerNaturalStoreConnection *>(g_store->GetDBConnection(errCo… in SetUp()
116 g_store->DecObjRef(g_store); in SetUp()
131 g_rawCursor = new (std::nothrow) SQLiteSingleVerForwardCursor(g_store, KEY_PREFIX); in SetUp()
142 g_store = nullptr; in TearDown()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/fuzztest/storage_fuzzer/
H A Dstorage_fuzzer.cpp51 IRelationalStore *g_store = nullptr; variable
150 g_store = RelationalStoreInstance::GetDataBase(properties, errCode); in GetRelationalStore()
151 if (g_store == nullptr) { in GetRelationalStore()
155 return static_cast<SQLiteRelationalStore *>(g_store)->GetStorageEngine(); in GetRelationalStore()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/storage/cloud/
H A Ddistributeddb_cloud_meta_data_test.cpp43 IRelationalStore *g_store = nullptr; variable
79 g_store = RelationalStoreInstance::GetDataBase(properties, errCode); in GetRelationalStore()
80 if (g_store == nullptr) { in GetRelationalStore()
84 return static_cast<SQLiteRelationalStore *>(g_store)->GetStorageEngine(); in GetRelationalStore()
141 RefObject::DecObjRef(g_store); in TearDown()
H A Ddistributeddb_cloud_save_cloud_data_test.cpp47 IRelationalStore *g_store = nullptr; variable
212 g_store = RelationalStoreInstance::GetDataBase(properties, errCode); in GetRelationalStore()
213 if (g_store == nullptr) { in GetRelationalStore()
217 return static_cast<SQLiteRelationalStore *>(g_store)->GetStorageEngine(); in GetRelationalStore()
245 RefObject::DecObjRef(g_store); in TearDown()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/syncer/cloud/
H A Ddistributeddb_cloud_syncer_lock_test.cpp82 IRelationalStore *g_store = nullptr; variable
159 RefObject::DecObjRef(g_store); in TearDown()
199 g_store = RelationalStoreInstance::GetDataBase(properties, errCode); in GetRelationalStore()
200 if (g_store == nullptr) { in GetRelationalStore()
203 return static_cast<SQLiteRelationalStore *>(g_store)->GetStorageEngine(); in GetRelationalStore()
H A Ddistributeddb_cloud_asset_compare_test.cpp48 IRelationalStore *g_store = nullptr; variable
169 g_store = RelationalStoreInstance::GetDataBase(properties, errCode); in GetRelationalStore()
170 if (g_store == nullptr) { in GetRelationalStore()
174 return static_cast<SQLiteRelationalStore *>(g_store)->GetStorageEngine(); in GetRelationalStore()
215 RefObject::DecObjRef(g_store); in TearDown()
H A Ddistributeddb_cloud_syncer_download_assets_test.cpp114 IRelationalStore *g_store = nullptr; variable
480 RefObject::DecObjRef(g_store); in TearDown()
559 g_store = RelationalStoreInstance::GetDataBase(properties, errCode); in GetRelationalStore()
560 if (g_store == nullptr) { in GetRelationalStore()
563 return static_cast<SQLiteRelationalStore *>(g_store)->GetStorageEngine(); in GetRelationalStore()