aboutsummaryrefslogtreecommitdiff
path: root/ExperimentsTest.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Replace ResolvTestBase with common classs NetNativeTestBasePaul Hu2022-07-041-2/+2
| | | | | | | | | | NetNativeTestBase is a util class using for logging test life cycle. So replace ResolvTestBase with NetNativeTestBase which is same usage. Bug: 223731710 Test: cd packages/modules/DnsResolver then atest Change-Id: I5dd8d698ef98df254bcffba56d9f51cf5a35f231
* Logging life cycle of each testChiachang Wang2022-03-101-1/+2
| | | | | | | | | | | | | | It's helpful for debugging each test to observe the behavior between each test. Sample log: I resolv_private_dns_test: started: PrivateDnsDohTest#QueryFailover : I resolv_private_dns_test: finished: PrivateDnsDohTest#QueryFailover Test: atest resolv_integration_test Bug: 223731710 Change-Id: I0335baa1762d35355d20bdf7a707b590f8a95c0c
* Store flags in orderMike Yu2021-11-161-4/+4
| | | | | | | | | | As there are already 16 flags, and we are going to add one more flag, storing the flags in order would make the output of dumpsys dnsresolver look nicer. Bug: 205922706 Test: checked the output of dumpsys dnsresolver Change-Id: I2905bec795f08f514e1906198d5ca11a65fc458a
* Replace StringPrintf() with fmt::format()chenbruce2021-08-201-1/+0
| | | | | | Bug: 196298216 Test: cd packages/modules/DnsResolver && atest Change-Id: I581c282bba1527afd2be9daf925e9ec5bd2e5cd6
* Fix default value problem of DnsResolver Experiments#getFlag()Luke Huang2020-05-011-0/+30
| | | | | | | | | | | The default value of Experiments::getFlag() doesn't actually work because Experiments::updateInternal() wil also initial the property as 0. Use INT_MIN as the default value to represent the flag can't be found. Bug: 155042187 Test: atest Change-Id: Icc863b9a9d7b4cefca4dce23933c705a51299095
* Add Experiments to handle experiment flags logicLuke Huang2020-04-231-0/+122
update experiment flags everytime when a resolver network is created or destroyed. Bug: 135717624 Bug: 151698212 Test: atest Change-Id: I5375e78831c5994af74b9ecaca991f18db03eca6