• Home
  • Raw
  • Download

Lines Matching refs:get

259     return static_cast<DeviceMockAdaptor*>(device_->adaptor_.get());  in GetDeviceMockAdaptor()
342 ASSERT_FALSE(device_->ipconfig_.get()); 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()
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()
369 device_->dhcp_provider_ = dhcp_provider.get(); in TEST_F()
435 ASSERT_TRUE(device_->ipconfig_.get()); in TEST_F()
448 device_->dhcp_provider_ = dhcp_provider.get(); in TEST_F()
477 ASSERT_TRUE(device_->ipconfig_.get()); in TEST_F()
500 device_->dhcp_provider_ = dhcp_provider.get(); in TEST_F()
529 Mock::VerifyAndClearExpectations(device_.get()); in TEST_F()
539 Mock::VerifyAndClearExpectations(device_.get()); in TEST_F()
549 Mock::VerifyAndClearExpectations(device_.get()); in TEST_F()
559 Mock::VerifyAndClearExpectations(device_.get()); in TEST_F()
565 Mock::VerifyAndClearExpectations(device_.get()); in TEST_F()
601 EXPECT_FALSE(device_->selected_service_.get()); in TEST_F()
609 EXPECT_TRUE(device_->selected_service_.get() == service.get()); in TEST_F()
638 EXPECT_TRUE(device_->selected_service().get() == service.get()); in TEST_F()
715 OnIPConfigFailed(ipconfig.get()); in TEST_F()
734 SetConnection(connection.get()); in TEST_F()
747 OnIPConfigFailed(ipconfig.get()); in TEST_F()
766 SetConnection(connection.get()); in TEST_F()
773 OnIPConfigFailed(ipconfig.get()); in TEST_F()
795 OnIPConfigFailed(ipconfig.get()); in TEST_F()
828 OnIPConfigUpdated(ipconfig.get()); in TEST_F()
837 OnIPConfigUpdated(ipconfig.get()); in TEST_F()
853 OnIPConfigExpired(ipconfig.get()); in TEST_F()
992 EXPECT_FALSE(device_->ipconfig_.get()); in TEST_F()
993 EXPECT_FALSE(device_->selected_service_.get()); in TEST_F()
1040 ASSERT_EQ(nullptr, device_->ipconfig().get()); in TEST_F()
1104 SetConnection(connection.get()); in TEST_F()
1154 SetConnection(connection.get()); in TEST_F()
1179 SetConnection(connection.get()); in TEST_F()
1218 SetConnection(connection.get()); in TEST_F()
1426 SetConnection(connection.get()); in TEST_F()
1568 SetConnection(connection.get()); in TEST_F()
1591 Mock::VerifyAndClearExpectations(service.get()); in TEST_F()
1592 Mock::VerifyAndClearExpectations(connection.get()); in TEST_F()
1625 Mock::VerifyAndClearExpectations(service.get()); in TEST_F()
1626 Mock::VerifyAndClearExpectations(connection.get()); in TEST_F()
1635 device_->OnDHCPv6ConfigUpdated(device_->dhcpv6_config_.get(), true); in TEST_F()
1649 device_->OnDHCPv6ConfigFailed(device_->dhcpv6_config_.get()); in TEST_F()
1666 device_->OnDHCPv6ConfigExpired(device_->dhcpv6_config_.get()); in TEST_F()
1703 OnIPConfigUpdated(ipconfig.get()); in TEST_F()
1765 OnIPConfigUpdated(ipconfig.get()); in TEST_F()
1773 OnIPConfigUpdated(ipconfig.get()); in TEST_F()
1918 SetConnection(connection_.get()); in SetUp()
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()
1965 EXPECT_CALL(*service_.get(), IsPortalDetectionDisabled()) in TEST_F()
1967 EXPECT_CALL(*service_.get(), IsConnected()) in TEST_F()
1969 EXPECT_CALL(*service_.get(), SetState(Service::kStateOnline)); in TEST_F()
1974 EXPECT_CALL(*service_.get(), IsPortalDetectionDisabled()) in TEST_F()
1976 EXPECT_CALL(*service_.get(), IsConnected()) in TEST_F()
1978 EXPECT_CALL(*service_.get(), IsPortalDetectionAuto()) in TEST_F()
1982 EXPECT_CALL(*service_.get(), SetState(Service::kStateOnline)); in TEST_F()
1987 EXPECT_CALL(*service_.get(), IsPortalDetectionDisabled()) in TEST_F()
1989 EXPECT_CALL(*service_.get(), IsConnected()) in TEST_F()
1991 EXPECT_CALL(*service_.get(), HasProxyConfig()) in TEST_F()
1993 EXPECT_CALL(*service_.get(), IsPortalDetectionAuto()) in TEST_F()
1997 EXPECT_CALL(*service_.get(), SetState(Service::kStateOnline)); in TEST_F()
2002 EXPECT_CALL(*service_.get(), IsPortalDetectionDisabled()) in TEST_F()
2004 EXPECT_CALL(*service_.get(), IsConnected()) in TEST_F()
2006 EXPECT_CALL(*service_.get(), HasProxyConfig()) in TEST_F()
2008 EXPECT_CALL(*service_.get(), IsPortalDetectionAuto()) in TEST_F()
2015 EXPECT_CALL(*service_.get(), SetState(Service::kStateOnline)); in TEST_F()
2020 EXPECT_CALL(*service_.get(), IsPortalDetectionDisabled()) in TEST_F()
2022 EXPECT_CALL(*service_.get(), IsConnected()) in TEST_F()
2024 EXPECT_CALL(*service_.get(), HasProxyConfig()) in TEST_F()
2026 EXPECT_CALL(*service_.get(), IsPortalDetectionAuto()) in TEST_F()
2033 EXPECT_CALL(*service_.get(), SetState(Service::kStateOnline)) in TEST_F()
2036 EXPECT_CALL(*connection_.get(), interface_name()) in TEST_F()
2038 EXPECT_CALL(*connection_.get(), IsIPv6()) in TEST_F()
2041 EXPECT_CALL(*connection_.get(), dns_servers()) in TEST_F()
2051 EXPECT_CALL(*service_.get(), IsPortalDetectionDisabled()) in TEST_F()
2053 EXPECT_CALL(*service_.get(), IsConnected()) in TEST_F()
2055 EXPECT_CALL(*service_.get(), HasProxyConfig()) in TEST_F()
2057 EXPECT_CALL(*service_.get(), IsPortalDetectionAuto()) in TEST_F()
2064 EXPECT_CALL(*service_.get(), SetState(Service::kStateOnline)) in TEST_F()
2067 EXPECT_CALL(*connection_.get(), interface_name()) in TEST_F()
2069 EXPECT_CALL(*connection_.get(), IsIPv6()) in TEST_F()
2072 EXPECT_CALL(*connection_.get(), dns_servers()) in TEST_F()
2082 EXPECT_CALL(*service_.get(), IsConnected()) in TEST_F()
2084 EXPECT_CALL(*service_.get(), SetState(_)) in TEST_F()
2107 EXPECT_CALL(*service_.get(), IsConnected()) in TEST_F()
2109 EXPECT_CALL(*service_.get(), in TEST_F()
2112 EXPECT_CALL(*service_.get(), SetState(Service::kStatePortal)); in TEST_F()
2126 EXPECT_CALL(*connection_.get(), is_default()) in TEST_F()
2128 EXPECT_CALL(*connection_.get(), IsIPv6()) in TEST_F()
2136 EXPECT_CALL(*service_.get(), IsConnected()) in TEST_F()
2138 EXPECT_CALL(*service_.get(), SetPortalDetectionFailure(_, _)).Times(0); in TEST_F()
2139 EXPECT_CALL(*service_.get(), SetState(Service::kStateOnline)); in TEST_F()
2163 EXPECT_CALL(*service_.get(), IsConnected()) in TEST_F()
2165 EXPECT_CALL(*service_.get(), in TEST_F()
2168 EXPECT_CALL(*service_.get(), SetState(Service::kStatePortal)); in TEST_F()
2182 EXPECT_CALL(*connection_.get(), is_default()) in TEST_F()
2184 EXPECT_CALL(*connection_.get(), IsIPv6()) in TEST_F()
2194 EXPECT_CALL(*service_.get(), SetPortalDetectionFailure(_, _)).Times(0); in TEST_F()
2195 EXPECT_CALL(*service_.get(), SetState(Service::kStateOnline)); in TEST_F()
2219 EXPECT_CALL(*service_.get(), state()) in TEST_F()
2224 EXPECT_CALL(*connection_.get(), is_default()) in TEST_F()
2240 EXPECT_CALL(*service_.get(), IsPortalDetectionDisabled()) in TEST_F()
2242 EXPECT_CALL(*service_.get(), IsPortalDetectionAuto()) in TEST_F()
2246 EXPECT_CALL(*service_.get(), HasProxyConfig()) in TEST_F()
2252 EXPECT_CALL(*connection_.get(), IsIPv6()) in TEST_F()
2254 EXPECT_CALL(*connection_.get(), interface_name()) in TEST_F()
2257 EXPECT_CALL(*connection_.get(), dns_servers()) in TEST_F()
2264 EXPECT_CALL(*connection_.get(), interface_name()) in TEST_F()
2266 EXPECT_CALL(*connection_.get(), IsIPv6()) in TEST_F()
2269 EXPECT_CALL(*connection_.get(), dns_servers()) in TEST_F()
2278 EXPECT_CALL(*service_.get(), IsConnected()) in TEST_F()
2286 EXPECT_CALL(*service_.get(), IsConnected()) in TEST_F()
2288 EXPECT_CALL(*service_.get(), SetState(Service::kStateOnline)); in TEST_F()
2294 EXPECT_CALL(*service_.get(), IsConnected()) in TEST_F()
2296 EXPECT_CALL(*connection_.get(), is_default()) in TEST_F()
2298 EXPECT_CALL(*service_.get(), SetState(Service::kStatePortal)); in TEST_F()
2304 EXPECT_CALL(*service_.get(), IsConnected()) in TEST_F()
2306 EXPECT_CALL(*connection_.get(), is_default()) in TEST_F()
2310 EXPECT_CALL(*service_.get(), SetState(Service::kStatePortal)); in TEST_F()
2316 EXPECT_CALL(*service_.get(), IsConnected()) in TEST_F()
2318 EXPECT_CALL(*connection_.get(), is_default()) in TEST_F()
2330 EXPECT_CALL(*service_.get(), SetState(Service::kStatePortal)); in TEST_F()
2337 EXPECT_CALL(*service_.get(), state()) in TEST_F()
2339 EXPECT_CALL(*service_.get(), SetState(_)); in TEST_F()
2340 EXPECT_CALL(*service_.get(), SetConnection(_)); in TEST_F()
2349 EXPECT_CALL(*connection_.get(), interface_name()) in TEST_F()
2357 EXPECT_CALL(*service_.get(), IsConnected()) in TEST_F()
2359 EXPECT_CALL(*service_.get(), in TEST_F()
2362 EXPECT_CALL(*service_.get(), SetState(Service::kStatePortal)); in TEST_F()
2363 EXPECT_CALL(*connection_.get(), is_default()) in TEST_F()
2365 EXPECT_CALL(*connection_.get(), IsIPv6()) in TEST_F()
2371 Mock::VerifyAndClearExpectations(device_.get()); in TEST_F()
2378 EXPECT_CALL(*service_.get(), IsConnected()) in TEST_F()
2380 EXPECT_CALL(*service_.get(), in TEST_F()
2383 EXPECT_CALL(*service_.get(), SetState(Service::kStatePortal)); in TEST_F()
2384 EXPECT_CALL(*connection_.get(), is_default()) in TEST_F()
2386 EXPECT_CALL(*connection_.get(), IsIPv6()).WillOnce(Return(false)); in TEST_F()
2391 Mock::VerifyAndClearExpectations(device_.get()); in TEST_F()
2398 EXPECT_CALL(*service_.get(), IsConnected()) in TEST_F()
2400 EXPECT_CALL(*service_.get(), in TEST_F()
2403 EXPECT_CALL(*service_.get(), SetState(Service::kStatePortal)); in TEST_F()
2404 EXPECT_CALL(*connection_.get(), is_default()) in TEST_F()
2406 EXPECT_CALL(*connection_.get(), IsIPv6()) in TEST_F()
2412 Mock::VerifyAndClearExpectations(device_.get()); in TEST_F()
2421 EXPECT_CALL(*connection_.get(), UpdateDNSServers(_)).Times(0); in TEST_F()
2428 Mock::VerifyAndClearExpectations(connection_.get()); in TEST_F()
2429 Mock::VerifyAndClearExpectations(ipconfig.get()); in TEST_F()
2433 EXPECT_CALL(*service_.get(), is_dns_auto_fallback_allowed()) in TEST_F()
2435 EXPECT_CALL(*connection_.get(), UpdateDNSServers(_)).Times(0); in TEST_F()
2437 EXPECT_CALL(*service_.get(), NotifyIPConfigChanges()).Times(0); in TEST_F()
2443 Mock::VerifyAndClearExpectations(service_.get()); in TEST_F()
2444 Mock::VerifyAndClearExpectations(connection_.get()); in TEST_F()
2445 Mock::VerifyAndClearExpectations(ipconfig.get()); in TEST_F()
2449 EXPECT_CALL(*service_.get(), is_dns_auto_fallback_allowed()) in TEST_F()
2451 EXPECT_CALL(*service_.get(), IsPortalDetectionDisabled()) in TEST_F()
2453 EXPECT_CALL(*service_.get(), IsPortalDetectionAuto()) in TEST_F()
2457 EXPECT_CALL(*service_.get(), HasProxyConfig()) in TEST_F()
2463 EXPECT_CALL(*connection_.get(), IsIPv6()) in TEST_F()
2465 EXPECT_CALL(*connection_.get(), interface_name()) in TEST_F()
2468 EXPECT_CALL(*connection_.get(), dns_servers()) in TEST_F()
2472 EXPECT_CALL(*connection_.get(), UpdateDNSServers(_)).Times(1); in TEST_F()
2473 EXPECT_CALL(*service_.get(), NotifyIPConfigChanges()).Times(1); in TEST_F()
2479 Mock::VerifyAndClearExpectations(service_.get()); in TEST_F()
2480 Mock::VerifyAndClearExpectations(connection_.get()); in TEST_F()
2481 Mock::VerifyAndClearExpectations(ipconfig.get()); in TEST_F()
2491 EXPECT_CALL(*connection_.get(), UpdateDNSServers(_)).Times(0); in TEST_F()
2494 Mock::VerifyAndClearExpectations(connection_.get()); in TEST_F()
2495 Mock::VerifyAndClearExpectations(ipconfig.get()); in TEST_F()
2498 EXPECT_CALL(*service_.get(), IsPortalDetectionDisabled()) in TEST_F()
2500 EXPECT_CALL(*service_.get(), IsPortalDetectionAuto()) in TEST_F()
2504 EXPECT_CALL(*service_.get(), HasProxyConfig()) in TEST_F()
2510 EXPECT_CALL(*connection_.get(), IsIPv6()) in TEST_F()
2512 EXPECT_CALL(*connection_.get(), interface_name()) in TEST_F()
2515 EXPECT_CALL(*connection_.get(), dns_servers()) in TEST_F()
2517 EXPECT_CALL(*connection_.get(), UpdateDNSServers(_)).Times(1); in TEST_F()
2519 EXPECT_CALL(*service_.get(), NotifyIPConfigChanges()).Times(1); in TEST_F()
2521 Mock::VerifyAndClearExpectations(service_.get()); in TEST_F()
2522 Mock::VerifyAndClearExpectations(connection_.get()); in TEST_F()
2523 Mock::VerifyAndClearExpectations(ipconfig.get()); in TEST_F()
2534 EXPECT_CALL(*service_.get(), IsPortalDetectionDisabled()) in TEST_F()
2536 EXPECT_CALL(*service_.get(), IsConnected()) in TEST_F()
2538 EXPECT_CALL(*service_.get(), HasProxyConfig()) in TEST_F()
2540 EXPECT_CALL(*service_.get(), IsPortalDetectionAuto()) in TEST_F()
2548 EXPECT_CALL(*connection.get(), interface_name()) in TEST_F()
2550 EXPECT_CALL(*connection.get(), IsIPv6()) in TEST_F()
2553 EXPECT_CALL(*connection.get(), dns_servers()) in TEST_F()
2561 EXPECT_CALL(*service_.get(), SetConnection(IsNullRefPtr())); in TEST_F()