Lines Matching refs:provider_
48 DHCPProviderTest() : provider_(DHCPProvider::GetInstance()) {
49 provider_->control_interface_ = &control_;
50 provider_->dispatcher_ = &dispatcher_;
57 provider_->configs_.clear();
58 provider_->recently_unbound_pids_.clear();
62 void RetireUnboundPID(int pid) { provider_->RetireUnboundPID(pid); }
65 DHCPProvider* provider_;
72 DHCPConfigRefPtr config = provider_->CreateIPv4Config(kDeviceName,
78 EXPECT_TRUE(provider_->configs_.empty());
85 provider_->root_ = temp_dir.path();
86 lease_file = provider_->root_.Append(base::StringPrintf(
92 provider_->DestroyLease(kDeviceName);
98 EXPECT_EQ(nullptr, provider_->GetConfig(kPid));
99 EXPECT_FALSE(provider_->IsRecentlyUnbound(kPid));
102 DHCPConfigRefPtr config = provider_->CreateIPv4Config(kDeviceName,
106 provider_->BindPID(kPid, config);
107 EXPECT_NE(nullptr, provider_->GetConfig(kPid));
108 EXPECT_FALSE(provider_->IsRecentlyUnbound(kPid));
112 provider_->UnbindPID(kPid);
113 EXPECT_EQ(nullptr, provider_->GetConfig(kPid));
114 EXPECT_TRUE(provider_->IsRecentlyUnbound(kPid));
117 EXPECT_EQ(nullptr, provider_->GetConfig(kPid));
118 EXPECT_FALSE(provider_->IsRecentlyUnbound(kPid));