/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/storage/ |
H A D | distributeddb_relational_encrypted_db_test.cpp | 44 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 D | distributeddb_relational_remote_query_test.cpp | 43 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 D | distributeddb_relational_get_data_test.cpp | 46 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 D | distributeddb_relational_cloud_syncable_storage_test.cpp | 43 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 D | distributeddb_relational_result_set_test.cpp | 36 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 D | hks_safe_cipher_key_test.cpp | 60 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 D | hks_safe_compare_key_test.cpp | 60 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 D | hks_modify_key_test.cpp | 56 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 D | distributeddb_interfaces_relational_observer_test.cpp | 36 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 D | distributeddb_cloud_interfaces_reference_test.cpp | 35 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 D | distributeddb_cloud_interfaces_relational_remove_device_data_test.cpp | 55 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 D | distributeddb_cloud_interfaces_set_cloud_schema_test.cpp | 84 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 D | distributeddb_cloud_table_compound_primary_key_sync_test.cpp | 48 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 D | distributeddb_cloud_table_without_primary_key_sync_test.cpp | 48 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 D | distributeddb_cloud_syncer_lock_test.cpp | 71 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 D | cloud_db_sync_utils_test.cpp | 27 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 D | distributeddb_cloud_asset_compare_test.cpp | 43 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 D | distributeddb_cloud_syncer_download_assets_test.cpp | 103 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 D | distributeddb_cloud_meta_data_test.cpp | 39 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 D | distributeddb_cloud_save_cloud_data_test.cpp | 44 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 D | distributeddb_cloud_interfaces_relational_sync_test.cpp | 53 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 D | hks_modify_key_test.c | 28 static const char *g_storePath = "./hks_store/"; variable
|