summaryrefslogtreecommitdiff
path: root/crates/tor-netdir/src/testprovider.rs
Commit message (Collapse)AuthorAgeFilesLines
* Rename recommended_protocols to protocol_statuses.Nick Mathewson2025-04-161-1/+1
| | | | | This name reflects its purpose better than the original one, since it includes required protocols as well as recommended ones.
* netdir: Add a recommended_protocols() to NetDirProviderNick Mathewson2025-04-161-0/+9
|
* tor-netdir: Increase channel size to so set_netidr_and_notify doesn't block.Gabriela Moldovan2024-04-091-1/+1
| | | | | `TestNetDirProvider::set_netidr_and_notify` blocks if the channel is full, so let's give it a non-zero size.
* tor-netdir: Implement TestNetDirProvider::events().Gabriela Moldovan2024-04-051-8/+52
|
* Mock implementation of a NetDirProvider for testing.Nick Mathewson2022-11-081-0/+59
I'm about to remove the old testing APIs from GurdMgr that took in a NetDir in each function: adding this will make that possible.