Lines Matching refs:device_
176 : device_(new TestDevice(control_interface(), in DeviceTest()
188 device_->time_ = &time_; in DeviceTest()
193 device_->metrics_ = &metrics_; in SetUp()
194 device_->rtnl_handler_ = &rtnl_handler_; in SetUp()
203 device_->OnIPConfigUpdated(ipconfig, true); in OnIPConfigUpdated()
207 device_->OnIPConfigFailed(ipconfig); in OnIPConfigFailed()
211 device_->OnIPConfigExpired(ipconfig); in OnIPConfigExpired()
215 device_->SelectService(service); in SelectService()
219 device_->connection_ = connection; in SetConnection()
223 device_->set_link_monitor(link_monitor); // Passes ownership. in SetLinkMonitor()
227 return device_->link_monitor(); in HasLinkMonitor()
231 return device_->StartLinkMonitor(); in StartLinkMonitor()
235 device_->StopLinkMonitor(); in StopLinkMonitor()
239 return device_->GetLinkMonitorResponseTime(error); in GetLinkMonitorResponseTime()
243 device_->set_traffic_monitor(traffic_monitor); // Passes ownership. in SetTrafficMonitor()
247 device_->StartTrafficMonitor(); in StartTrafficMonitor()
251 device_->StopTrafficMonitor(); in StopTrafficMonitor()
255 device_->OnEncounterNetworkProblem(reason); in NetworkProblemDetected()
259 return static_cast<DeviceMockAdaptor*>(device_->adaptor_.get()); in GetDeviceMockAdaptor()
263 device_->manager_ = manager; in SetManager()
268 device_->reliable_link_callback_.Reset( in SetReliableLinkCallback()
273 return device_->reliable_link_callback_.IsCancelled(); in ReliableLinkCallbackIsCancelled()
285 device_->ip6config_ = new MockIPConfig(control_interface(), kDeviceName); in SetupIPv6Config()
286 device_->ip6config_->set_properties(properties); in SetupIPv6Config()
290 return device_->SetHostname(hostname); in SetHostname()
294 scoped_refptr<TestDevice> device_; member in shill::DeviceTest
306 EXPECT_TRUE(device_->store().Contains(kNameProperty)); in TEST_F()
307 EXPECT_FALSE(device_->store().Contains("")); in TEST_F()
313 device_->store().GetProperties(&props, &error); in TEST_F()
324 EXPECT_FALSE(device_->mutable_store()->SetAnyProperty( in TEST_F()
331 EXPECT_FALSE(device_->mutable_store()->SetAnyProperty( in TEST_F()
337 EXPECT_FALSE(device_->mutable_store()->SetAnyProperty( in TEST_F()
342 ASSERT_FALSE(device_->ipconfig_.get()); in TEST_F()
343 device_->ipconfig_ = new IPConfig(control_interface(), kDeviceName); in TEST_F()
344 device_->ip6config_ = new IPConfig(control_interface(), kDeviceName); in TEST_F()
345 device_->dhcpv6_config_ = new IPConfig(control_interface(), kDeviceName); in TEST_F()
346 device_->DestroyIPConfig(); in TEST_F()
347 ASSERT_FALSE(device_->ipconfig_.get()); in TEST_F()
348 ASSERT_FALSE(device_->ip6config_.get()); in TEST_F()
349 ASSERT_FALSE(device_->dhcpv6_config_.get()); in TEST_F()
353 ASSERT_FALSE(device_->ipconfig_.get()); in TEST_F()
354 ASSERT_FALSE(device_->ip6config_.get()); in TEST_F()
355 ASSERT_FALSE(device_->dhcpv6_config_.get()); in TEST_F()
356 device_->DestroyIPConfig(); in TEST_F()
357 ASSERT_FALSE(device_->ipconfig_.get()); in TEST_F()
358 ASSERT_FALSE(device_->ip6config_.get()); in TEST_F()
359 ASSERT_FALSE(device_->dhcpv6_config_.get()); in TEST_F()
367 device_->ipconfig_ = new IPConfig(control_interface(), "randomname"); in TEST_F()
369 device_->dhcp_provider_ = dhcp_provider.get(); in TEST_F()
416 device_->dhcpv6_config_ = new IPConfig(control_interface(), "randomname"); in TEST_F()
426 device_->manager_->dhcp_properties_ = std::move(manager_dhcp_properties); in TEST_F()
434 EXPECT_TRUE(device_->AcquireIPConfig()); in TEST_F()
435 ASSERT_TRUE(device_->ipconfig_.get()); in TEST_F()
436 EXPECT_EQ(kDeviceName, device_->ipconfig_->device_name()); in TEST_F()
437 EXPECT_FALSE(device_->ipconfig_->update_callback_.is_null()); in TEST_F()
439 EXPECT_EQ(kDeviceName, device_->dhcpv6_config_->device_name()); in TEST_F()
440 EXPECT_FALSE(device_->dhcpv6_config_->update_callback_.is_null()); in TEST_F()
442 device_->dhcp_provider_ = nullptr; in TEST_F()
446 device_->ipconfig_ = new IPConfig(control_interface(), "randomname"); in TEST_F()
448 device_->dhcp_provider_ = dhcp_provider.get(); in TEST_F()
452 device_->manager_->dhcp_properties_ = std::move(manager_dhcp_properties); in TEST_F()
459 device_->dhcpv6_config_ = new IPConfig(control_interface(), "randomname"); in TEST_F()
472 Ref(*(device_->manager_->dhcp_properties_)))) in TEST_F()
476 EXPECT_TRUE(device_->AcquireIPConfig()); in TEST_F()
477 ASSERT_TRUE(device_->ipconfig_.get()); in TEST_F()
478 EXPECT_EQ(kDeviceName, device_->ipconfig_->device_name()); in TEST_F()
479 EXPECT_FALSE(device_->ipconfig_->update_callback_.is_null()); in TEST_F()
481 EXPECT_EQ(kDeviceName, device_->dhcpv6_config_->device_name()); in TEST_F()
482 EXPECT_FALSE(device_->dhcpv6_config_->update_callback_.is_null()); in TEST_F()
484 device_->dhcp_provider_ = nullptr; in TEST_F()
498 device_->ipconfig_ = new IPConfig(control_interface(), "anothername"); in TEST_F()
500 device_->dhcp_provider_ = dhcp_provider.get(); in TEST_F()
508 device_->AcquireIPConfig(); in TEST_F()
512 EXPECT_CALL(*device_, SetIPFlag(IPAddress::kFamilyIPv6, in TEST_F()
516 device_->EnableIPv6(); in TEST_F()
520 EXPECT_CALL(*device_, IsIPv6Allowed()).WillOnce(Return(false)); in TEST_F()
521 EXPECT_CALL(*device_, SetIPFlag(_, _, _)).Times(0); in TEST_F()
522 device_->EnableIPv6(); in TEST_F()
527 EXPECT_CALL(*device_, SetIPFlag(_, _, _)).Times(0); in TEST_F()
528 device_->SetIsMultiHomed(false); in TEST_F()
529 Mock::VerifyAndClearExpectations(device_.get()); in TEST_F()
532 EXPECT_CALL(*device_, SetIPFlag(IPAddress::kFamilyIPv4, StrEq("arp_announce"), in TEST_F()
534 EXPECT_CALL(*device_, SetIPFlag(IPAddress::kFamilyIPv4, StrEq("arp_ignore"), in TEST_F()
536 EXPECT_CALL(*device_, SetIPFlag(IPAddress::kFamilyIPv4, StrEq("rp_filter"), in TEST_F()
538 device_->SetIsMultiHomed(true); in TEST_F()
539 Mock::VerifyAndClearExpectations(device_.get()); in TEST_F()
542 EXPECT_CALL(*device_, SetIPFlag(_, _, _)).Times(0); in TEST_F()
543 device_->SetIsMultiHomed(true); in TEST_F()
547 device_->SetLooseRouting(false); in TEST_F()
548 device_->SetLooseRouting(true); in TEST_F()
549 Mock::VerifyAndClearExpectations(device_.get()); in TEST_F()
554 EXPECT_CALL(*device_, SetIPFlag(IPAddress::kFamilyIPv4, StrEq("arp_announce"), in TEST_F()
556 EXPECT_CALL(*device_, SetIPFlag(IPAddress::kFamilyIPv4, StrEq("arp_ignore"), in TEST_F()
558 device_->SetIsMultiHomed(false); in TEST_F()
559 Mock::VerifyAndClearExpectations(device_.get()); in TEST_F()
562 EXPECT_CALL(*device_, SetIPFlag(IPAddress::kFamilyIPv4, StrEq("rp_filter"), in TEST_F()
564 device_->SetLooseRouting(false); in TEST_F()
565 Mock::VerifyAndClearExpectations(device_.get()); in TEST_F()
570 const string id = device_->GetStorageIdentifier(); in TEST_F()
578 EXPECT_TRUE(device_->Load(&storage)); in TEST_F()
583 const string id = device_->GetStorageIdentifier(); in TEST_F()
590 EXPECT_TRUE(device_->Save(&storage)); in TEST_F()
601 EXPECT_FALSE(device_->selected_service_.get()); in TEST_F()
602 device_->SetServiceState(Service::kStateAssociating); in TEST_F()
609 EXPECT_TRUE(device_->selected_service_.get() == service.get()); in TEST_F()
612 device_->SetServiceState(Service::kStateConfiguring); in TEST_F()
614 device_->SetServiceFailure(Service::kFailureOutOfRange); in TEST_F()
638 EXPECT_TRUE(device_->selected_service().get() == service.get()); in TEST_F()
646 device_->OnLinkMonitorFailure(); in TEST_F()
654 device_->OnLinkMonitorFailure(); in TEST_F()
665 device_->OnLinkMonitorFailure(); in TEST_F()
676 device_->OnLinkMonitorFailure(); in TEST_F()
721 EXPECT_THAT(device_->ip6config_, NotNullRefPtr()); in TEST_F()
739 EXPECT_CALL(*connection, UpdateFromIPConfig(device_->ip6config_)); in TEST_F()
754 EXPECT_THAT(device_->ip6config_, NotNullRefPtr()); in TEST_F()
775 EXPECT_THAT(device_->connection(), NotNullRefPtr()); in TEST_F()
807 device_->set_ipconfig(ipconfig); in TEST_F()
811 device_->technology(), in TEST_F()
814 NotifyIPv6ConnectivityStatus(device_->technology(), false)); in TEST_F()
857 EXPECT_FALSE(device_->enabled_); in TEST_F()
858 EXPECT_FALSE(device_->enabled_pending_); in TEST_F()
859 device_->enabled_persistent_ = false; in TEST_F()
865 device_->SetEnabledNonPersistent(true, &error, ResultCallback()); in TEST_F()
866 EXPECT_FALSE(device_->enabled_persistent_); in TEST_F()
867 EXPECT_TRUE(device_->enabled_pending_); in TEST_F()
871 device_->enabled_persistent_ = false; in TEST_F()
872 device_->enabled_pending_ = true; in TEST_F()
873 device_->enabled_ = true; in TEST_F()
874 device_->SetEnabledNonPersistent(true, &error, ResultCallback()); in TEST_F()
875 EXPECT_FALSE(device_->enabled_persistent_); in TEST_F()
876 EXPECT_TRUE(device_->enabled_pending_); in TEST_F()
877 EXPECT_TRUE(device_->enabled_); in TEST_F()
882 device_->enabled_pending_ = false; in TEST_F()
883 device_->SetEnabledNonPersistent(true, &error, ResultCallback()); in TEST_F()
884 EXPECT_FALSE(device_->enabled_persistent_); in TEST_F()
885 EXPECT_FALSE(device_->enabled_pending_); in TEST_F()
886 EXPECT_TRUE(device_->enabled_); in TEST_F()
891 device_->enabled_ = false; in TEST_F()
892 device_->SetEnabledNonPersistent(false, &error, ResultCallback()); in TEST_F()
893 EXPECT_FALSE(device_->enabled_persistent_); in TEST_F()
894 EXPECT_FALSE(device_->enabled_pending_); in TEST_F()
895 EXPECT_FALSE(device_->enabled_); in TEST_F()
900 device_->enabled_pending_ = true; in TEST_F()
901 device_->SetEnabledNonPersistent(false, &error, ResultCallback()); in TEST_F()
902 EXPECT_FALSE(device_->enabled_persistent_); in TEST_F()
903 EXPECT_TRUE(device_->enabled_pending_); in TEST_F()
904 EXPECT_FALSE(device_->enabled_); in TEST_F()
909 EXPECT_FALSE(device_->enabled_); in TEST_F()
910 EXPECT_FALSE(device_->enabled_pending_); in TEST_F()
911 device_->enabled_persistent_ = false; in TEST_F()
918 device_->SetEnabledPersistent(true, &error, ResultCallback()); in TEST_F()
919 EXPECT_TRUE(device_->enabled_persistent_); in TEST_F()
920 EXPECT_TRUE(device_->enabled_pending_); in TEST_F()
924 device_->enabled_persistent_ = false; in TEST_F()
925 device_->enabled_pending_ = true; in TEST_F()
926 device_->enabled_ = true; in TEST_F()
927 device_->SetEnabledPersistent(true, &error, ResultCallback()); in TEST_F()
928 EXPECT_FALSE(device_->enabled_persistent_); in TEST_F()
929 EXPECT_TRUE(device_->enabled_pending_); in TEST_F()
930 EXPECT_TRUE(device_->enabled_); in TEST_F()
935 device_->enabled_pending_ = false; in TEST_F()
936 device_->SetEnabledPersistent(true, &error, ResultCallback()); in TEST_F()
937 EXPECT_FALSE(device_->enabled_persistent_); in TEST_F()
938 EXPECT_FALSE(device_->enabled_pending_); in TEST_F()
939 EXPECT_TRUE(device_->enabled_); in TEST_F()
944 device_->enabled_ = false; in TEST_F()
945 device_->SetEnabledPersistent(false, &error, ResultCallback()); in TEST_F()
946 EXPECT_FALSE(device_->enabled_persistent_); in TEST_F()
947 EXPECT_FALSE(device_->enabled_pending_); in TEST_F()
948 EXPECT_FALSE(device_->enabled_); in TEST_F()
953 device_->enabled_pending_ = true; in TEST_F()
954 device_->SetEnabledPersistent(false, &error, ResultCallback()); in TEST_F()
955 EXPECT_FALSE(device_->enabled_persistent_); in TEST_F()
956 EXPECT_TRUE(device_->enabled_pending_); in TEST_F()
957 EXPECT_FALSE(device_->enabled_); in TEST_F()
962 EXPECT_FALSE(device_->running_); in TEST_F()
963 EXPECT_FALSE(device_->enabled_); in TEST_F()
964 EXPECT_FALSE(device_->enabled_pending_); in TEST_F()
965 device_->SetEnabled(true); in TEST_F()
966 EXPECT_TRUE(device_->running_); in TEST_F()
967 EXPECT_TRUE(device_->enabled_pending_); in TEST_F()
968 device_->OnEnabledStateChanged(ResultCallback(), in TEST_F()
970 EXPECT_FALSE(device_->enabled_pending_); in TEST_F()
974 device_->enabled_ = true; in TEST_F()
975 device_->enabled_pending_ = true; in TEST_F()
976 device_->ipconfig_ = new IPConfig(&control_interface_, kDeviceName); in TEST_F()
989 device_->SetEnabled(false); in TEST_F()
990 device_->OnEnabledStateChanged(ResultCallback(), Error()); in TEST_F()
992 EXPECT_FALSE(device_->ipconfig_.get()); in TEST_F()
993 EXPECT_FALSE(device_->selected_service_.get()); in TEST_F()
1025 device_->Reset(&e, ResultCallback()); in TEST_F()
1033 device_->set_ipconfig(ipconfig); in TEST_F()
1035 device_->OnAfterResume(); in TEST_F()
1040 ASSERT_EQ(nullptr, device_->ipconfig().get()); in TEST_F()
1041 device_->OnAfterResume(); in TEST_F()
1048 device_->OnAfterResume(); in TEST_F()
1054 device_->OnAfterResume(); in TEST_F()
1068 device_->OnAfterResume(); in TEST_F()
1082 device_->OnConnected(); in TEST_F()
1088 device_->OnConnected(); in TEST_F()
1184 EXPECT_CALL(*device_, IsTrafficMonitorEnabled()).WillRepeatedly(Return(true)); in TEST_F()
1198 EXPECT_CALL(*device_, IsTrafficMonitorEnabled()) in TEST_F()
1221 EXPECT_CALL(*device_, IsTrafficMonitorEnabled()).WillRepeatedly(Return(true)); in TEST_F()
1232 EXPECT_FALSE(device_->ShouldUseArpGateway()); in TEST_F()
1237 "", device_->PerformTDLSOperation("do something", "to someone", nullptr)); in TEST_F()
1241 EXPECT_FALSE(device_->IsConnectedViaTether()); in TEST_F()
1244 device_->ipconfig_ = new IPConfig(control_interface(), kDeviceName); in TEST_F()
1245 EXPECT_FALSE(device_->IsConnectedViaTether()); in TEST_F()
1254 device_->ipconfig_->UpdateProperties(properties, true); in TEST_F()
1255 EXPECT_TRUE(device_->IsConnectedViaTether()); in TEST_F()
1262 device_->ipconfig_->UpdateProperties(properties, true); in TEST_F()
1263 EXPECT_FALSE(device_->IsConnectedViaTether()); in TEST_F()
1267 EXPECT_EQ(vector<string>(), device_->AvailableIPConfigs(nullptr)); in TEST_F()
1268 device_->ipconfig_ = new IPConfig(control_interface(), kDeviceName); in TEST_F()
1270 device_->AvailableIPConfigs(nullptr)); in TEST_F()
1271 device_->ip6config_ = new IPConfig(control_interface(), kDeviceName); in TEST_F()
1276 EXPECT_EQ(2, device_->AvailableIPConfigs(nullptr).size()); in TEST_F()
1278 device_->dhcpv6_config_ = new IPConfig(control_interface(), kDeviceName); in TEST_F()
1279 EXPECT_EQ(3, device_->AvailableIPConfigs(nullptr).size()); in TEST_F()
1281 device_->dhcpv6_config_ = nullptr; in TEST_F()
1282 EXPECT_EQ(2, device_->AvailableIPConfigs(nullptr).size()); in TEST_F()
1284 device_->ipconfig_ = nullptr; in TEST_F()
1286 device_->AvailableIPConfigs(nullptr)); in TEST_F()
1288 device_->ip6config_ = nullptr; in TEST_F()
1289 EXPECT_EQ(vector<string>(), device_->AvailableIPConfigs(nullptr)); in TEST_F()
1306 device_->OnIPv6AddressChanged(); in TEST_F()
1307 EXPECT_THAT(device_->ip6config_, IsNullRefPtr()); in TEST_F()
1322 device_->OnIPv6AddressChanged(); in TEST_F()
1323 EXPECT_THAT(device_->ip6config_, NotNullRefPtr()); in TEST_F()
1324 EXPECT_EQ(kAddress0, device_->ip6config_->properties().address); in TEST_F()
1333 device_->OnIPv6AddressChanged(); in TEST_F()
1334 EXPECT_EQ(kAddress0, device_->ip6config_->properties().address); in TEST_F()
1349 device_->OnIPv6AddressChanged(); in TEST_F()
1350 EXPECT_EQ(kAddress1, device_->ip6config_->properties().address); in TEST_F()
1362 device_->OnIPv6AddressChanged(); in TEST_F()
1363 EXPECT_EQ(kAddress1, device_->ip6config_->properties().address); in TEST_F()
1371 device_->OnIPv6AddressChanged(); in TEST_F()
1372 EXPECT_THAT(device_->ip6config_, IsNullRefPtr()); in TEST_F()
1388 device_->ip6config_ = ip6config; in TEST_F()
1399 device_->OnIPv6DnsServerAddressesChanged(); in TEST_F()
1410 device_->OnIPv6DnsServerAddressesChanged(); in TEST_F()
1436 device_->OnIPv6DnsServerAddressesChanged(); in TEST_F()
1437 EXPECT_THAT(device_->ip6config_, IsNullRefPtr()); in TEST_F()
1465 device_->OnIPv6DnsServerAddressesChanged(); in TEST_F()
1466 EXPECT_THAT(device_->ip6config_, NotNullRefPtr()); in TEST_F()
1468 device_->ip6config_->properties().dns_servers); in TEST_F()
1482 device_->OnIPv6AddressChanged(); in TEST_F()
1483 EXPECT_THAT(device_->ip6config_, NotNullRefPtr()); in TEST_F()
1484 EXPECT_EQ(kAddress3, device_->ip6config_->properties().address); in TEST_F()
1486 device_->ip6config_->properties().dns_servers); in TEST_F()
1498 device_->OnIPv6DnsServerAddressesChanged(); in TEST_F()
1500 device_->ip6config_->properties().dns_servers); in TEST_F()
1516 device_->OnIPv6DnsServerAddressesChanged(); in TEST_F()
1517 EXPECT_EQ(empty_dns_server, device_->ip6config_->properties().dns_servers); in TEST_F()
1532 device_->OnIPv6DnsServerAddressesChanged(); in TEST_F()
1534 device_->ip6config_->properties().dns_servers); in TEST_F()
1546 device_->OnIPv6DnsServerAddressesChanged(); in TEST_F()
1547 EXPECT_EQ(empty_dns_server, device_->ip6config_->properties().dns_servers); in TEST_F()
1572 EXPECT_THAT(device_->ip6config_, NotNullRefPtr()); in TEST_F()
1575 EXPECT_THAT(device_->connection(), NotNullRefPtr()); in TEST_F()
1588 device_->OnIPv6AddressChanged(); in TEST_F()
1606 EXPECT_CALL(*connection, UpdateFromIPConfig(device_->ip6config_)); in TEST_F()
1609 device_->technology(), in TEST_F()
1612 NotifyIPv6ConnectivityStatus(device_->technology(), true)); in TEST_F()
1622 device_->OnIPv6AddressChanged(); in TEST_F()
1630 device_->dhcpv6_config_ = new IPConfig(control_interface(), kDeviceName); in TEST_F()
1635 device_->OnDHCPv6ConfigUpdated(device_->dhcpv6_config_.get(), true); in TEST_F()
1639 device_->dhcpv6_config_ = new IPConfig(control_interface(), kDeviceName); in TEST_F()
1644 device_->dhcpv6_config_->set_properties(properties); in TEST_F()
1649 device_->OnDHCPv6ConfigFailed(device_->dhcpv6_config_.get()); in TEST_F()
1650 EXPECT_TRUE(device_->dhcpv6_config_->properties().address.empty()); in TEST_F()
1651 EXPECT_TRUE(device_->dhcpv6_config_->properties().delegated_prefix.empty()); in TEST_F()
1652 EXPECT_EQ(0, device_->dhcpv6_config_->properties().lease_duration_seconds); in TEST_F()
1656 device_->dhcpv6_config_ = new IPConfig(control_interface(), kDeviceName); in TEST_F()
1661 device_->dhcpv6_config_->set_properties(properties); in TEST_F()
1666 device_->OnDHCPv6ConfigExpired(device_->dhcpv6_config_.get()); in TEST_F()
1667 EXPECT_TRUE(device_->dhcpv6_config_->properties().address.empty()); in TEST_F()
1668 EXPECT_TRUE(device_->dhcpv6_config_->properties().delegated_prefix.empty()); in TEST_F()
1669 EXPECT_EQ(0, device_->dhcpv6_config_->properties().lease_duration_seconds); in TEST_F()
1702 device_->set_ipconfig(ipconfig); in TEST_F()
1705 device_->ipconfig()->properties().dns_servers); in TEST_F()
1727 device_->OnIPv6DnsServerAddressesChanged(); in TEST_F()
1731 EXPECT_EQ(kExpectedServers, device_->ip6config()->properties().dns_servers); in TEST_F()
1742 device_->set_ipconfig(ipconfig); in TEST_F()
1766 EXPECT_EQ(kOutputServers, device_->ipconfig()->properties().dns_servers); in TEST_F()
1774 EXPECT_EQ(static_servers, device_->ipconfig()->properties().dns_servers); in TEST_F()
1788 EXPECT_FALSE(device_->ResolvePeerMacAddress(kInvalidPeer, &result, &error)); in TEST_F()
1795 HasDirectConnectivityTo(device_->interface_index(), _)) in TEST_F()
1797 EXPECT_FALSE(device_->ResolvePeerMacAddress(kPeerIp, &result, &error)); in TEST_F()
1807 HasDirectConnectivityTo(device_->interface_index(), _)) in TEST_F()
1810 GetMACAddressOfPeer(device_->interface_index(), _, _)) in TEST_F()
1812 EXPECT_TRUE(device_->ResolvePeerMacAddress(kPeerIp, &result, &error)); in TEST_F()
1919 device_->portal_detector_.reset(portal_detector_); // Passes ownership. in SetUp()
1926 bool StartPortalDetection() { return device_->StartPortalDetection(); } in StartPortalDetection()
1927 void StopPortalDetection() { device_->StopPortalDetection(); } in StopPortalDetection()
1930 device_->PortalDetectorCallback(result); in PortalDetectorCallback()
1933 return device_->RequestPortalDetection(); in RequestPortalDetection()
1936 device_->SetServiceConnectedState(state); in SetServiceConnectedState()
1939 EXPECT_FALSE(device_->portal_detector_.get()); in ExpectPortalDetectorReset()
1942 EXPECT_TRUE(device_->portal_detector_.get()); in ExpectPortalDetectorSet()
1945 EXPECT_EQ(portal_detector_, device_->portal_detector_.get()); in ExpectPortalDetectorIsMock()
1948 device_->FallbackDNSResultCallback(status); in InvokeFallbackDNSResultCallback()
1951 device_->ConfigDNSResultCallback(status); in InvokeConfigDNSResultCallback()
1953 void DestroyConnection() { device_->DestroyConnection(); } in DestroyConnection()
1980 EXPECT_CALL(manager_, IsPortalDetectionEnabled(device_->technology())) in TEST_F()
1995 EXPECT_CALL(manager_, IsPortalDetectionEnabled(device_->technology())) in TEST_F()
2010 EXPECT_CALL(manager_, IsPortalDetectionEnabled(device_->technology())) in TEST_F()
2028 EXPECT_CALL(manager_, IsPortalDetectionEnabled(device_->technology())) in TEST_F()
2059 EXPECT_CALL(manager_, IsPortalDetectionEnabled(device_->technology())) in TEST_F()
2130 EXPECT_CALL(*device_, StartConnectionDiagnosticsAfterPortalDetection( in TEST_F()
2244 EXPECT_CALL(manager_, IsPortalDetectionEnabled(device_->technology())) in TEST_F()
2272 EXPECT_EQ(nullptr, device_->connection_tester_); in TEST_F()
2273 EXPECT_TRUE(device_->StartConnectivityTest()); in TEST_F()
2274 EXPECT_NE(nullptr, device_->connection_tester_); in TEST_F()
2367 EXPECT_CALL(*device_, StartConnectionDiagnosticsAfterPortalDetection( in TEST_F()
2369 EXPECT_CALL(*device_, StartDNSTest(fallback_dns_servers, false, _)).Times(1); in TEST_F()
2371 Mock::VerifyAndClearExpectations(device_.get()); in TEST_F()
2387 EXPECT_CALL(*device_, StartConnectionDiagnosticsAfterPortalDetection( in TEST_F()
2389 EXPECT_CALL(*device_, StartDNSTest(fallback_dns_servers, false, _)).Times(1); in TEST_F()
2391 Mock::VerifyAndClearExpectations(device_.get()); in TEST_F()
2408 EXPECT_CALL(*device_, StartConnectionDiagnosticsAfterPortalDetection( in TEST_F()
2410 EXPECT_CALL(*device_, StartDNSTest(_, _, _)).Times(0); in TEST_F()
2412 Mock::VerifyAndClearExpectations(device_.get()); in TEST_F()
2418 device_->set_ipconfig(ipconfig); in TEST_F()
2423 EXPECT_CALL(*device_, StartDNSTest(_, _, _)).Times(0); in TEST_F()
2438 EXPECT_CALL(*device_, StartDNSTest(_, _, _)).Times(0); in TEST_F()
2455 EXPECT_CALL(manager_, IsPortalDetectionEnabled(device_->technology())) in TEST_F()
2474 EXPECT_CALL(*device_, StartDNSTest(_, true, _)).Times(1); in TEST_F()
2488 device_->set_ipconfig(ipconfig); in TEST_F()
2502 EXPECT_CALL(manager_, IsPortalDetectionEnabled(device_->technology())) in TEST_F()
2542 EXPECT_CALL(manager_, IsPortalDetectionEnabled(device_->technology())) in TEST_F()
2556 EXPECT_TRUE(device_->StartConnectivityTest()); in TEST_F()
2583 const string id = device_->GetStorageIdentifier(); in SetUp()