Home | History | Annotate | Download | only in shill

Lines Matching refs:dns_client_

91     if (dns_client_.get()) {
92 dns_client_->Stop();
104 dns_client_->ReceiveDNSReplyCB(dns_client_.get(), ares_result_, 0,
109 dns_client_->HandleDNSRead(kAresFd);
113 dns_client_->HandleDNSWrite(kAresFd);
117 dns_client_->HandleTimeout();
121 dns_client_->HandleCompletion();
125 dns_client_.reset(new DNSClient(IPAddress::kFamilyIPv4,
131 dns_client_->ares_ = &ares_;
132 dns_client_->time_ = &time_;
155 // These expectations are fulfilled when dns_client_->Start() is called.
174 ASSERT_TRUE(dns_client_->Start(kGoodName, &error));
186 ASSERT_TRUE(dns_client_->address_.IsValid());
187 IPAddress ipaddr(dns_client_->address_.family());
189 EXPECT_TRUE(ipaddr.Equals(dns_client_->address_));
199 EXPECT_TRUE(dns_client_->address_.IsDefault());
212 EXPECT_TRUE(dns_client_->address_.family() == IPAddress::kFamilyIPv4);
213 EXPECT_TRUE(dns_client_->address_.IsDefault());
214 EXPECT_FALSE(dns_client_->resolver_state_.get());
231 std::unique_ptr<DNSClient> dns_client_;
262 EXPECT_FALSE(dns_client_->Start(kGoodName, &error));
276 EXPECT_FALSE(dns_client_->Start(kGoodName, &error));
288 EXPECT_FALSE(dns_client_->Start(kGoodName, &error));
296 ASSERT_FALSE(dns_client_->Start(kGoodName, &error));
354 ASSERT_FALSE(dns_client_->Start(kGoodName, &error));
412 ASSERT_TRUE(dns_client_->Start(kGoodName, &error));
433 ASSERT_TRUE(dns_client_->Start(kGoodName, &error));
436 dns_client_->Stop();