History log of /system/connectivity/shill/dns_server_proxy.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
9429723aad30865ab4604a6074dece9c6d45c0cc 07-Oct-2015 Peter Qiu <zqiu@google.com> Mock out DNSServerProxy in unittest

Use a factory for DNSServerProxy creation, so that it can be easily
mocked out in the unittest.

Bug: 24711640
TEST=weave setup still works on dragonboard
TEST=ConnectionTest.* passed on dragonboard
TEST=Run unittest for Chrome OS

Change-Id: Ib03029a00b21ff3f6c4fd47dcbd1df8010bc0f05
/system/connectivity/shill/dns_server_proxy.h
d5d3482e261beaee1a13622143d4abf728165fb9 01-Oct-2015 Peter Qiu <zqiu@google.com> Support DNS server proxy on Android

There is no support for /etc/resolv.conf on Android, so a DNS
server proxy is needed to handle/redirect client DNS requests.
dnsmasq will be used to setup as a DNS server proxy, and it will
run under the "system" user.

Also add a special handling for the case when DHCP doesn't provide
DNS server addresses. We will default to use Google's DNS server
addresses in this case.

Not sure why we never had a problem with this scenario on Chrome OS,
so make this handling Android specific for now.

TODO: update connection_unittest.cc for Android.

Bug: 24543278
TEST=Manual test on dragonboard (ping to well known hosts)

Change-Id: I4573546a9987b1148a9c0e6157155a232be4f168
/system/connectivity/shill/dns_server_proxy.h