Age | Commit message (Collapse) | Author | |
---|---|---|---|
2018-05-09 | Merge branch 'ticket26009' | Nick Mathewson | |
2018-05-06 | Add unit test for ..get_start_of_next_voting_interval(). | Nick Mathewson | |
This functionality was covered only accidentally by our voting-test code, and as such wasn't actually tested at all. The tests that called it made its coverage nondeterministic, depending on what time of day you ran the tests. Closes ticket 26014. | |||
2018-05-03 | Merge remote-tracking branch 'github/ticket25995' | Nick Mathewson | |
2018-05-03 | Merge remote-tracking branch 'isis/bug24660_r1' | Nick Mathewson | |
2018-05-03 | Basic unit tests for update_current_time(). | Nick Mathewson | |
This function is about to get more complicated, so we should track how it's working. | |||
2018-05-01 | Use a deterministic PRNG in test_circuit_timeout() | Nick Mathewson | |
I'd prefer not to do this for randomized tests, but as things stand with this test, it produces nondeterministic test coverage. Closes ticket 25995; bugfix on 0.2.2.2-alpha when this test was introduced. | |||
2018-04-23 | test: Add periodic events unit tests | David Goulet | |
Signed-off-by: David Goulet <dgoulet@torproject.org> | |||
2018-04-13 | Merge branch 'token_bucket_refactor_squashed' | Nick Mathewson | |
2018-04-13 | Add a new token-bucket backend abstraction, with tests | Nick Mathewson | |
This differs from our previous token bucket abstraction in a few ways: 1) It is an abstraction, and not a collection of fields. 2) It is meant to be used with monotonic timestamps, which should produce better results than calling gettimeofday over and over. | |||
2018-04-10 | Merge remote-tracking branch 'isis-github/bug25425_squashed2' | Nick Mathewson | |
2018-04-09 | test: Add testing module and some unittests for bridges.c. | Isis Lovecruft | |
This roughly doubles our test coverage of the bridges.c module. * ADD new testing module, .../src/test/test_bridges.c. * CHANGE a few function declarations from `static` to `STATIC`. * CHANGE one function in transports.c, transport_get_by_name(), to be mockable. * CLOSES #25425: https://bugs.torproject.org/25425 | |||
2018-04-06 | crypto: Refactor (P)RNG functionality into new crypto_rand module. | Isis Lovecruft | |
* ADD new /src/common/crypto_rand.[ch] module. * ADD new /src/common/crypto_util.[ch] module (contains the memwipe() function, since all crypto_* modules need this). * FIXES part of #24658: https://bugs.torproject.org/24658 | |||
2018-04-05 | Merge remote-tracking branch 'public/split_relay_crypto' | Nick Mathewson | |
2018-03-24 | Basic unit tests for relay_crypto.c | Nick Mathewson | |
These tests handle incoming and outgoing cells on a three-hop circuit, and make sure that the crypto works end-to-end. They don't yet test spec conformance, leaky-pipe, or various error cases. | |||
2018-03-15 | Split geoip tests into a separate module. | Nick Mathewson | |
2018-02-15 | Merge remote-tracking branch 'isis/bug25171' into maint-0.3.3 | Nick Mathewson | |
2018-02-16 | tests: Remove duplicate included header file in src/test/test.c. | Isis Lovecruft | |
* FIXES #25271: https://bugs.torproject.org/25271 | |||
2018-02-09 | Merge remote-tracking branch 'dgoulet/ticket24902_029_05' | Nick Mathewson | |
2018-02-08 | Merge branch 'ticket25183_029_01' into ticket24902_029_05 | David Goulet | |
2018-02-08 | test: Add unit tests for addressset.c | David Goulet | |
This also adds one that tests the integration with the nodelist. Signed-off-by: David Goulet <dgoulet@torproject.org> | |||
2018-02-07 | Fix spelling mistakes corresponding to ticket #23650 | Deepesh Pathak | |
2018-02-02 | Merge remote-tracking branch 'dgoulet/ticket24902_029_05' | Nick Mathewson | |
2018-02-02 | Merge branch 'ticket25122_029_02' into ticket24902_029_05 | David Goulet | |
2018-02-02 | geoip: Hook the client history cache into the OOM handler | David Goulet | |
If the cache is using 20% of our maximum allowed memory, clean 10% of it. Same behavior as the HS descriptor cache. Closes #25122 Signed-off-by: David Goulet <dgoulet@torproject.org> | |||
2018-01-30 | Merge branch 'ticket24902_029_05' into ticket24902_033_02 | David Goulet | |
2018-01-30 | test: Add unit tests for the DoS subsystem | George Kadianakis | |
Signed-off-by: David Goulet <dgoulet@torproject.org> | |||
2017-12-08 | Merge remote-tracking branch 'mikeperry/bug23114_squashed2' | Nick Mathewson | |
2017-12-08 | Merge branch 'macro_free_v2_squashed' | Nick Mathewson | |
2017-12-08 | Switch to a safer FREE_AND_NULL implementation | Nick Mathewson | |
This one only evaluates the input once, so it cannot mess up even if there are side effects. | |||
2017-12-08 | Update free functions into macros: src/or/ part 1 | Nick Mathewson | |
This covers addressmap.h (no change needed) through confparse.h | |||
2017-12-07 | Add tests for circuitstats.c | Mike Perry | |
These tests primarily test the relaxed and measured behavior of circuitstats.c, to make sure we did not break it with #23100 or #23114. | |||
2017-12-05 | test: Add HS_DESC v3 unit tests | David Goulet | |
This introduces the test_hs_control.c file which at this commit contains basic unit test for the HS_DESC event. Signed-off-by: David Goulet <dgoulet@torproject.org> | |||
2017-10-27 | Merge branch 'protover-rust-impl_squashed' | Nick Mathewson | |
2017-10-27 | move to allocating c strings from rust | Chelsea Holland Komlo | |
2017-10-24 | Merge branch 'feature18329_029_squashed' into maint-0.3.2 | Nick Mathewson | |
2017-10-24 | test: Add unittest for descriptors with BridgeDistribution option. | Isis Lovecruft | |
2017-09-27 | Let's get 100% coverage for proto_http while we're at it. | Nick Mathewson | |
There was some coverage before, but it was mostly accidental. | |||
2017-09-27 | Add unit tests for var_cell and control0 proto functions. | Nick Mathewson | |
2017-09-15 | Run our #else/#endif annotator on our source code. | Nick Mathewson | |
2017-08-24 | Ensure that `make check-spaces` is happy. | Alexander Færøy | |
The `test-operator-cleanup` patch, and related coccinelle patches, don't do any checks for line length. This patch fixes the line length issues caused by the previous commits. | |||
2017-08-24 | apply ahf's test_assert_null.cocci | Nick Mathewson | |
2017-08-24 | apply ahf's test_assert_int.cocci | Nick Mathewson | |
2017-08-19 | prop224: Refactor parse_extended_hostname() to parse v3 addrs. | George Kadianakis | |
We need this func so that we recognize SOCKS conns to v3 addresses. - Also rename rend_valid_service_id() to rend_valid_v2_service_id() - Also move parse_extended_hostname() tests to their own unittest, and add a v3 address to the test as well. Signed-off-by: David Goulet <dgoulet@torproject.org> | |||
2017-08-08 | test: Add test_hs_common unit tests | David Goulet | |
Move tests from test_hs_service.c to this file. Signed-off-by: David Goulet <dgoulet@torproject.org> | |||
2017-08-08 | test: Add test_hs_ntor unit tests | David Goulet | |
Move the ntor test from test_hs_service.c to this file. Signed-off-by: David Goulet <dgoulet@torproject.org> | |||
2017-08-08 | test: Add test_hs_cell unit tests | David Goulet | |
Move ESTABLISH_INTRO tests from test_hs_service.c to this new file. Signed-off-by: David Goulet <dgoulet@torproject.org> | |||
2017-07-24 | Rename the hybrid_encrypt/decrypt functions; label them as dangerous | Nick Mathewson | |
We need to keep these around for TAP and old-style hidden services, but they're obsolete, and we shouldn't encourage anyone to use them. So I've added "obsolete" to their names, and a comment explaining what the problem is. Closes ticket 23026. | |||
2017-07-13 | test: Add HS v2 service configuration unit tests | David Goulet | |
Signed-off-by: David Goulet <dgoulet@torproject.org> | |||
2017-07-07 | test: Add client-side unittests for e2e rend circuits. | George Kadianakis | |
2017-05-19 | Merge branch 'add_rust_squashed' | Nick Mathewson | |