Home
last modified time | relevance | path

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

/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/storage/
H A Ddistributeddb_relational_encrypted_db_test.cpp44 string g_storePath; variable
75 InitStoreProp(g_storePath, APP_ID, USER_ID, properties); in GetRelationalStore()
112 g_storePath = g_testDir + "/getDataTest.db"; in SetUpTestCase()
160 ASSERT_EQ(sqlite3_open(g_storePath.c_str(), &db), SQLITE_OK);
194 ASSERT_EQ(sqlite3_open(g_storePath.c_str(), &db), SQLITE_OK);
228 ASSERT_EQ(sqlite3_open(g_storePath.c_str(), &db), SQLITE_OK);
286 ASSERT_EQ(sqlite3_open(g_storePath.c_str(), &db), SQLITE_OK);
330 ASSERT_EQ(sqlite3_open(g_storePath.c_str(), &db), SQLITE_OK);
388 ASSERT_EQ(sqlite3_open(g_storePath.c_str(), &db), SQLITE_OK);
464 ASSERT_EQ(sqlite3_open(g_storePath.c_str(), &db), SQLITE_OK);
[all …]
H A Ddistributeddb_relational_remote_query_test.cpp43 string g_storePath; variable
53 int errCode = sqlite3_open(g_storePath.c_str(), &db); in CreateDBAndTable()
87 InitStoreProp(g_storePath, APP_ID, USER_ID, properties); in GetRelationalStore()
135 g_storePath = g_testDir + "/relationalRemoteQueryTest.db"; in SetUpTestCase()
185 ASSERT_EQ(sqlite3_open(g_storePath.c_str(), &db), SQLITE_OK);
244 ASSERT_EQ(sqlite3_open(g_storePath.c_str(), &db), SQLITE_OK);
311 ASSERT_EQ(sqlite3_open(g_storePath.c_str(), &db), SQLITE_OK);
358 ASSERT_EQ(sqlite3_open(g_storePath.c_str(), &db), SQLITE_OK);
491 ASSERT_EQ(sqlite3_open(g_storePath.c_str(), &db), SQLITE_OK);
532 ASSERT_EQ(sqlite3_open(g_storePath.c_str(), &db), SQLITE_OK);
[all …]
H A Ddistributeddb_relational_get_data_test.cpp46 string g_storePath; variable
56 int errCode = sqlite3_open(g_storePath.c_str(), &db); in CreateDBAndTable()
78 int errCode = sqlite3_open(g_storePath.c_str(), &db); in AddOrUpdateRecord()
99 int errCode = sqlite3_open(g_storePath.c_str(), &db); in GetLogData()
143 InitStoreProp(g_storePath, APP_ID, USER_ID, properties); in GetRelationalStore()
197 int errCode = sqlite3_open(g_storePath.c_str(), &db); in PutBatchData()
293 g_storePath = g_testDir + "/getDataTest.db"; in SetUpTestCase()
401 InitStoreProp(g_storePath, APP_ID, USER_ID, properties);
1639 InitStoreProp(g_storePath, APP_ID, USER_ID, properties);
1702 InitStoreProp(g_storePath, APP_ID, USER_ID, properties);
[all …]
H A Ddistributeddb_relational_cloud_syncable_storage_test.cpp43 string g_storePath; variable
77 int errCode = sqlite3_open(g_storePath.c_str(), &db); in CreateDB()
96 ASSERT_EQ(sqlite3_open(g_storePath.c_str(), &db), SQLITE_OK); in CreateLogTable()
107 ASSERT_EQ(sqlite3_open(g_storePath.c_str(), &db), SQLITE_OK); in CreateAndInitUserTable()
145 ASSERT_EQ(sqlite3_open(g_storePath.c_str(), &db), SQLITE_OK); in InitLogData()
181 ASSERT_EQ(sqlite3_open(g_storePath.c_str(), &db), SQLITE_OK); in InitLogGid()
194 ASSERT_EQ(sqlite3_open(g_storePath.c_str(), &db), SQLITE_OK); in UpdateLogGidAndHashKey()
224 ASSERT_EQ(sqlite3_open(g_storePath.c_str(), &db), SQLITE_OK); in InitLogicDelete()
291 ASSERT_EQ(sqlite3_open(g_storePath.c_str(), &db), SQLITE_OK); in InitUserDataForAssetTest()
366 InitStoreProp(g_storePath, APP_ID, USER_ID, properties); in GetRelationalStore()
[all …]
H A Ddistributeddb_relational_result_set_test.cpp36 string g_storePath; variable
64 int errCode = sqlite3_open(g_storePath.c_str(), &db); in CreateDBAndTable()
96 g_storePath = g_testDir + "/relationalResultSetTest.db"; in SetUpTestCase()
/ohos5.0/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/sdk_test/src/
H A Dhks_safe_cipher_key_test.cpp60 const char *g_storePath = HKS_KEY_STORE_PATH "/+0+0+0+0/key"; variable
65 uint32_t sizeOne = HksFileSize(g_storePath, (char *)keyAliasOne->data); in CompareTwoKey()
72 int32_t ret = HksFileRead(g_storePath, (char *)keyAliasOne->data, 0, &blobOne, &sizeRead); in CompareTwoKey()
74 uint32_t sizeTwo = HksFileSize(g_storePath, (char *)keyAliasTwo->data); in CompareTwoKey()
81 ret = HksFileRead(g_storePath, (char *)keyAliasTwo->data, 0, &blobTwo, &sizeRead); in CompareTwoKey()
H A Dhks_safe_compare_key_test.cpp60 const char *g_storePath = HKS_KEY_STORE_PATH "/+0+0+0+0/key"; variable
125 uint32_t sizeOne = HksFileSize(g_storePath, (char *)keyAliasOne->data); in CompareKeyData()
132 int32_t ret = HksFileRead(g_storePath, (char *)keyAliasOne->data, 0, &blobOne, &sizeRead); in CompareKeyData()
134 uint32_t sizeTwo = HksFileSize(g_storePath, (char *)keyAliasTwo->data); in CompareKeyData()
141 ret = HksFileRead(g_storePath, (char *)keyAliasTwo->data, 0, &blobTwo, &sizeRead); in CompareKeyData()
H A Dhks_modify_key_test.cpp56 const char *g_storePath = HKS_KEY_STORE_PATH "/+0+0+0+0/key"; variable
67 uint32_t sizeOne = HksFileSize(g_storePath, (char *)keyAlias->data); in ModifyKey()
74 int32_t ret = HksFileRead(g_storePath, (char *)keyAlias->data, 0, &blobOne, &sizeRead); in ModifyKey()
77 ret = HksFileWrite(g_storePath, (char *)keyAlias->data, 0, bufOne, sizeOne); in ModifyKey()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/interfaces/
H A Ddistributeddb_interfaces_relational_observer_test.cpp36 std::string g_storePath; variable
53 g_storePath = g_dbDir + STORE_ID + DB_SUFFIX; in SetUpTestCase()
63 sqlite3 *db = RelationalTestUtils::CreateDataBase(g_storePath); in SetUp()
68 DBStatus status = g_mgr.OpenStore(g_storePath, STORE_ID, {}, g_delegate); in SetUp()
203 EXPECT_EQ(g_mgr.OpenStore(g_storePath, STORE_ID, option, delegate), OK);
267 EXPECT_EQ(g_mgr.OpenStore(g_storePath, STORE_ID, {}, delegate), OK);
H A Ddistributeddb_cloud_interfaces_reference_test.cpp35 std::string g_storePath; variable
52 g_storePath = g_dbDir + STORE_ID + DB_SUFFIX; in SetUpTestCase()
62 sqlite3 *db = RelationalTestUtils::CreateDataBase(g_storePath); in SetUp()
311 sqlite3 *db = RelationalTestUtils::CreateDataBase(g_storePath);
341 sqlite3 *db = RelationalTestUtils::CreateDataBase(g_storePath);
378 sqlite3 *db = RelationalTestUtils::CreateDataBase(g_storePath);
432 sqlite3 *db = RelationalTestUtils::CreateDataBase(g_storePath); in NormalSetReferenceTest()
509 sqlite3 *db = RelationalTestUtils::CreateDataBase(g_storePath); in ReferenceChangeTest()
604 sqlite3 *db = RelationalTestUtils::CreateDataBase(g_storePath);
680 sqlite3 *db = RelationalTestUtils::CreateDataBase(g_storePath);
[all …]
H A Ddistributeddb_cloud_interfaces_relational_remove_device_data_test.cpp55 string g_storePath; variable
571 g_storePath = g_testDir + "/" + g_storeID + DB_SUFFIX; in SetUpTestCase()
586 db = RelationalTestUtils::CreateDataBase(g_storePath); in SetUp()
591 …ASSERT_EQ(g_mgr.OpenStore(g_storePath, g_storeID, RelationalStoreDelegate::Option { .observer = g_… in SetUp()
1035 …ASSERT_EQ(g_mgr.OpenStore(g_storePath, g_storeID, RelationalStoreDelegate::Option { .observer = g_…
H A Ddistributeddb_cloud_interfaces_set_cloud_schema_test.cpp84 std::string g_storePath; variable
146 g_storePath = g_dbDir + STORE_ID + DB_SUFFIX; in SetUpTestCase()
158 db_ = RelationalTestUtils::CreateDataBase(g_storePath); in SetUp()
163 …ASSERT_EQ(g_mgr.OpenStore(g_storePath, STORE_ID, RelationalStoreDelegate::Option { .observer = g_o… in SetUp()
1090 DBStatus status = g_mgr.OpenStore(g_storePath, STORE_ID, {}, g_delegate);
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/syncer/cloud/
H A Ddistributeddb_cloud_table_compound_primary_key_sync_test.cpp48 string g_storePath; variable
101 g_storePath = g_testDir + "/" + g_storeID + DB_SUFFIX; in SetUpTestCase()
116 db = RelationalTestUtils::CreateDataBase(g_storePath); in SetUp()
119 CloudDBSyncUtilsTest::SetStorePath(g_storePath); in SetUp()
H A Ddistributeddb_cloud_table_without_primary_key_sync_test.cpp48 string g_storePath; variable
166 g_storePath = g_testDir + "/" + g_storeID + DB_SUFFIX; in SetUpTestCase()
181 db = RelationalTestUtils::CreateDataBase(g_storePath); in SetUp()
184 CloudDBSyncUtilsTest::SetStorePath(g_storePath); in SetUp()
H A Ddistributeddb_cloud_syncer_lock_test.cpp71 string g_storePath; variable
134 g_storePath = g_testDir + "/" + STORE_ID + DB_SUFFIX; in SetUpTestCase()
135 LOGI("The test db is:%s", g_storePath.c_str()); in SetUpTestCase()
173 db = RelationalTestUtils::CreateDataBase(g_storePath); in Init()
179 …ASSERT_EQ(g_mgr.OpenStore(g_storePath, STORE_ID, RelationalStoreDelegate::Option{.observer = g_obs… in Init()
197 CloudDBSyncUtilsTest::InitStoreProp(g_storePath, APP_ID, USER_ID, STORE_ID, properties); in GetRelationalStore()
H A Dcloud_db_sync_utils_test.cpp27 string g_storePath = ""; variable
45 g_storePath = path; in SetStorePath()
54 …ASSERT_EQ(g_mgr.OpenStore(g_storePath, g_storeID, RelationalStoreDelegate::Option { .observer = ob… in InitSyncUtils()
H A Ddistributeddb_cloud_asset_compare_test.cpp43 string g_storePath; variable
140 int errCode = sqlite3_open(g_storePath.c_str(), &db); in CreateDB()
167 InitStoreProp(g_storePath, APP_ID, USER_ID, properties); in GetRelationalStore()
190 g_storePath = g_dbDir + STORE_ID + ".db"; in SetUpTestCase()
203 …ASSERT_EQ(g_mgr.OpenStore(g_storePath, STORE_ID, RelationalStoreDelegate::Option {}, g_delegate), … in SetUp()
H A Ddistributeddb_cloud_syncer_download_assets_test.cpp103 string g_storePath; variable
436 g_storePath = g_testDir + "/" + STORE_ID + DB_SUFFIX; in SetUpTestCase()
437 LOGI("The test db is:%s", g_storePath.c_str()); in SetUpTestCase()
451 db = RelationalTestUtils::CreateDataBase(g_storePath); in SetUp()
457 …g_mgr.OpenStore(g_storePath, STORE_ID, RelationalStoreDelegate::Option{.observer = g_observer}, g_… in SetUp()
557 CloudDBSyncUtilsTest::InitStoreProp(g_storePath, APP_ID, USER_ID, STORE_ID, properties); in GetRelationalStore()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/storage/cloud/
H A Ddistributeddb_cloud_meta_data_test.cpp39 string g_storePath; variable
49 int errCode = sqlite3_open(g_storePath.c_str(), &db); in CreateDB()
77 InitStoreProp(g_storePath, APP_ID, USER_ID, properties); in GetRelationalStore()
121 g_storePath = g_dbDir + STORE_ID + ".db"; in SetUpTestCase()
134 …ASSERT_EQ(g_mgr.OpenStore(g_storePath, STORE_ID, RelationalStoreDelegate::Option {}, g_delegate), … in SetUp()
H A Ddistributeddb_cloud_save_cloud_data_test.cpp44 std::string g_storePath; variable
210 InitStoreProp(g_storePath, APP_ID, USER_ID, properties); in GetRelationalStore()
225 g_storePath = g_dbDir + STORE_ID + DB_SUFFIX; in SetUpTestCase()
H A Ddistributeddb_cloud_interfaces_relational_sync_test.cpp53 string g_storePath; variable
1098 g_storePath = g_testDir + "/" + g_storeID + DB_SUFFIX; in SetUpTestCase()
1113 db = RelationalTestUtils::CreateDataBase(g_storePath); in SetUp()
1118 …ASSERT_EQ(g_mgr.OpenStore(g_storePath, g_storeID, RelationalStoreDelegate::Option { .observer = g_… in SetUp()
/ohos5.0/base/security/huks/test/unittest/huks_lite_test/liteos_m_adapter/
H A Dhks_modify_key_test.c28 static const char *g_storePath = "./hks_store/"; variable