Home
last modified time | relevance | path

Searched refs:kInterfaceIndex (Results 1 – 12 of 12) sorted by relevance

/system/connectivity/shill/
Dmetrics_unittest.cc451 const int kInterfaceIndex = 1; in TEST_F() local
452 metrics_.RegisterDevice(kInterfaceIndex, Technology::kCellular); in TEST_F()
453 metrics_.NotifyDeviceConnectStarted(kInterfaceIndex, false); in TEST_F()
454 metrics_.NotifyDeviceConnectFinished(kInterfaceIndex); in TEST_F()
464 const int kInterfaceIndex = 1; in TEST_F() local
465 metrics_.RegisterDevice(kInterfaceIndex, Technology::kCellular); in TEST_F()
466 metrics_.NotifyDeviceDisableStarted(kInterfaceIndex); in TEST_F()
467 metrics_.NotifyDeviceDisableFinished(kInterfaceIndex); in TEST_F()
477 const int kInterfaceIndex = 1; in TEST_F() local
478 metrics_.RegisterDevice(kInterfaceIndex, Technology::kCellular); in TEST_F()
[all …]
Darp_client_unittest.cc45 ArpClientTest() : client_(kInterfaceIndex) {} in ArpClientTest()
66 static const int kInterfaceIndex; member in shill::ArpClientTest
90 const int ArpClientTest::kInterfaceIndex = 123; member in shill::ArpClientTest
144 IsLinkAddress(kInterfaceIndex, ByteString()), in StartClientWithFD()
151 EXPECT_EQ(kInterfaceIndex, GetInterfaceIndex()); in TEST_F()
273 IsLinkAddress(kInterfaceIndex, remote_mac), in TEST_F()
307 IsLinkAddress(kInterfaceIndex, broadcast_mac), in TEST_F()
Deap_listener_unittest.cc45 EapListenerTest() : listener_(&dispatcher_, kInterfaceIndex) {} in EapListenerTest()
69 static const int kInterfaceIndex; member in shill::EapListenerTest
93 const int EapListenerTest::kInterfaceIndex = 123; member in shill::EapListenerTest
127 Bind(fd, IsEapLinkAddress(kInterfaceIndex), sizeof(sockaddr_ll))) in StartListenerWithFD()
135 EXPECT_EQ(kInterfaceIndex, GetInterfaceIndex()); in TEST_F()
/system/connectivity/apmanager/
Ddhcp_server_unittest.cc124 const int kInterfaceIndex = 1; in TEST_F() local
129 .WillOnce(Return(kInterfaceIndex)); in TEST_F()
131 AddInterfaceAddress(kInterfaceIndex, _, _, _)).Times(1); in TEST_F()
133 SetInterfaceFlags(kInterfaceIndex, IFF_UP, IFF_UP)).Times(1); in TEST_F()
/system/connectivity/shill/vpn/
Dthird_party_vpn_driver_unittest.cc54 kInterfaceIndex, Technology::kVPN)) {} in ThirdPartyVpnDriverTest()
72 static const int kInterfaceIndex; member in shill::ThirdPartyVpnDriverTest
88 const int ThirdPartyVpnDriverTest::kInterfaceIndex = 123; member in shill::ThirdPartyVpnDriverTest
110 EXPECT_FALSE(driver_->ClaimInterface("eth1", kInterfaceIndex)); in TEST_F()
111 EXPECT_TRUE(driver_->ClaimInterface(interface, kInterfaceIndex)); in TEST_F()
116 EXPECT_EQ(kInterfaceIndex, driver_->device_->interface_index()); in TEST_F()
247 kInterfaceName, kInterfaceIndex, Technology::kVPN); in TEST_F()
Dl2tp_ipsec_driver_unittest.cc70 kInterfaceName, kInterfaceIndex)), in L2TPIPSecDriverTest()
90 static const int kInterfaceIndex; member in shill::L2TPIPSecDriverTest
211 const int L2TPIPSecDriverTest::kInterfaceIndex = 123; member in shill::L2TPIPSecDriverTest
661 .WillOnce(Return(kInterfaceIndex)); in TEST_F()
663 CreatePPPDevice(_, _, _, _, kInterfaceName, kInterfaceIndex)) in TEST_F()
694 .WillOnce(Return(kInterfaceIndex)); in TEST_F()
Dvpn_provider_unittest.cc195 const int kInterfaceIndex = 1; in TEST_F() local
205 kInterfaceIndex)); in TEST_F()
219 EXPECT_TRUE(provider_.OnDeviceInfoAvailable(kInterfaceName, kInterfaceIndex)); in TEST_F()
Dopenvpn_driver_unittest.cc115 kInterfaceName, kInterfaceIndex, Technology::kVPN)), in OpenVPNDriverTest()
155 static const int kInterfaceIndex; member in shill::OpenVPNDriverTest
290 const int OpenVPNDriverTest::kInterfaceIndex = 123; member in shill::OpenVPNDriverTest
1133 kInterfaceIndex)); in TEST_F()
1148 EXPECT_TRUE(driver_->ClaimInterface(kInterfaceName, kInterfaceIndex)); in TEST_F()
1150 EXPECT_EQ(kInterfaceIndex, driver_->device_->interface_index()); in TEST_F()
1249 EXPECT_CALL(device_info_, DeleteInterface(kInterfaceIndex)); in TEST_F()
1259 EXPECT_CALL(device_info_, DeleteInterface(kInterfaceIndex)); in TEST_F()
1376 EXPECT_CALL(*device_info, DeleteInterface(kInterfaceIndex)) in TEST_F()
1380 OpenVPNDriver::OnOpenVPNExited(weak, kInterfaceIndex, kExitStatus); in TEST_F()
[all …]
/system/connectivity/shill/ethernet/
Dethernet_unittest.cc82 kInterfaceIndex)), in EthernetTest()
137 static const int kInterfaceIndex; member in shill::EthernetTest
151 SetInterfaceFlags(kInterfaceIndex, IFF_UP, IFF_UP)); in StartEthernet()
242 const int EthernetTest::kInterfaceIndex = 123; member in shill::EthernetTest
/system/connectivity/shill/net/
Drtnl_message_unittest.cc752 const int kInterfaceIndex = 0x1234; in TEST_F() local
758 kInterfaceIndex, in TEST_F()
766 EXPECT_EQ(kInterfaceIndex, msg.interface_index()); in TEST_F()
/system/connectivity/shill/cellular/
Dcellular_unittest.cc384 const int kInterfaceIndex = -1; in FakeUpConnectedPPP() local
387 nullptr, kInterfaceName, kInterfaceIndex)); in FakeUpConnectedPPP()
1529 const int kInterfaceIndex = 1; in TEST_F() local
1534 nullptr, kInterfaceName, kInterfaceIndex); in TEST_F()
1537 .WillOnce(Return(kInterfaceIndex)); in TEST_F()
1540 CreatePPPDevice(_, _, _, _, kInterfaceName, kInterfaceIndex)) in TEST_F()
1552 .WillOnce(Return(kInterfaceIndex)); in TEST_F()
/system/connectivity/shill/wifi/
Dwifi_unittest.cc136 const int kInterfaceIndex = 1234; variable
483 manager(), "wifi", "", kInterfaceIndex)) { in WiFiPropertyTest()
586 kDeviceName, kDeviceAddress, kInterfaceIndex)), in WiFiObjectTest()