summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge branch 'chanmgr_refactor_and_test'Nick Mathewson2021-04-2311-684/+922
|\ | | | | | | | | | | This is an apparent test coverage reduction in chanmgr, but that's only apparent: it actually throws away a lot of untested code that was previously hidden.
| * Another test in ChanMgr, for TargetInfo.Nick Mathewson2021-04-231-0/+19
| |
| * Refactor and simplify ChanMgr to use AbstractChanMgr.Nick Mathewson2021-04-239-680/+176
| |
| * Full documentations on the new parts of ChanMgr.Nick Mathewson2021-04-232-24/+157
| |
| * Start on tests for reactored ChanMsg.Nick Mathewson2021-04-233-50/+350
| |
| * Begin refactoring ChanMgr to have better separation of concernsNick Mathewson2021-04-224-0/+290
|/ | | | | Additionally: Use futures::future::Shared instead of event_listener.
* Define a helper for replacing the sleep functionality of a runtime.Nick Mathewson2021-04-223-0/+93
|
* Stop using anyhow in tor_chanmgr.Nick Mathewson2021-04-224-17/+33
| | | | | It seemed like a good idea at first, but we need to be able to tell the difference between these error types more easily.
* Add a yield_now() call to MockSleepProvider::advance()Nick Mathewson2021-04-212-15/+26
| | | | | | | | This is almost always what we want for testing: the task that is advancing time wants to give the other tasks a chance to run. Doing this turns MockSleepProvider::advance() into an async function.
* tor_rtcompat: add a yield_now() function.Nick Mathewson2021-04-212-0/+83
|
* More tests in tor-configNick Mathewson2021-04-212-0/+74
|
* Only list the supported encodings in the `Accept-Encoding` headerNick Mathewson2021-04-211-10/+27
| | | | Closes #113
* Use stream_pair() to write a test for tor_dirclient::downloadNick Mathewson2021-04-211-0/+50
|
* Add a "socketpair"-style linked-reader/writer implementation for testingNick Mathewson2021-04-213-1/+261
|
* Make zstd and xz compression optional, but on-by-default.Nick Mathewson2021-04-212-3/+17
|
* Disable a test on OSX; see arti#111Nick Mathewson2021-04-201-0/+5
|
* Test for tor_dirclient::read_headersNick Mathewson2021-04-201-0/+39
|
* Tests for tor_dirclient::read_and_decompressNick Mathewson2021-04-201-3/+86
|
* Test for tor_dirclient::read_until_limited()Nick Mathewson2021-04-201-0/+35
|
* tor-dirclient: more requests.rs testsNick Mathewson2021-04-201-10/+69
|
* Tests for sleep_until_wallclock.Nick Mathewson2021-04-201-6/+175
|
* A little more testing for tor_rtcompat::mock::time.Nick Mathewson2021-04-201-0/+25
|
* Add support for simulating the passage of time.Nick Mathewson2021-04-193-0/+245
|
* Add "now" functions to SleepProvider.Nick Mathewson2021-04-192-2/+16
|
* rtcompat: remove an unused conversion function.Nick Mathewson2021-04-191-5/+0
|
* Simple unit tests for tor_rtcompat: at last!Nick Mathewson2021-04-193-0/+260
|
* rtcompat: mark some outputs as must-use.Nick Mathewson2021-04-192-0/+3
|
* Clarify what TlsConnector doesn't validate.Nick Mathewson2021-04-193-7/+12
|
* Flatten async_std impl module slightly.Nick Mathewson2021-04-191-31/+30
|
* Flatten tokio TcpProvider implementation a bit.Nick Mathewson2021-04-191-64/+35
|
* Add a local_addr() function for TcpListener.Nick Mathewson2021-04-183-1/+12
|
* Fix some broken rustdoc links.Nick Mathewson2021-04-183-5/+5
|
* tor_rtcompat: Documentation and cleanupsNick Mathewson2021-04-175-71/+240
|
* Remove the no-longer-needed "global runtime" code.Nick Mathewson2021-04-175-68/+54
|
* Remove some cruft in tor_rtcompat::implsNick Mathewson2021-04-172-27/+4
|
* Remove need for async_trait in SleepProviderExtNick Mathewson2021-04-171-11/+42
|
* Move timer functions into an extension trait.Nick Mathewson2021-04-1710-143/+136
|
* Move around the public modules in tor_rtcompat.Nick Mathewson2021-04-1714-15/+22
|
* Remove all non-runtime methods in tor_rtcompat.Nick Mathewson2021-04-1611-89/+132
|
* Add a "Runtime" parameter to all the manager types.Nick Mathewson2021-04-1612-58/+105
| | | | | This is a big change, but it is a step towards our goal of removing tor_rtcompat:: calls directly.
* rtcompat: Make TLS functionality use Runtime traits.Nick Mathewson2021-04-1610-74/+108
| | | | | Now there is nothing in principle that you couldn't access from a Runtime implementation.
* Move the "sleep()" function from task to timer.Nick Mathewson2021-04-162-11/+9
|
* Make incoming Streams of TcpStream a real type for each backend.Nick Mathewson2021-04-165-44/+92
| | | | | This makes things a little more complicated for AsyncStd, and a little simpler for Tokio.
* Port tor_rtcompat::net to use Runtime objects.Nick Mathewson2021-04-163-26/+56
|
* Port tor_rtcompat::timer to use Runtime objects.Nick Mathewson2021-04-163-29/+60
|
* Begin a refactoring of tor-rtcompat to use runtime objects.Nick Mathewson2021-04-165-27/+187
| | | | | | | | So far, all traits are defined (I hope) and the task api is ported. With time I want to have none of the current "global runtime" APIs exposed, and just use Runtime objects instead. But that isn't just yet.
* rtcompat: rename traits module to impl_traits.Nick Mathewson2021-04-162-2/+2
|
* upgrade dalek dependenciesNick Mathewson2021-04-141-2/+2
|
* Fix a compilation problem with async_std.Nick Mathewson2021-04-131-1/+1
| | | | Thank you, CI!
* Replace tor-decompress with async-compression crate.Nick Mathewson2021-04-137-439/+50
| | | | This lets us simplify tor-dirclient a fair bit. Closes #79.