diff options
author | Vasil Dimov <vd@FreeBSD.org> | 2021-03-04 14:31:49 +0100 |
---|---|---|
committer | Vasil Dimov <vd@FreeBSD.org> | 2021-03-16 13:59:18 +0100 |
commit | 9947e44de0cbd79e99d883443a9ac441d8c69713 (patch) | |
tree | 8d60e4c979aa3fe1cf383e108a4b35b42df63614 /src/test/fuzz | |
parent | 82d360b5a88d9057b6c09b61cd69e426c7a2412d (diff) |
i2p: use pointers to Sock to accommodate mocking
Change the types of `i2p::Connection::sock` and
`i2p::sam::Session::m_control_sock` from `Sock` to
`std::unique_ptr<Sock>`.
Using pointers would allow us to sneak `FuzzedSock` instead of `Sock`
and have the methods of the former called.
After this change a test only needs to replace `CreateSock()` with
a function that returns `FuzzedSock`.
Diffstat (limited to 'src/test/fuzz')
0 files changed, 0 insertions, 0 deletions