Lines Matching refs:provider_
58 provider_(&control_, nullptr, &metrics_, &manager_) {}
76 provider_.services_.push_back(service);
80 return provider_.services_[idx];
84 return provider_.services_.size();
91 VPNProvider provider_;
101 ServiceRefPtr service = provider_.GetService(args, &e);
113 ServiceRefPtr service = provider_.GetService(args, &e);
127 ServiceRefPtr service = provider_.FindSimilarService(args, &error);
139 service = provider_.GetService(args, &error);
163 ServiceRefPtr get_service = provider_.GetService(args, &error);
173 ServiceRefPtr similar_service = provider_.FindSimilarService(args, &error);
184 provider_.CreateTemporaryService(args, &error);
201 provider_.services_.push_back(new VPNService(&control_, nullptr, &metrics_,
204 EXPECT_FALSE(provider_.OnDeviceInfoAvailable(kInterfaceName,
210 provider_.services_.push_back(new VPNService(&control_, nullptr, &metrics_,
216 provider_.services_.push_back(new VPNService(&control_, nullptr, &metrics_,
219 EXPECT_TRUE(provider_.OnDeviceInfoAvailable(kInterfaceName, kInterfaceIndex));
220 provider_.services_.clear();
231 provider_.services_.push_back(service0.get());
232 provider_.services_.push_back(service1.get());
233 provider_.services_.push_back(service2.get());
235 ASSERT_EQ(3, provider_.services_.size());
237 provider_.RemoveService(service1);
239 EXPECT_EQ(2, provider_.services_.size());
240 EXPECT_EQ(service0, provider_.services_[0]);
241 EXPECT_EQ(service2, provider_.services_[1]);
243 provider_.RemoveService(service2);
245 EXPECT_EQ(1, provider_.services_.size());
246 EXPECT_EQ(service0, provider_.services_[0]);
248 provider_.RemoveService(service0);
249 EXPECT_EQ(0, provider_.services_.size());
281 provider_.CreateServicesFromProfile(profile);
287 provider_.CreateServicesFromProfile(profile);
306 provider_.CreateService(kTypes[i], kName, kStorageID, &error);
316 provider_.CreateService("unknown-vpn-type", kName, kStorageID, &error);
342 provider_.CreateTemporaryServiceFromProfile(profile,
352 provider_.CreateTemporaryServiceFromProfile(profile,
361 provider_.CreateTemporaryServiceFromProfile(profile,
370 provider_.CreateTemporaryServiceFromProfile(profile,
379 provider_.CreateTemporaryServiceFromProfile(profile,
386 EXPECT_FALSE(provider_.HasActiveService());
398 EXPECT_FALSE(provider_.HasActiveService());
401 EXPECT_TRUE(provider_.HasActiveService());
404 EXPECT_TRUE(provider_.HasActiveService());