mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-29 14:59:39 -04:00
fuzz: add CConnman::SocketHandler() to the tests
This commit is contained in:
parent
51806d89bc
commit
fe6a2e2bb3
2 changed files with 8 additions and 0 deletions
|
@ -205,6 +205,9 @@ FUZZ_TARGET(connman, .init = initialize_connman)
|
||||||
options.onion_binds.empty();
|
options.onion_binds.empty();
|
||||||
|
|
||||||
connman.InitBindsPublic(options);
|
connman.InitBindsPublic(options);
|
||||||
|
},
|
||||||
|
[&] {
|
||||||
|
connman.SocketHandlerPublic();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
(void)connman.GetAddedNodeInfo(fuzzed_data_provider.ConsumeBool());
|
(void)connman.GetAddedNodeInfo(fuzzed_data_provider.ConsumeBool());
|
||||||
|
|
|
@ -81,6 +81,11 @@ struct ConnmanTestMsg : public CConnman {
|
||||||
return InitBinds(options);
|
return InitBinds(options);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void SocketHandlerPublic()
|
||||||
|
{
|
||||||
|
SocketHandler();
|
||||||
|
}
|
||||||
|
|
||||||
void Handshake(CNode& node,
|
void Handshake(CNode& node,
|
||||||
bool successfully_connected,
|
bool successfully_connected,
|
||||||
ServiceFlags remote_services,
|
ServiceFlags remote_services,
|
||||||
|
|
Loading…
Add table
Reference in a new issue