aboutsummaryrefslogtreecommitdiff
path: root/src/test/util
diff options
context:
space:
mode:
authorVasil Dimov <vd@FreeBSD.org>2021-04-13 12:31:49 +0200
committerVasil Dimov <vd@FreeBSD.org>2022-04-15 09:14:49 +0200
commit184e56d6683d05fc84f5153cfff83a2e32883556 (patch)
tree33fe88e870ac0196ecf245be57a02e98afb0d561 /src/test/util
parente14f0fa6a346afecbb1d5470aef5226a8cc33e57 (diff)
net: add new method Sock::SetSockOpt() that wraps setsockopt()
This will help to increase `Sock` usage and make more code mockable.
Diffstat (limited to 'src/test/util')
-rw-r--r--src/test/util/net.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/util/net.h b/src/test/util/net.h
index 20c45058a1..e980fe4967 100644
--- a/src/test/util/net.h
+++ b/src/test/util/net.h
@@ -150,6 +150,8 @@ public:
return 0;
}
+ int SetSockOpt(int, int, const void*, socklen_t) const override { return 0; }
+
bool Wait(std::chrono::milliseconds timeout,
Event requested,
Event* occurred = nullptr) const override