aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_bridges.c
AgeCommit message (Collapse)Author
2018-06-20Run rectify_include_paths.pyNick Mathewson
2018-06-20Refrain from accessing empty smartlist in test_bridges_clear_bridge_listrl1987
Just check that smartlist length is zero instead
2018-04-17Fix a pointer size error in test_bridges.cNick Mathewson
sizeof(ret) is the size of the pointer, not the size of what it points to. Fortunately, we already have a function to compare tor_addr_port_t values for equality. Bugfix on c2c5b13e5d8a77e; bug not in any released Tor. Found by clang's scan-build.
2018-04-09tests: Make tt_finished() macro for tests without tt_*_op() calls.Isis Lovecruft
2018-04-09test: 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