Searched refs:device_claimer_ (Results 1 – 4 of 4) sorted by relevance
/system/connectivity/shill/ |
D | device_claimer_unittest.cc | 42 device_claimer_(kServiceName, &device_info_, false) {} in DeviceClaimerTest() 46 DeviceClaimer device_claimer_; member in shill::DeviceClaimerTest 51 EXPECT_FALSE(device_claimer_.DevicesClaimed()); in TEST_F() 56 EXPECT_TRUE(device_claimer_.Claim(kTestDevice1Name, &error)); in TEST_F() 58 EXPECT_TRUE(device_claimer_.DevicesClaimed()); in TEST_F() 64 EXPECT_TRUE(device_claimer_.Claim(kTestDevice2Name, &error)); in TEST_F() 66 EXPECT_TRUE(device_claimer_.DevicesClaimed()); in TEST_F() 74 EXPECT_FALSE(device_claimer_.Claim(kTestDevice1Name, &error)); in TEST_F() 82 EXPECT_TRUE(device_claimer_.Release(kTestDevice1Name, &error)); in TEST_F() 85 EXPECT_TRUE(device_claimer_.DevicesClaimed()); in TEST_F() [all …]
|
D | manager.cc | 707 (!device_claimer_ || !device_claimer_->default_claimer())) { in ClaimDevice() 714 if (!device_claimer_) { in ClaimDevice() 717 device_claimer_.reset( in ClaimDevice() 722 if (device_claimer_->name() != claimer_name) { in ClaimDevice() 725 ". Claimer " + device_claimer_->name() + in ClaimDevice() 731 if (!device_claimer_->Claim(device_name, error)) { in ClaimDevice() 753 if (!device_claimer_) { in ReleaseDevice() 760 if (device_claimer_->name() != claimer_name) { in ReleaseDevice() 763 ". Claimer " + device_claimer_->name() + in ReleaseDevice() 770 device_claimer_->Release(device_name, error); in ReleaseDevice() [all …]
|
D | manager.h | 903 std::unique_ptr<DeviceClaimer> device_claimer_; variable
|
D | manager_unittest.cc | 348 manager()->device_claimer_.reset(device_claimer); in SetDeviceClaimer() 352 EXPECT_NE(nullptr, manager()->device_claimer_.get()); in VerifyPassiveMode() 353 EXPECT_TRUE(manager()->device_claimer_->default_claimer()); in VerifyPassiveMode() 4866 EXPECT_EQ(nullptr, manager()->device_claimer_.get()); in TEST_F() 4931 EXPECT_NE(nullptr, manager()->device_claimer_.get()); in TEST_F() 5038 EXPECT_NE(nullptr, manager()->device_claimer_.get()); in TEST_F() 5050 EXPECT_EQ(nullptr, manager()->device_claimer_.get()); in TEST_F()
|