History log of /system/netd/tests/netd_test.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
e760181ff41a5f4526e4f543f3838eb05690e2aa 28-Apr-2017 Ben Schwartz <bemasc@google.com> Support RFC 7858 DNS over TLS

This change adds the core capability for DNS over TLS, and creates
private APIs for activating it, but does not provide any way to
activate the functionality in a development environment or on a
real device.

Based on https://android-review.googlesource.com/#/c/373776/

Test: Complete unit+integration tests. Manual tests look good.
Bug: 34953048
Change-Id: Ib99ac1f631fd2c2c8fbf53bdb05f67f8be7713ac
/system/netd/tests/netd_test.cpp
1ad2258fcf7cd52b999c69e1ea66609560674493 05-May-2017 Yi Kong <yikong@google.com> Remove unused lambda captures

Test: build
Bug: 37752547
Change-Id: I9503cc41d87cef693d568c4a61b04a01bdcd2f32
/system/netd/tests/netd_test.cpp
9cc00fcf163ffd2800f727d11c13c0efd9babbc9 07-Dec-2016 Elliott Hughes <enh@google.com> Remove unused references to system/extras' libtestutils.

Bug: N/A
Test: builds
Change-Id: I50f7c06f9d2a3187e6e43dc54070b0473cd1414b
/system/netd/tests/netd_test.cpp
f610646420ab69d57635928ebc827df7aa8f3f48 24-Nov-2016 Erik Kline <ek@google.com> Cache flushing no longer occurs updating DNS for a single netid

Test: runtest netd_integration_test.cpp
Bug: 32517984
Change-Id: I6a82824ab423a07797291e7b4701350c88809117
/system/netd/tests/netd_test.cpp
8916710adef408ef7643f20f67429c48393dc473 26-Oct-2016 Michal Karpinski <mkarpinski@google.com> Add null check for hp in DnsProxyListener::GetHostByNameHandler

Bug: 32399924
Bug: 29748723
Test: runtest -x netd_integration_test.cpp

(cherry picked from commit 7a8a601190f948f18b1cc8c043f3a265c1ed183e)

Change-Id: I1faedded9d0cccc5db7fbdcb2498ad2ec7dbefeb
/system/netd/tests/netd_test.cpp
2cf561722c2661cc0d4db502a44a3021609f307e 13-Sep-2016 Robin Lee <rgl@google.com> Benchmarks for network metrics reporting

Bug: 29748723
Test: this is an APCT test.

(cherry picked from commit 484dac1d071c7476895c4a3184e8dbdd7b63e524)

Change-Id: I482a7d5c15210906069e0fe7ef55ab3f21bfc127
/system/netd/tests/netd_test.cpp
d67c77f56ae093f60f30c640cf0ba3b32822b794 15-Sep-2016 Robin Lee <rgl@google.com> Fix getaddrinfo test to use random mapping ids

This seems to have been intended but it's just using the loop index. In
fact the only thing the random index is used for is an assert to check
that it is a valid index.

Also stops the test segfaulting if num_queries > num_hosts

(cherry picked from commit c4aba0ab2e9539a5e185e3800d47b3fcda9af779)

Change-Id: I0c86f50b60745e738fb43c841a74c7181ec21094
/system/netd/tests/netd_test.cpp
0452cb569ebeface13f77c548afb35cdfcbe48d5 30-May-2016 Pierre Imai <imaipi@google.com> Do not configure more DNS servers than supported.

BUG: 28984564
Change-Id: I1b580d725f0aafe887db894e19971cc29adf8951
/system/netd/tests/netd_test.cpp
ee335ef2333aaa09290ed8cf4a65f8e6e8b21c46 06-May-2016 Pierre Imai <imaipi@google.com> Test that changing the DNS search paths works.

Add a test to verify that changing the DNS search paths on their own,
without also changing the DNS servers, works as expected.

BUG: 28437641

Change-Id: Ie3b6be119f5d33c7782c250a83d24f26c776825e
(cherry picked from commit 592303cf22e1139ecb32fb7589abdc6bc6d14354)
/system/netd/tests/netd_test.cpp
3a272070fc318ef1a7a5a04e500483f1a7c629a8 19-Apr-2016 Pierre Imai <imaipi@google.com> Add dumpsys support to ResolverController

BUG: 25731675

Change-Id: I1c715368b1f2d5e732528cd226b3f69792b75321
/system/netd/tests/netd_test.cpp
beedec3bc42d6f40a2c83a65522e85b5ff046f79 12-Apr-2016 Pierre Imai <imaipi@google.com> Add two Netd binder calls to set/get resolver config.

setResolverConfiguration() sets the name servers, search domains,
and resolver parameters.
getResolverInfo() returns the configured information and also the
statistics for each server.
Also includes tests for the new functionality.

BUG: 25731675

Change-Id: Idde486f36bb731f9edd240d62dc1795f8e621fe6
/system/netd/tests/netd_test.cpp
6f4f86dac3dd5b57a4f6f0f573945b3809f4fad5 08-Apr-2016 Pierre Imai <imaipi@google.com> Fix netd_test by removing flush cache call.

Change-Id: Iba3ff9da55cbc709d12b12b9c65dbc565bbd2828
/system/netd/tests/netd_test.cpp
95f5f94aa4c10893b9118b9b79138a1500b5d85b 09-Mar-2016 Pierre Imai <imaipi@google.com> DO NOT MERGE: Let netd to use the new set_nameservers_for_net call.

Also add more test for netd's resolver.

(cherry picked from commit 12f6baf16328cdeea8f079616c2c44ac28f82496)

Change-Id: I446f11b3462522ec3a18c2a3ec9401ad6cf77e8b
/system/netd/tests/netd_test.cpp
b19fcc7c65e9715d85a40ac3c6c044a395e8b6fe 11-Mar-2016 Pierre Imai <imaipi@google.com> Fix netd tests for use with APCT

Change-Id: Ica37a812c37036ffecd45b8f078d8ed9928d01fc
/system/netd/tests/netd_test.cpp
ccf7b99be6dd256e6743b34cf497ac1db5b18569 25-Feb-2016 Pierre Imai <imaipi@google.com> Minor improvements for netd_test

Change-Id: Icd89045c7099949ea66bd88b2ce5551301366640
/system/netd/tests/netd_test.cpp
904ce3a4fadf47dd2490e274febcb38844d994a2 18-Feb-2016 Pierre Imai <imaipi@google.com> Add test for DNS resolver code in netd.

Change-Id: I92466868ae32ee67fb5d17c7758a7841f614e827
/system/netd/tests/netd_test.cpp