/foundation/deviceprofile/device_info_manager/services/core/test/unittest/ |
H A D | profile_control_utils_test.cpp | 48 const std::string STORE_ID = "dp_kv_store"; member 94 std::shared_ptr<IKVAdapter> kvStore = std::make_shared<KVAdapter>(APP_ID, STORE_ID, in HWTEST_F() 95 std::make_shared<KvDataChangeListener>(STORE_ID), in HWTEST_F() 96 std::make_shared<KvSyncCompletedListener>(STORE_ID), std::make_shared<KvDeathRecipient>(STORE_ID), in HWTEST_F() 112 std::shared_ptr<IKVAdapter> kvStore = std::make_shared<KVAdapter>(APP_ID, STORE_ID, in HWTEST_F() 113 std::make_shared<KvDataChangeListener>(STORE_ID), in HWTEST_F() 114 std::make_shared<KvSyncCompletedListener>(STORE_ID), std::make_shared<KvDeathRecipient>(STORE_ID), in HWTEST_F() 132 std::shared_ptr<IKVAdapter> kvStore = std::make_shared<KVAdapter>(APP_ID, STORE_ID, in HWTEST_F() [all...] |
H A D | kv_adapter_test.cpp | 41 const std::string STORE_ID = "dp_kv_store"; member 55 kvStore = make_shared<KVAdapter>(APP_ID, STORE_ID, in SetUpTestCase() 56 make_shared<KvDataChangeListener>(STORE_ID), in SetUpTestCase() 57 make_shared<KvSyncCompletedListener>(STORE_ID), in SetUpTestCase() 58 make_shared<KvDeathRecipient>(STORE_ID), in SetUpTestCase() 389 kvStore_= make_shared<KVAdapter>(APP_ID, STORE_ID, in HWTEST_F() 390 make_shared<KvDataChangeListener>(STORE_ID), in HWTEST_F() 391 make_shared<KvSyncCompletedListener>(STORE_ID), in HWTEST_F() 392 make_shared<KvDeathRecipient>(STORE_ID), in HWTEST_F()
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/interfaces/ |
H A D | distributeddb_interfaces_relational_test.cpp | 41 constexpr const char* STORE_ID = "Relational_Store_ID"; member 190 sqlite3 *db = RelationalTestUtils::CreateDataBase(g_dbDir + STORE_ID + DB_SUFFIX); in NoramlCreateDistributedTableTest() 207 DBStatus status = g_mgr.OpenStore(g_dbDir + STORE_ID + DB_SUFFIX, STORE_ID, {}, delegate); in NoramlCreateDistributedTableTest() 225 db = RelationalTestUtils::CreateDataBase(g_dbDir + STORE_ID + DB_SUFFIX); in NoramlCreateDistributedTableTest() 235 status = g_mgr.OpenStore(g_dbDir + STORE_ID + DB_SUFFIX, STORE_ID, {}, delegate); in NoramlCreateDistributedTableTest() 279 sqlite3 *db = RelationalTestUtils::CreateDataBase(g_dbDir + STORE_ID + DB_SUFFIX); in HWTEST_F() 292 DBStatus status = g_mgr.OpenStore(g_dbDir + "tmp/" + STORE_ID + DB_SUFFIX, STORE_ID, {}, delegat in HWTEST_F() [all...] |
H A D | distributeddb_interfaces_relational_routines_test.cpp | 33 constexpr const char* STORE_ID = "Relational_Store_ID"; member 85 sqlite3 *ndb = NativeSqlite::CreateDataBase(g_dbDir + STORE_ID + DB_SUFFIX); in HWTEST_F() 108 sqlite3 *db = RelationalTestUtils::CreateDataBase(g_dbDir + STORE_ID + DB_SUFFIX); in HWTEST_F() 114 DBStatus status = g_mgr.OpenStore(g_dbDir + STORE_ID + DB_SUFFIX, STORE_ID, {}, delegate); in HWTEST_F()
|
H A D | distributeddb_interfaces_transaction_test.cpp | 30 const string STORE_ID = STORE_ID_LOCAL; member 76 * Here, we create STORE_ID before test, in SetUp() 80 g_mgr.GetKvStore(STORE_ID, option, g_kvDelegateCallback); in SetUp() 95 EXPECT_EQ(g_mgr.DeleteKvStore(STORE_ID), OK); in TearDown() 188 DistributedDBInterfacesTransactionTestCase::StartTransaction004(g_kvDelegatePtr, STORE_ID, LOCAL_ONLY, in HWTEST_F() 217 DistributedDBInterfacesTransactionTestCase::StartTransaction005(g_kvDelegatePtr, STORE_ID, LOCAL_ONLY, g_mgr); in HWTEST_F()
|
H A D | distributeddb_interfaces_device_identifier_test.cpp | 45 const string STORE_ID = STORE_ID_SYNC; member 66 string dir = g_testDir + STORE_ID + "/" + DBConstant::SINGLE_SUB_DIR; in SetUpTestCase() 74 g_property.SetStringProp(KvDBProperties::STORE_ID, STORE_ID); in SetUpTestCase() 80 if (DistributedDBToolsUnitTest::RemoveTestDbFiles(g_testDir + STORE_ID + "/" + DBConstant::SINGLE_SUB_DIR) != 0) { in TearDownTestCase() 91 g_mgr.GetKvStore(STORE_ID, option, g_kvNbDelegateCallback); in SetUp() 117 EXPECT_TRUE(g_mgr.DeleteKvStore(STORE_ID) == OK); in TearDown() 525 std::string exportFileName = g_testDir + "/" + STORE_ID + ".dump"; in StorageEngineTest002() 653 prop.SetStringProp(KvDBProperties::STORE_ID, g_property.GetStringProp(KvDBProperties::STORE_ID, "")); in HWTEST_F() [all...] |
H A D | distributeddb_cloud_interfaces_relational_ext_test.cpp | 36 constexpr const char *STORE_ID = "Relational_Store_ID"; member 163 DBStatus status = g_mgr.OpenStore(g_dbDir + STORE_ID + DB_SUFFIX, STORE_ID, {}, delegate); in SetTracerSchemaTest001() 189 sqlite3 *db = RelationalTestUtils::CreateDataBase(g_dbDir + STORE_ID + DB_SUFFIX); in HWTEST_F() 209 sqlite3 *db = RelationalTestUtils::CreateDataBase(g_dbDir + STORE_ID + DB_SUFFIX); in PrepareData() 232 DBStatus status = g_mgr.OpenStore(g_dbDir + STORE_ID + DB_SUFFIX, STORE_ID, {}, delegate); in PrepareData() 257 sqlite3 *db = RelationalTestUtils::CreateDataBase(g_dbDir + STORE_ID + DB_SUFFIX); in InsertTriggerTest() 344 sqlite3 *db = RelationalTestUtils::CreateDataBase(g_dbDir + STORE_ID + DB_SUFFIX); in HWTEST_F() 397 sqlite3 *db = RelationalTestUtils::CreateDataBase(g_dbDir + STORE_ID in UpdateTriggerTest() [all...] |
H A D | distributeddb_interfaces_transaction_syncdb_test.cpp | 30 const string STORE_ID = STORE_ID_SYNC; member 76 * Here, we create STORE_ID before test, in SetUp() 80 g_mgr.GetKvStore(STORE_ID, option, g_kvDelegateCallback); in SetUp() 95 EXPECT_EQ(g_mgr.DeleteKvStore(STORE_ID), OK); in TearDown() 188 DistributedDBInterfacesTransactionTestCase::StartTransaction004(g_kvDelegatePtr, STORE_ID, LOCAL_ONLY, in HWTEST_F()
|
H A D | distributeddb_interfaces_relational_observer_test.cpp | 33 constexpr const char *STORE_ID = "Relational_Store_ID"; member 53 g_storePath = g_dbDir + STORE_ID + DB_SUFFIX; in SetUpTestCase() 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); in HWTEST_F() 267 EXPECT_EQ(g_mgr.OpenStore(g_storePath, STORE_ID, {}, delegate), OK); in HWTEST_F()
|
H A D | distributeddb_interfaces_single_version_result_set_test.cpp | 47 const string STORE_ID = STORE_ID_SYNC; member 74 std::string origIdentifier = USER_ID + "-" + APP_ID + "-" + STORE_ID; in SetUpTestCase() 88 if (DistributedDBToolsUnitTest::RemoveTestDbFiles(g_testDir + STORE_ID + "/" + DBConstant::SINGLE_SUB_DIR) != 0) { in TearDownTestCase() 99 g_mgr.GetKvStore(STORE_ID, delegateOption, g_kvNbDelegateCallback); in SetUp() 105 property.SetStringProp(KvDBProperties::STORE_ID, STORE_ID); in SetUp() 147 EXPECT_TRUE(g_mgr.DeleteKvStore(STORE_ID) == OK); in TearDown()
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/test/ |
H A D | udmf_run_time_store_test.cpp | 92 const std::string STORE_ID = "drag"; member in OHOS::Test::DistributedDataTest::UdmfRunTimeStoreTest 123 auto store = std::make_shared<RuntimeStore>(STORE_ID); in HWTEST_F() 156 auto store = std::make_shared<RuntimeStore>(STORE_ID); in HWTEST_F() 189 auto store = std::make_shared<RuntimeStore>(STORE_ID); in HWTEST_F() 220 auto store = std::make_shared<RuntimeStore>(STORE_ID); in HWTEST_F() 258 auto store = std::make_shared<RuntimeStore>(STORE_ID); in HWTEST_F() 301 auto store = std::make_shared<RuntimeStore>(STORE_ID); in HWTEST_F() 339 auto store = std::make_shared<RuntimeStore>(STORE_ID); in HWTEST_F() 383 auto store = std::make_shared<RuntimeStore>(STORE_ID); in HWTEST_F() 396 auto store = std::make_shared<RuntimeStore>(STORE_ID); in HWTEST_F() [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/fuzztest/relationalstoredelegate_fuzzer/ |
H A D | relationalstoredelegate_fuzzer.cpp | 37 constexpr const char *STORE_ID = "Relational_Store_ID"; member 67 g_db = RdbTestUtils::CreateDataBase(g_dbDir + STORE_ID + DB_SUFFIX); in Setup() 81 if (g_mgr.OpenStore(g_dbDir + STORE_ID + DB_SUFFIX, STORE_ID, {}, g_delegate) != E_OK) { in Setup()
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/syncer/ |
H A D | distributeddb_single_ver_multi_user_test.cpp | 35 const string STORE_ID = "kv_stroe_sync_test"; member 164 g_mgr1.GetKvStore(STORE_ID, option, g_kvDelegateCallback1); in OpenStore1() 173 g_mgr2.GetKvStore(STORE_ID, option, g_kvDelegateCallback2); in OpenStore2() 183 DBStatus status = g_mgr1.DeleteKvStore(STORE_ID); in CloseStore() 190 DBStatus status = g_mgr2.DeleteKvStore(STORE_ID); in CloseStore() 225 param.storeId = STORE_ID; in AutoLaunchCallBack() 469 g_identifier = g_mgr1.GetKvStoreIdentifier(USER_ID_2, APP_ID, STORE_ID, true); in HWTEST_F() 470 EXPECT_TRUE(g_identifier == g_mgr1.GetKvStoreIdentifier(USER_ID_1, APP_ID, STORE_ID, true)); in HWTEST_F() 501 RuntimeConfig::ReleaseAutoLaunch(USER_ID_2, APP_ID, STORE_ID, DBType::DB_KV); in HWTEST_F() 534 EXPECT_TRUE(g_mgr1.EnableKvStoreAutoLaunch(USER_ID_2, APP_ID, STORE_ID, optio in HWTEST_F() [all...] |
H A D | distributeddb_communicator_proxy_test.cpp | 35 const string STORE_ID = "kv_store_sync_test"; member 106 g_mgr.GetKvStore(STORE_ID, option, g_kvDelegateCallback); in SetUp() 107 std::string identifier = g_mgr.GetKvStoreIdentifier(USER_ID, APP_ID, STORE_ID); in SetUp() 124 DBStatus status = g_mgr.DeleteKvStore(STORE_ID); in TearDown() 146 std::string identifier = g_mgr.GetKvStoreIdentifier("default", APP_ID, STORE_ID); in HWTEST_F()
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/storage/ |
H A D | distributeddb_storage_rd_result_and_json_optimize_test.cpp | 44 const string STORE_ID = STORE_ID_SYNC; member 57 std::string origIdentifier = USER_ID + "-" + APP_ID + "-" + STORE_ID; in SetUpTestCase() 68 g_Property.SetStringProp(KvDBProperties::STORE_ID, STORE_ID); in SetUpTestCase()
|
H A D | distributeddb_relational_syncable_storage_test.cpp | 31 constexpr const char* STORE_ID = "Relational_Store_ID"; member 85 sqlite3 *db = RelationalTestUtils::CreateDataBase(g_dbDir + STORE_ID + DB_SUFFIX); in HWTEST_F()
|
H A D | distributeddb_relational_schema_analysis_test.cpp | 29 constexpr const char* STORE_ID = "Relational_Store_ID"; member 99 sqlite3 *db = RelationalTestUtils::CreateDataBase(g_dbDir + STORE_ID + DB_SUFFIX); in AnalysisTable()
|
H A D | distributeddb_storage_resultset_and_json_optimize.cpp | 45 const string STORE_ID = STORE_ID_SYNC; member 58 std::string origIdentifier = USER_ID + "-" + APP_ID + "-" + STORE_ID; in SetUpTestCase() 69 g_Property.SetStringProp(KvDBProperties::STORE_ID, STORE_ID); in SetUpTestCase()
|
H A D | distributeddb_storage_register_conflict_test.cpp | 40 const string STORE_ID = STORE_ID_SYNC; member 148 std::string origIdentifier = USER_ID + "-" + APP_ID + "-" + STORE_ID; in SetUpTestCase() 173 * Here, we create STORE_ID before test, in SetUp() 177 g_mgr.GetKvStore(STORE_ID, option, g_kvNbDelegateCallback); in SetUp() 183 property.SetStringProp(KvDBProperties::STORE_ID, STORE_ID); in SetUp() 211 EXPECT_TRUE(g_mgr.DeleteKvStore(STORE_ID) == OK); in TearDown() 790 EXPECT_TRUE(g_mgr.DeleteKvStore(STORE_ID) == OK); in GetNewConflictStore() 794 property.SetStringProp(KvDBProperties::STORE_ID, STORE_ID); in GetNewConflictStore() [all...] |
/foundation/deviceprofile/device_info_manager/services/core/src/deviceprofilemanager/ |
H A D | static_profile_manager.cpp | 43 const std::string STORE_ID = "dp_kv_static_store"; member 52 staticProfileStore_ = std::make_shared<KVAdapter>(APP_ID, STORE_ID, in Init() 53 std::make_shared<KvDataChangeListener>(STORE_ID), in Init() 54 std::make_shared<KvSyncCompletedListener>(STORE_ID), std::make_shared<KvDeathRecipient>(STORE_ID), in Init()
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/storage/cloud/ |
H A D | distributeddb_cloud_meta_data_test.cpp | 36 const string STORE_ID = "Relational_Store_ID"; member 68 properties.SetStringProp(RelationalDBProperties::STORE_ID, STORE_ID); in InitStoreProp() 69 std::string identifier = userId + "-" + appId + "-" + STORE_ID; in InitStoreProp() 121 g_storePath = g_dbDir + STORE_ID + ".db"; in SetUpTestCase() 134 ASSERT_EQ(g_mgr.OpenStore(g_storePath, STORE_ID, RelationalStoreDelegate::Option {}, g_delegate), DBStatus::OK); in SetUp()
|
/foundation/deviceprofile/device_info_manager/old/services/core/src/dbstorage/ |
H A D | online_sync_table.cpp | 32 const std::string STORE_ID = "online_sync_storage"; member 37 OnlineSyncTable::OnlineSyncTable() : DeviceProfileStorage(APP_ID, STORE_ID) in OnlineSyncTable()
|
/foundation/ability/ability_runtime/services/appmgr/include/ |
H A D | app_config_data_manager.h | 44 static const DistributedKv::StoreId STORE_ID; member in OHOS::AbilityRuntime::AppConfigDataManager
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/fuzztest/storage_fuzzer/ |
H A D | storage_fuzzer.cpp | 46 const auto STORE_ID = "Relational_Store_ID"; member 73 int ret = g_mgr.OpenStore(STORE_PATH, STORE_ID, RelationalStoreDelegate::Option {}, g_delegate); in SetUp() 139 properties.SetStringProp(RelationalDBProperties::STORE_ID, STORE_ID); in InitStoreProp() 140 std::string identifier = userId + "-" + appId + "-" + STORE_ID; in InitStoreProp()
|
/foundation/ability/ability_runtime/services/appmgr/src/ |
H A D | app_config_data_manager.cpp | 32 const DistributedKv::StoreId AppConfigDataManager::STORE_ID = { "app_config_data_infos" }; member in OHOS::AbilityRuntime::AppConfigDataManager 55 DistributedKv::Status status = dataManager_.GetSingleKvStore(options, APP_ID, STORE_ID, kvStorePtr_); in GetKvStore()
|