Home
last modified time | relevance | path

Searched refs:driver_ (Results 1 – 10 of 10) sorted by relevance

/system/connectivity/shill/vpn/
Dthird_party_vpn_driver_unittest.cc47 driver_(new ThirdPartyVpnDriver(&control_, &dispatcher_, &metrics_, in ThirdPartyVpnDriverTest()
51 &manager_, driver_)), in ThirdPartyVpnDriverTest()
59 driver_->adaptor_interface_.reset(adaptor_interface_); in SetUp()
60 driver_->file_io_ = &mock_file_io_; in SetUp()
64 driver_->device_ = nullptr; in TearDown()
65 driver_->service_ = nullptr; in TearDown()
66 driver_->file_io_ = nullptr; in TearDown()
80 ThirdPartyVpnDriver* driver_; // Owned by |service_| member in shill::ThirdPartyVpnDriverTest
99 driver_->Connect(service_, &error); in TEST_F()
101 EXPECT_EQ(kInterfaceName, driver_->tunnel_interface_); in TEST_F()
[all …]
Dl2tp_ipsec_driver_unittest.cc64 driver_(new L2TPIPSecDriver(&control_, &dispatcher_, &metrics_, in L2TPIPSecDriverTest()
68 &manager_, driver_)), in L2TPIPSecDriverTest()
73 driver_->certificate_file_.reset(certificate_file_); // Passes ownership. in L2TPIPSecDriverTest()
83 driver_->device_ = nullptr; in TearDown()
84 driver_->service_ = nullptr; in TearDown()
93 driver_->args()->SetString(arg, value); in SetArg()
97 driver_->args()->SetStrings(arg, value); in SetArgArray()
101 return driver_->args(); in GetArgs()
105 return driver_->GetProviderType(); in GetProviderType()
109 driver_->device_ = device; in SetDevice()
[all …]
Dopenvpn_driver_unittest.cc109 driver_(new OpenVPNDriver(&control_, &dispatcher_, &metrics_, &manager_, in OpenVPNDriverTest()
112 &manager_, driver_)), in OpenVPNDriverTest()
119 driver_->management_server_.reset(management_server_); in OpenVPNDriverTest()
120 driver_->certificate_file_.reset(certificate_file_); // Passes ownership. in OpenVPNDriverTest()
121 driver_->extra_certificates_file_.reset( in OpenVPNDriverTest()
124 driver_->openvpn_config_directory_ = in OpenVPNDriverTest()
131 driver_->default_service_callback_tag_ = 0; in TearDown()
132 driver_->pid_ = 0; in TearDown()
133 driver_->device_ = nullptr; in TearDown()
134 driver_->service_ = nullptr; in TearDown()
[all …]
Dopenvpn_management_server_unittest.cc54 : server_(&driver_) {} in OpenVPNManagementServerTest()
77 driver_.args()->SetString(kOpenVPNUserProperty, "jojo"); in ExpectOTPStaticChallengeResponse()
78 driver_.args()->SetString(kOpenVPNPasswordProperty, "yoyo"); in ExpectOTPStaticChallengeResponse()
79 driver_.args()->SetString(kOpenVPNOTPProperty, "123456"); in ExpectOTPStaticChallengeResponse()
86 driver_.args()->SetString(kOpenVPNUserProperty, "jojo"); in ExpectTokenStaticChallengeResponse()
87 driver_.args()->SetString(kOpenVPNTokenProperty, "toto"); in ExpectTokenStaticChallengeResponse()
94 driver_.args()->SetString(kOpenVPNUserProperty, "jojo"); in ExpectAuthenticationResponse()
95 driver_.args()->SetString(kOpenVPNPasswordProperty, "yoyo"); in ExpectAuthenticationResponse()
102 driver_.args()->SetString(kOpenVPNPinProperty, "987654"); in ExpectPINResponse()
167 MockOpenVPNDriver driver_; member in shill::OpenVPNManagementServerTest
[all …]
Dopenvpn_management_server.cc65 : driver_(driver), in OpenVPNManagementServer()
116 driver_->AppendOption("management", inet_ntoa(addr.sin_addr), in Start()
118 driver_->AppendOption("management-client", options); in Start()
119 driver_->AppendOption("management-hold", options); in Start()
123 driver_->AppendOption("management-query-passwords", options); in Start()
124 if (driver_->AppendValueOption(kOpenVPNStaticChallengeProperty, in Start()
174 return driver_->GetServiceRpcIdentifier(); in GetServiceRpcIdentifier()
205 driver_->FailService(Service::kFailureInternal, Service::kErrorDetailsNone); in OnInputError()
251 driver_->FailService(Service::kFailureInternal, Service::kErrorDetailsNone); in ProcessNeedPasswordMessage()
288 string user = driver_->args()->LookupString(kOpenVPNUserProperty, ""); in PerformStaticChallenge()
[all …]
Dvpn_service.cc59 driver_(driver) { in VPNService()
89 driver_->Connect(this, error); in Connect()
95 driver_->Disconnect(); in Disconnect()
129 driver_->Load(storage, GetStorageIdentifier()); in Load()
134 driver_->Save(storage, GetStorageIdentifier(), save_credentials()); in Save()
142 driver_->UnloadCredentials(); in Unload()
151 driver_->InitPropertyStore(mutable_store()); in InitDriverPropertyStore()
170 Unretained(driver_.get())))); in SetConnection()
229 KeyValueStore* args = driver_->args(); in SetNameProperty()
Dvpn_driver_unittest.cc111 driver_(&dispatcher_, &manager_) {} in VPNDriverTest()
116 EventDispatcher* dispatcher() { return driver_.dispatcher_; } in dispatcher()
118 driver_.dispatcher_ = dispatcher; in set_dispatcher()
122 return driver_.connect_timeout_callback_; in connect_timeout_callback()
125 bool IsConnectTimeoutStarted() { return driver_.IsConnectTimeoutStarted(); } in IsConnectTimeoutStarted()
126 int connect_timeout_seconds() { return driver_.connect_timeout_seconds(); } in connect_timeout_seconds()
129 driver_.StartConnectTimeout(timeout_seconds); in StartConnectTimeout()
132 void StopConnectTimeout() { driver_.StopConnectTimeout(); } in StopConnectTimeout()
135 driver_.args()->SetString(arg, value); in SetArg()
139 driver_.args()->SetStrings(arg, value); in SetArgArray()
[all …]
Dvpn_service_unittest.cc56 driver_(new MockVPNDriver()), in VPNServiceTest()
63 driver_)) { in VPNServiceTest()
121 MockVPNDriver* driver_; // Owned by |service_|. member in shill::VPNServiceTest
134 EXPECT_CALL(*driver_, Connect(_, &error)); in TEST_F()
141 EXPECT_CALL(*driver_, Connect(_, _)).Times(0); in TEST_F()
153 EXPECT_CALL(*driver_, Disconnect()); in TEST_F()
201 EXPECT_CALL(*driver_, Load(&storage, kStorageID)) in TEST_F()
210 EXPECT_CALL(*driver_, Save(&storage, kStorageID, false)) in TEST_F()
220 EXPECT_CALL(*driver_, Save(&storage, kStorageID, true)) in TEST_F()
228 EXPECT_CALL(*driver_, Disconnect()); in TEST_F()
[all …]
Dvpn_service.h55 VPNDriver* driver() const { return driver_.get(); } in driver()
84 std::unique_ptr<VPNDriver> driver_; variable
Dopenvpn_management_server.h151 OpenVPNDriver* driver_; variable