Lines Matching refs:modem_
69 modem_(
79 modem_->rtnl_handler_ = &rtnl_handler_;
86 std::unique_ptr<StrictModem> modem_;
92 EXPECT_EQ(kService, modem_->service_);
93 EXPECT_EQ(kPath, modem_->path_);
105 modem_.reset();
119 EXPECT_CALL(*modem_, GetLinkName(_, _)).WillRepeatedly(DoAll(
129 EXPECT_CALL(*modem_, GetModemInterface()).
131 modem_->CreateDeviceFromModemProperties(properties);
132 EXPECT_FALSE(modem_->device_.get());
150 EXPECT_CALL(*modem_,
161 modem_->OnDeviceInfoAvailable(kLinkName);
163 EXPECT_TRUE(modem_->device_.get());
165 // Add expectations for the eventual |modem_| destruction.
173 modem_->OnDeviceInfoAvailable(kLinkName);
174 EXPECT_FALSE(modem_->device_.get());
180 EXPECT_CALL(*modem_, ConstructCellular(_, _, _)).Times(0);
181 EXPECT_CALL(*modem_, GetModemInterface()).
185 modem_->CreateDeviceFromModemProperties(properties);
186 EXPECT_FALSE(modem_->device_.get());
191 EXPECT_CALL(*modem_, GetLinkName(_, _)).WillOnce(DoAll(
196 modem_->CreateDeviceFromModemProperties(properties);
197 EXPECT_FALSE(modem_->device_.get());
200 EXPECT_CALL(*modem_, GetLinkName(_, _)).WillOnce(DoAll(
210 modem_->CreateDeviceFromModemProperties(properties);
211 EXPECT_FALSE(modem_->device_.get());
223 // |modem_| will take ownership.
233 EXPECT_CALL(*modem_, GetModemInterface()).
236 EXPECT_CALL(*modem_, GetLinkName(_, _)).WillOnce(Return(false));
237 EXPECT_CALL(*modem_,
244 modem_->CreateDeviceFromModemProperties(properties);
245 EXPECT_TRUE(modem_->device_.get());
247 // Add expectations for the eventual |modem_| destruction.
258 EXPECT_FALSE(modem_->GetDeviceParams(&mac_address, &interface_index));
264 EXPECT_FALSE(modem_->GetDeviceParams(&mac_address, &interface_index));
269 EXPECT_FALSE(modem_->GetDeviceParams(&mac_address, &interface_index));
276 EXPECT_TRUE(modem_->GetDeviceParams(&mac_address, &interface_index));