Searched refs:mock_sockets_ (Results 1 – 3 of 3) sorted by relevance
/system/connectivity/shill/net/ |
D | netlink_socket_unittest.cc | 50 mock_sockets_ = new MockSockets(); in SetUp() 51 netlink_socket_.sockets_.reset(mock_sockets_); in SetUp() 55 EXPECT_CALL(*mock_sockets_, Socket(PF_NETLINK, SOCK_DGRAM, NETLINK_GENERIC)) in InitializeSocket() 57 EXPECT_CALL(*mock_sockets_, SetReceiveBuffer( in InitializeSocket() 59 EXPECT_CALL(*mock_sockets_, Bind(fd, _, sizeof(struct sockaddr_nl))) in InitializeSocket() 65 MockSockets* mock_sockets_; // Owned by netlink_socket_. member in shill::NetlinkSocketTest 94 EXPECT_CALL(*mock_sockets_, Close(kFakeFd)); in TEST_F() 101 EXPECT_CALL(*mock_sockets_, Socket(PF_NETLINK, SOCK_DGRAM, NETLINK_GENERIC)) in TEST_F() 103 EXPECT_CALL(*mock_sockets_, SetReceiveBuffer(_, _)).Times(0); in TEST_F() 104 EXPECT_CALL(*mock_sockets_, Bind(_, _, _)).Times(0); in TEST_F() [all …]
|
/system/connectivity/shill/ethernet/ |
D | ethernet_unittest.cc | 95 mock_sockets_(new StrictMock<MockSockets>()), in EthernetTest() 103 ethernet_->sockets_.reset(mock_sockets_); // Transfers ownership. in SetUp() 232 MockSockets* mock_sockets_; member in shill::EthernetTest 290 EXPECT_CALL(*mock_sockets_, Socket(_, _, _)).WillOnce(Return(kFakeFd)); in TEST_F() 291 EXPECT_CALL(*mock_sockets_, Ioctl(kFakeFd, SIOCETHTOOL, _)); in TEST_F() 292 EXPECT_CALL(*mock_sockets_, Close(kFakeFd)); in TEST_F()
|
/system/connectivity/shill/ |
D | device_info_unittest.cc | 148 mock_sockets_ = new MockSockets(); in SetSockets() 149 device_info_.set_sockets(mock_sockets_); in SetSockets() 201 MockSockets* mock_sockets_; // Owned by DeviceInfo. member in shill::DeviceInfoTest 1034 EXPECT_CALL(*mock_sockets_, Socket(PF_INET, SOCK_DGRAM, 0)).Times(0); in TEST_F() 1042 EXPECT_CALL(*mock_sockets_, Socket(PF_INET, SOCK_DGRAM, 0)) in TEST_F() 1056 EXPECT_CALL(*mock_sockets_, Socket(PF_INET, SOCK_DGRAM, 0)) in TEST_F() 1058 EXPECT_CALL(*mock_sockets_, Ioctl(kFd, SIOCGIFHWADDR, NotNull())) in TEST_F() 1060 EXPECT_CALL(*mock_sockets_, Close(kFd)); in TEST_F() 1090 EXPECT_CALL(*mock_sockets_, Socket(PF_INET, SOCK_DGRAM, 0)) in TEST_F() 1092 EXPECT_CALL(*mock_sockets_, in TEST_F() [all …]
|