Home
last modified time | relevance | path

Searched refs:vpnEventCallback_ (Results 1 - 3 of 3) sorted by relevance

/foundation/communication/netmanager_ext/frameworks/native/netvpnclient/src/
H A Dnetworkvpn_client.cpp107 if (vpnEventCallback_ != nullptr) { in SetUpVpn()
108 UnregisterVpnEvent(vpnEventCallback_); in SetUpVpn()
110 vpnEventCallback_ = new (std::nothrow) VpnSetUpEventCallback(); in SetUpVpn()
111 if (vpnEventCallback_ == nullptr) { in SetUpVpn()
112 NETMGR_EXT_LOG_E("vpnEventCallback_ is nullptr"); in SetUpVpn()
115 RegisterVpnEvent(vpnEventCallback_); in SetUpVpn()
122 if (vpnEventCallback_ != nullptr) { in DestroyVpn()
123 UnregisterVpnEvent(vpnEventCallback_); in DestroyVpn()
124 vpnEventCallback_ = nullptr; in DestroyVpn()
328 if (proxy != nullptr && vpnEventCallback_ ! in RecoverCallback()
[all...]
/foundation/communication/netmanager_ext/test/vpnmanager/unittest/sys_vpn_manager_test/
H A Dnetworkvpn_client_test.cpp259 networkVpnClient_.vpnEventCallback_ = new (std::nothrow) VpnSetUpEventCallback(); in HWTEST_F()
260 ASSERT_NE(networkVpnClient_.vpnEventCallback_, nullptr); in HWTEST_F()
262 networkVpnClient_.vpnEventCallback_->OnVpnStateChanged(isConnected); in HWTEST_F()
263 networkVpnClient_.vpnEventCallback_->OnVpnMultiUserSetUp(); in HWTEST_F()
264 EXPECT_EQ(networkVpnClient_.vpnEventCallback_, nullptr); in HWTEST_F()
282 networkVpnClient_.vpnEventCallback_ = new (std::nothrow) VpnSetUpEventCallback(); in HWTEST_F()
283 ASSERT_NE(networkVpnClient_.vpnEventCallback_, nullptr); in HWTEST_F()
293 networkVpnClient_.vpnEventCallback_ = new (std::nothrow) VpnSetUpEventCallback(); in HWTEST_F()
294 ASSERT_NE(networkVpnClient_.vpnEventCallback_, nullptr); in HWTEST_F()
296 EXPECT_TRUE(networkVpnClient_.vpnEventCallback_ in HWTEST_F()
[all...]
/foundation/communication/netmanager_ext/interfaces/innerkits/netvpnclient/include/
H A Dnetworkvpn_client.h237 sptr<IVpnEventCallback> vpnEventCallback_ = nullptr; member in OHOS::NetManagerStandard::NetworkVpnClient

Completed in 3 milliseconds