Home
last modified time | relevance | path

Searched refs:DNSServerTester (Results 1 – 8 of 8) sorted by relevance

/system/connectivity/shill/
Ddns_server_tester.cc40 const char DNSServerTester::kDNSTestHostname[] = "www.gstatic.com";
42 const int DNSServerTester::kDNSTestRetryIntervalMilliseconds = 60000;
44 const int DNSServerTester::kDNSTimeoutMilliseconds = 5000;
46 DNSServerTester::DNSServerTester(ConnectionRefPtr connection, in DNSServerTester() function in shill::DNSServerTester
56 dns_client_callback_(Bind(&DNSServerTester::DNSClientCallback, in DNSServerTester()
66 DNSServerTester::~DNSServerTester() { in ~DNSServerTester()
70 void DNSServerTester::Start() { in Start()
77 void DNSServerTester::StartAttempt(int delay_ms) { in StartAttempt()
78 start_attempt_.Reset(Bind(&DNSServerTester::StartAttemptTask, in StartAttempt()
83 void DNSServerTester::StartAttemptTask() { in StartAttemptTask()
[all …]
Ddns_server_tester_unittest.cc73 new DNSServerTester(connection_.get(), in SetUp()
88 MOCK_METHOD1(ResultCallback, void(const DNSServerTester::Status status));
89 Callback<void(const DNSServerTester::Status)>& result_callback() { in result_callback()
94 Callback<void(const DNSServerTester::Status)> result_callback_;
97 DNSServerTester* dns_server_tester() { return dns_server_tester_.get(); } in dns_server_tester()
114 std::unique_ptr<DNSServerTester> dns_server_tester_;
145 ResultCallback(DNSServerTester::kStatusFailure)).Times(1); in TEST_F()
154 ResultCallback(DNSServerTester::kStatusSuccess)).Times(1); in TEST_F()
155 dns_server_tester()->CompleteAttempt(DNSServerTester::kStatusSuccess); in TEST_F()
160 ResultCallback(DNSServerTester::kStatusSuccess)).Times(1); in TEST_F()
[all …]
Ddns_server_tester.h50 class DNSServerTester {
57 DNSServerTester(ConnectionRefPtr connection,
62 virtual ~DNSServerTester();
93 base::WeakPtrFactory<DNSServerTester> weak_ptr_factory_;
100 DISALLOW_COPY_AND_ASSIGN(DNSServerTester);
Dmock_dns_server_tester.cc27 : DNSServerTester(connection, in MockDNSServerTester()
31 base::Callback<void(const DNSServerTester::Status)>()) {} in MockDNSServerTester()
Dmock_dns_server_tester.h27 class MockDNSServerTester : public DNSServerTester {
Ddevice.h602 const base::Callback<void(const DNSServerTester::Status)>& callback);
761 void FallbackDNSResultCallback(const DNSServerTester::Status status);
764 void ConfigDNSResultCallback(const DNSServerTester::Status status);
851 std::unique_ptr<DNSServerTester> dns_server_tester_;
Ddevice.cc1466 const Callback<void(const DNSServerTester::Status)>& callback) { in StartDNSTest()
1473 dns_server_tester_.reset(new DNSServerTester(connection_, in StartDNSTest()
1486 void Device::FallbackDNSResultCallback(const DNSServerTester::Status status) { in FallbackDNSResultCallback()
1489 if (status == DNSServerTester::kStatusSuccess) { in FallbackDNSResultCallback()
1512 void Device::ConfigDNSResultCallback(const DNSServerTester::Status status) { in ConfigDNSResultCallback()
1515 if (status == DNSServerTester::kStatusFailure) { in ConfigDNSResultCallback()
Ddevice_unittest.cc146 const base::Callback<void(const DNSServerTester::Status)>& callback));
168 const base::Callback<void(const DNSServerTester::Status)>& callback) { in DeviceStartDNSTest()
1947 void InvokeFallbackDNSResultCallback(DNSServerTester::Status status) { in InvokeFallbackDNSResultCallback()
1950 void InvokeConfigDNSResultCallback(DNSServerTester::Status status) { in InvokeConfigDNSResultCallback()
2427 InvokeFallbackDNSResultCallback(DNSServerTester::kStatusFailure); in TEST_F()
2442 InvokeFallbackDNSResultCallback(DNSServerTester::kStatusSuccess); in TEST_F()
2478 InvokeFallbackDNSResultCallback(DNSServerTester::kStatusSuccess); in TEST_F()
2493 InvokeConfigDNSResultCallback(DNSServerTester::kStatusFailure); in TEST_F()
2520 InvokeConfigDNSResultCallback(DNSServerTester::kStatusSuccess); in TEST_F()