Home
last modified time | relevance | path

Searched refs:device_info_ (Results 1 – 25 of 52) sorted by relevance

123

/system/connectivity/shill/
Ddevice_claimer_unittest.cc41 : device_info_(nullptr, nullptr, nullptr, nullptr), in DeviceClaimerTest()
42 device_claimer_(kServiceName, &device_info_, false) {} in DeviceClaimerTest()
45 MockDeviceInfo device_info_; member in shill::DeviceClaimerTest
55 EXPECT_CALL(device_info_, AddDeviceToBlackList(kTestDevice1Name)).Times(1); in TEST_F()
59 Mock::VerifyAndClearExpectations(&device_info_); in TEST_F()
63 EXPECT_CALL(device_info_, AddDeviceToBlackList(kTestDevice2Name)).Times(1); in TEST_F()
67 Mock::VerifyAndClearExpectations(&device_info_); in TEST_F()
73 EXPECT_CALL(device_info_, AddDeviceToBlackList(_)).Times(0); in TEST_F()
76 Mock::VerifyAndClearExpectations(&device_info_); in TEST_F()
80 EXPECT_CALL(device_info_, in TEST_F()
[all …]
Ddevice_info_unittest.cc102 device_info_(&control_interface_, &dispatcher_, &metrics_, &manager_) { in DeviceInfoTest()
107 device_info_.rtnl_handler_ = &rtnl_handler_; in SetUp()
108 device_info_.routing_table_ = &routing_table_; in SetUp()
110 device_info_.netlink_manager_ = &netlink_manager_; in SetUp()
112 device_info_.time_ = &time_; in SetUp()
113 manager_.set_mock_device_info(&device_info_); in SetUp()
125 device_info_.infos_[kTestDeviceIndex].ip_addresses; in CreateInterfaceAddress()
135 return device_info_.CreateDevice(link_name, address, interface_index, in CreateDevice()
140 return device_info_.delayed_devices_; in GetDelayedDevices()
149 device_info_.set_sockets(mock_sockets_); in SetSockets()
[all …]
Ddevice_claimer.cc31 device_info_(device_info), in DeviceClaimer()
38 device_info_->RemoveDeviceFromBlackList(device); in ~DeviceClaimer()
55 device_info_->AddDeviceToBlackList(device_name); in Claim()
73 device_info_->RemoveDeviceFromBlackList(device_name); in Release()
Ddevice_unittest.cc184 device_info_(control_interface(), nullptr, nullptr, nullptr), in DeviceTest()
295 MockDeviceInfo device_info_; member in shill::DeviceTest
414 manager.set_mock_device_info(&device_info_); in TEST_F()
457 manager.set_mock_device_info(&device_info_); in TEST_F()
493 manager.set_mock_device_info(&device_info_); in TEST_F()
733 new StrictMock<MockConnection>(&device_info_)); in TEST_F()
765 new StrictMock<MockConnection>(&device_info_)); in TEST_F()
1094 new StrictMock<MockConnection>(&device_info_)); in TEST_F()
1144 new StrictMock<MockConnection>(&device_info_)); in TEST_F()
1169 new StrictMock<MockConnection>(&device_info_)); in TEST_F()
[all …]
Dconnection_unittest.cc79 : device_info_(new StrictMock<MockDeviceInfo>( in ConnectionTest()
88 device_info_.get(), in ConnectionTest()
208 EXPECT_CALL(*device_info_.get(), in AddDestructorExpectations()
218 device_info_.get(), in GetNewConnection()
224 std::unique_ptr<StrictMock<MockDeviceInfo>> device_info_; member in shill::ConnectionTest
284 EXPECT_CALL(*device_info_, in TEST_F()
343 EXPECT_CALL(*device_info_, GetDevice(kTestDeviceInterfaceIndex0)) in TEST_F()
371 EXPECT_CALL(*device_info_, in TEST_F()
405 new MockConnection(device_info_.get())); in TEST_F()
408 EXPECT_CALL(*device_info_.get(), in TEST_F()
[all …]
Dconnection_tester_unittest.cc50 : device_info_( in ConnectionTesterTest()
52 connection_(new StrictMock<MockConnection>(device_info_.get())), in ConnectionTesterTest()
110 unique_ptr<MockDeviceInfo> device_info_; member in shill::ConnectionTesterTest
Dconnection.cc132 device_info_(device_info), in Connection()
154 device_info_->FlushAddresses(interface_index_); in ~Connection()
232 if (device_info_->HasOtherAddress(interface_index_, local)) { in UpdateFromIPConfig()
237 device_info_->FlushAddresses(interface_index_); in UpdateFromIPConfig()
337 DeviceRefPtr device = device_info_->GetDevice(interface_index_); in SetIsDefault()
377 DeviceRefPtr device = device_info_->GetDevice(interface_index_); in RequestRouting()
390 DeviceRefPtr device = device_info_->GetDevice(interface_index_); in ReleaseRouting()
606 DeviceRefPtr device = device_info_->GetDevice(interface_index); in OnRouteQueryResponse()
Dlink_monitor_unittest.cc89 device_info_(&control_, nullptr, nullptr, nullptr), in LinkMonitorTest()
90 connection_(new StrictMock<MockConnection>(&device_info_)), in LinkMonitorTest()
96 &device_info_, in LinkMonitorTest()
151 NiceMock<MockDeviceInfo> device_info_; member in shill::LinkMonitorTest
Ddns_server_tester_unittest.cc63 : device_info_( in DNSServerTesterTest()
65 connection_(new StrictMock<MockConnection>(device_info_.get())), in DNSServerTesterTest()
109 std::unique_ptr<MockDeviceInfo> device_info_; member in shill::DNSServerTesterTest
Dactive_link_monitor_unittest.cc134 device_info_(&control_, nullptr, nullptr, nullptr), in ActiveLinkMonitorTest()
135 connection_(new StrictMock<MockConnection>(&device_info_)), in ActiveLinkMonitorTest()
148 &device_info_, in ActiveLinkMonitorTest()
266 EXPECT_CALL(device_info_, GetMACAddress(0, _)) in StartMonitor()
355 NiceMock<MockDeviceInfo> device_info_; member in shill::ActiveLinkMonitorTest
384 EXPECT_CALL(device_info_, GetMACAddress(0, _)).WillOnce(Return(false)); in TEST_F()
403 EXPECT_CALL(device_info_, GetMACAddress(0, _)).WillOnce(Return(true)); in TEST_F()
Dpassive_link_monitor_unittest.cc83 : device_info_(&control_, nullptr, nullptr, nullptr), in PassiveLinkMonitorTest()
84 connection_(new StrictMock<MockConnection>(&device_info_)), in PassiveLinkMonitorTest()
137 NiceMock<MockDeviceInfo> device_info_; member in shill::PassiveLinkMonitorTest
Ddevice_claimer.h71 DeviceInfo* device_info_; variable
Ddaemon_task_unittest.cc92 device_info_(control_, dispatcher_, metrics_, manager_) { in DaemonTaskTest()
141 DeviceInfo device_info_; member in shill::DaemonTaskTest
/system/connectivity/dhcp_client/
Ddevice_info_unittest.cc54 device_info_ = DeviceInfo::GetInstance(); in SetUp()
56 device_info_->sockets_.reset(sockets_); in SetUp()
57 device_info_->rtnl_handler_ = &rtnl_handler_; in SetUp()
61 DeviceInfo* device_info_; member in dhcp_client::DeviceInfoTest
90 EXPECT_TRUE(device_info_->GetDeviceInfo(kFakeDeviceName, in TEST_F()
102 EXPECT_FALSE(device_info_->GetDeviceInfo(kFakeLongDeviceName, in TEST_F()
111 EXPECT_FALSE(device_info_->GetDeviceInfo(kFakeDeviceName, in TEST_F()
122 EXPECT_FALSE(device_info_->GetDeviceInfo(kFakeDeviceName, in TEST_F()
135 EXPECT_FALSE(device_info_->GetDeviceInfo(kFakeDeviceName, in TEST_F()
/system/connectivity/shill/cellular/
Dmodem_unittest.cc67 device_info_(modem_info_.control_interface(), modem_info_.dispatcher(), in ModemTest()
85 MockDeviceInfo device_info_; member in shill::ModemTest
101 .WillRepeatedly(Return(&device_info_)); in SetUp()
127 EXPECT_CALL(device_info_, GetMACAddress(kTestInterfaceIndex, _)). in TEST_F()
136 EXPECT_CALL(device_info_, GetMACAddress(kTestInterfaceIndex, _)). in TEST_F()
160 EXPECT_CALL(device_info_, RegisterDevice(_)); in TEST_F()
167 EXPECT_CALL(device_info_, DeregisterDevice(_)); in TEST_F()
205 EXPECT_CALL(device_info_, GetMACAddress(kTestInterfaceIndex, _)) in TEST_F()
208 EXPECT_CALL(device_info_, IsDeviceBlackListed(kLinkName)) in TEST_F()
242 EXPECT_CALL(device_info_, RegisterDevice(_)); in TEST_F()
[all …]
Dmodem_1_unittest.cc59 device_info_(modem_info_.control_interface(), modem_info_.dispatcher(), in Modem1Test()
78 MockDeviceInfo device_info_; member in shill::Modem1Test
96 .WillRepeatedly(Return(&device_info_)); in SetUp()
97 EXPECT_CALL(device_info_, GetMACAddress(kTestInterfaceIndex, _)). in SetUp()
Dsubscription_state_out_of_credits_detector_unittest.cc43 device_info_(modem_info_.control_interface(), modem_info_.dispatcher(), in SubscriptionStateOutOfCreditsDetectorTest()
56 connection_(new NiceMock<MockConnection>(&device_info_)), in SubscriptionStateOutOfCreditsDetectorTest()
77 NiceMock<MockDeviceInfo> device_info_; member in shill::SubscriptionStateOutOfCreditsDetectorTest
/system/connectivity/apmanager/
Ddevice_info_unittest.cc68 device_info_(&manager_) {} in DeviceInfoTest()
75 device_info_.device_info_root_ = device_info_root_; in SetUp()
78 device_info_.netlink_manager_ = &netlink_manager_; in SetUp()
85 return device_info_.IsWifiInterface(interface_name); in IsWifiInterface()
109 device_info_.LinkMsgHandler(message); in SendLinkMsg()
115 EXPECT_EQ(interfaces.size(), device_info_.interface_infos_.size()); in VerifyInterfaceList()
118 device_info_.interface_infos_.find(interface.iface_index); in VerifyInterfaceList()
119 EXPECT_NE(device_info_.interface_infos_.end(), it); in VerifyInterfaceList()
126 EXPECT_EQ(devices.size(), device_info_.devices_.size()); in VerifyDeviceList()
129 device_info_.devices_.find(device->GetDeviceName()); in VerifyDeviceList()
[all …]
Dmanager.cc31 device_info_(this), in Manager()
44 device_info_.Start(); in Start()
48 device_info_.Stop(); in Stop()
Dmanager.h91 DeviceInfo device_info_; variable
/system/connectivity/shill/pppoe/
Dpppoe_service_unittest.cc62 device_info_(&control_interface_, in PPPoEServiceTest()
71 manager_.set_mock_device_info(&device_info_); in PPPoEServiceTest()
98 MockDeviceInfo device_info_; member in shill::PPPoEServiceTest
149 EXPECT_CALL(device_info_, GetIndex(StrEq(kLinkName))).WillOnce(Return(0)); in TEST_F()
152 EXPECT_CALL(device_info_, RegisterDevice(IsRefPtrTo(device))); in TEST_F()
170 EXPECT_CALL(device_info_, GetIndex(StrEq(kLinkName))).WillOnce(Return(0)); in TEST_F()
171 EXPECT_CALL(device_info_, RegisterDevice(LinkNamed(kLinkName))); in TEST_F()
/system/connectivity/shill/wimax/
Dwimax_provider_unittest.cc77 device_info_(&control_, nullptr, &metrics_, &manager_), in WiMaxProviderTest()
91 MockDeviceInfo device_info_; member in shill::WiMaxProviderTest
131 EXPECT_CALL(manager_, device_info()).WillRepeatedly(Return(&device_info_)); in TEST_F()
137 EXPECT_CALL(device_info_, GetIndex(GetTestLinkName(2))).WillOnce(Return(-1)); in TEST_F()
138 EXPECT_CALL(device_info_, GetIndex(GetTestLinkName(3))).WillOnce(Return(-1)); in TEST_F()
146 EXPECT_CALL(manager_, device_info()).WillRepeatedly(Return(&device_info_)); in TEST_F()
149 EXPECT_CALL(device_info_, GetIndex(GetTestLinkName(1))).WillOnce(Return(1)); in TEST_F()
150 EXPECT_CALL(device_info_, GetMACAddress(1, _)).WillOnce(Return(true)); in TEST_F()
151 EXPECT_CALL(device_info_, RegisterDevice(_)); in TEST_F()
161 EXPECT_CALL(manager_, device_info()).WillRepeatedly(Return(&device_info_)); in TEST_F()
[all …]
/system/connectivity/shill/vpn/
Dvpn_service_unittest.cc59 device_info_(&control_, nullptr, nullptr, nullptr), in VPNServiceTest()
60 connection_(new NiceMock<MockConnection>(&device_info_)), in VPNServiceTest()
78 EXPECT_CALL(device_info_, FlushAddresses(0)); in TearDown()
125 MockDeviceInfo device_info_; member in shill::VPNServiceTest
379 new NiceMock<MockConnection>(&device_info_); in TEST_F()
404 EXPECT_CALL(device_info_, FlushAddresses(0)); in TEST_F()
425 new NiceMock<MockConnection>(&device_info_); in TEST_F()
452 EXPECT_CALL(device_info_, FlushAddresses(0)); in TEST_F()
Dthird_party_vpn_driver_unittest.cc44 : device_info_(&control_, &dispatcher_, &metrics_, &manager_), in ThirdPartyVpnDriverTest()
48 &manager_, &device_info_)), in ThirdPartyVpnDriverTest()
75 NiceMock<MockDeviceInfo> device_info_; member in shill::ThirdPartyVpnDriverTest
96 EXPECT_CALL(device_info_, CreateTunnelInterface(_)) in TEST_F()
104 EXPECT_CALL(device_info_, OpenTunnelInterface(interface)) in TEST_F()
Dvpn_provider_unittest.cc57 device_info_(&control_, nullptr, &metrics_, &manager_), in VPNProviderTest()
90 MockDeviceInfo device_info_; member in shill::VPNProviderTest
137 EXPECT_CALL(manager_, device_info()).WillOnce(Return(&device_info_)); in TEST_F()
301 .WillRepeatedly(Return(&device_info_)); in TEST_F()

123