Home
last modified time | relevance | path

Searched refs:g_adapter (Results 1 - 10 of 10) sorted by relevance

/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/interfaces/
H A Druntime_context_process_system_api_adapter_impl_test.cpp36 std::shared_ptr<ProcessSystemApiAdapterImpl> g_adapter; member
60 g_adapter = std::make_shared<ProcessSystemApiAdapterImpl>(); in SetUpTestCase()
61 EXPECT_TRUE(g_adapter != nullptr); in SetUpTestCase()
74 g_adapter->ResetAdapter(); in SetUp()
86 * @tc.steps: step1. call SetSecurityOption to set SecurityOption before set g_adapter in HWTEST_F()
94 * @tc.steps: step2. call SetSecurityOption to set SecurityOption after set g_adapter in HWTEST_F()
97 EXPECT_TRUE(g_adapter != nullptr); in HWTEST_F()
98 RuntimeContext::GetInstance()->SetProcessSystemApiAdapter(g_adapter); in HWTEST_F()
112 * @tc.steps: step1. call GetSecurityOption to get SecurityOption before set g_adapter in HWTEST_F()
120 * @tc.steps: step2. call GetSecurityOption to get SecurityOption after set g_adapter in HWTEST_F()
[all...]
H A Ddistributeddb_interfaces_database_rd_kernel_test.cpp137 std::shared_ptr<IProcessSystemApiAdapter> g_adapter = std::make_shared<ProcessSystemApiAdapterImpl>(); in HWTEST_F() local
138 RuntimeContext::GetInstance()->SetProcessSystemApiAdapter(g_adapter); in HWTEST_F()
H A Ddistributeddb_interfaces_database_test.cpp566 std::shared_ptr<IProcessSystemApiAdapter> g_adapter = std::make_shared<ProcessSystemApiAdapterImpl>(); in HWTEST_F() local
567 RuntimeContext::GetInstance()->SetProcessSystemApiAdapter(g_adapter); in HWTEST_F()
H A Ddistributeddb_interfaces_nb_delegate_rd_test.cpp152 std::shared_ptr<ProcessSystemApiAdapterImpl> g_adapter = std::make_shared<ProcessSystemApiAdapterImpl>(); in SetUpTestCase() local
153 RuntimeContext::GetInstance()->SetProcessSystemApiAdapter(g_adapter); in SetUpTestCase()
H A Ddistributeddb_interfaces_nb_delegate_test.cpp2999 std::shared_ptr<ProcessSystemApiAdapterImpl> g_adapter = std::make_shared<ProcessSystemApiAdapterImpl>(); in HWTEST_F() local
3000 RuntimeContext::GetInstance()->SetProcessSystemApiAdapter(g_adapter); in HWTEST_F()
/foundation/distributedhardware/distributed_audio/services/test_example/
H A Ddistributedaudiotest.cpp119 static OHOS::sptr<IAudioAdapter> g_adapter = nullptr; member
269 if (g_adapter == nullptr) { in LoadSpkDev()
270 int32_t ret = g_manager->LoadAdapter(dev, g_adapter); in LoadSpkDev()
271 if (ret != DH_SUCCESS || g_adapter == nullptr) { in LoadSpkDev()
291 if (g_adapter == nullptr) { in OpenSpk()
294 int32_t ret = g_adapter->RegExtraParamObserver(g_callbackStub, 0); in OpenSpk()
310 ret = g_adapter->CreateRender(renderDesc, g_rattrs, g_render, g_renderId); in OpenSpk()
448 if (g_adapter != nullptr) { in CloseSpk()
449 int32_t ret = g_adapter->DestroyRender(g_renderId); in CloseSpk()
457 g_adapter in CloseSpk()
[all...]
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/storage/
H A Ddistributeddb_storage_single_ver_upgrade_test.cpp55 static std::shared_ptr<ProcessSystemApiAdapterImpl> g_adapter; member
291 g_adapter = std::make_shared<ProcessSystemApiAdapterImpl>(); in SetUpTestCase()
292 RuntimeContext::GetInstance()->SetProcessSystemApiAdapter(g_adapter); in SetUpTestCase()
320 g_adapter->ResetSecOptDic(); in TearDown()
340 RuntimeContext::GetInstance()->SetProcessSystemApiAdapter(g_adapter); in HWTEST_F()
H A Ddistributeddb_storage_subscribe_query_test.cpp180 static std::shared_ptr<ProcessSystemApiAdapterImpl> g_adapter; variable
194 g_adapter = std::make_shared<ProcessSystemApiAdapterImpl>(); in SetUpTestCase()
195 EXPECT_TRUE(g_adapter != nullptr); in SetUpTestCase()
196 RuntimeContext::GetInstance()->SetProcessSystemApiAdapter(g_adapter); in SetUpTestCase()
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/syncer/
H A Ddistributeddb_single_ver_p2p_sync_check_test.cpp100 std::shared_ptr<ProcessSystemApiAdapterImpl> g_adapter = std::make_shared<ProcessSystemApiAdapterImpl>(); in SetUpTestCase() local
101 RuntimeContext::GetInstance()->SetProcessSystemApiAdapter(g_adapter); in SetUpTestCase()
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/syncer/cloud/
H A Ddistributeddb_cloud_kv_test.cpp716 std::shared_ptr<ProcessSystemApiAdapterImpl> g_adapter = std::make_shared<ProcessSystemApiAdapterImpl>(); in HWTEST_F() local
717 RuntimeContext::GetInstance()->SetProcessSystemApiAdapter(g_adapter); in HWTEST_F()

Completed in 32 milliseconds