summaryrefslogtreecommitdiff
path: root/tor-chanmgr/src/testing.rs
Commit message (Collapse)AuthorAgeFilesLines
* Add the "unreachable_pub" lint.Nick Mathewson2021-05-181-9/+10
| | | | | | This is a somewhat obnoxious change in its scope and requirements, but it makes it easier to understand what the real public and private parts of our APIs are.
* Prefer "relay" to "server" when appropriate.Nick Mathewson2021-05-181-1/+1
|
* Much-improved tests for tor_chanmgr::builderNick Mathewson2021-04-301-0/+56
| | | | | | Now that we have MockNetRuntime and MockSleepRuntime, we can use them to test a channel-builder by replaying the contents of a TLS stream that it will accept.
* Refactor and simplify ChanMgr to use AbstractChanMgr.Nick Mathewson2021-04-231-92/+0
|
* Rename Rsa{Identity,Signature} to fix clippy warning.Nick Mathewson2021-03-291-2/+2
|
* Refactor first-hop handling types a bitNick Mathewson2020-11-171-2/+2
| | | | | | This lets us have the notion of "get the first hop of a path as some kind of a chantarget", which will make it easier to write other path types.
* Turn the channel "closed" method into an AtomicBoolNick Mathewson2020-11-131-2/+2
| | | | This lets us make the test for closed channels non-async.
* Move a few immutable fields from ChannelImpl outside the lock.Nick Mathewson2020-11-131-1/+1
| | | | | Since these don't change while the channel is alive, we don't need the lock to protect them.
* Make the Arc-ness of channels more explicit.Nick Mathewson2020-11-121-15/+7
| | | | | | Previously every channel was a secret Arc<>, which I think is bad style, and which stopped us from using weak references in other places.
* Use anyhow in tor-circmgr and tor-chanmgrNick Mathewson2020-11-111-4/+2
|
* Add missing testing.rs fileNick Mathewson2020-10-301-0/+102