aboutsummaryrefslogtreecommitdiff
path: root/OperationLimiterTest.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Code Health: Make OperationLimiter genericKen Chen2023-02-041-0/+32
| | | | | | | | | | | Aosp/2071247 read an experimental flag max_queries_global in OperationLimiter::start(), making the generic class OperationLimiter specific. This commit adds a wrapper function to pass the global limiter, allowing OperationLimiter to remain generic. Bug: 230284143 Test: atest resolv_unit_test:OperationLimiterTest Change-Id: I7b14ace9d27a87b3832e1c807d762850feeab5fe
* Replace ResolvTestBase with common classs NetNativeTestBasePaul Hu2022-07-041-3/+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
* Test: Change to use test fixtures and log test life cycleMike Yu2022-06-231-3/+7
| | | | | | | | | | Some of the tests are defined by TEST() that can't be logged. Change to use TEST_F(). Bug: 223731710 Test: atest Test: doh_ffi_test Change-Id: Ic249256dccc27b65508a7bad8189c22c6e9c4fd1
* Move OperationLimiter to DnsResolverBernie Innocenti2020-11-271-0/+75
OperationLimiter logically belongs with its only customer, DnsResolver. I added OperationLimiter to libnetdutils for code sharing, but it turns out netd doesn't have any need for this because it doesn't include other threaded servers. Change-Id: Id48cd47c6d257b63a276efb91bd3b270357c8c13