diff options
author | Peter Qiu <zqiu@chromium.org> | 2014-05-23 15:45:42 -0700 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-07-10 21:22:10 +0000 |
commit | a89154bfedfd8872242083ffe4f084fdc774c078 (patch) | |
tree | d150b6e00e4d5b89a39cfaa742c043fc4f17c45f /mock_service.h | |
parent | 98a6b0908fdf31b1ee2e28a9634a981c15fadbfb (diff) | |
download | shill-a89154bfedfd8872242083ffe4f084fdc774c078.tar.gz |
shill: Support of DNS auto fallback
Automatically switch to fallback DNS server when broken DNS setting
is detected. This feature is disabled by default (due to property
defaulting to "false").
BUG=chromium:377056
TEST=unit tests, manual test
1. Manually update the code to allow DNS auto fallback.
2. Connect a chrome device to GoogleGuest.
3. Update the name servers setting to an invalid
DNS server "192.168.1.1"
4. Browse to "chrome://net-internals/#dns", and verify
the nameserver changed from "192.168.1.1" to Google's
DNS servers "8.8.8.8" and "8.8.4.4" within a minute.
CQ-DEPEND=CL:201412
Change-Id: I31dbaf715b5b11dd2f736e0664ee432e55bdeeb9
Reviewed-on: https://chromium-review.googlesource.com/207155
Reviewed-by: Paul Stewart <pstew@chromium.org>
Commit-Queue: Peter Qiu <zqiu@chromium.org>
Tested-by: Peter Qiu <zqiu@chromium.org>
Diffstat (limited to 'mock_service.h')
-rw-r--r-- | mock_service.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mock_service.h b/mock_service.h index b72bef46..7396f07c 100644 --- a/mock_service.h +++ b/mock_service.h @@ -65,6 +65,8 @@ class MockService : public Service { MOCK_CONST_METHOD0(technology, Technology::Identifier()); MOCK_METHOD1(OnPropertyChanged, void(const std::string &property)); MOCK_METHOD0(ClearExplicitlyDisconnected, void()); + MOCK_CONST_METHOD0(is_dns_auto_fallback_allowed, bool()); + MOCK_METHOD0(NotifyIPConfigChanges, void()); // Set a string for this Service via |store|. Can be wired to Save() for // test purposes. |