unittest: fix build

Change-Id: I4bfaf16797afefba0e33b1f58bfc5f56a6a0ef63
This commit is contained in:
Sébastien Blin
2021-04-22 10:20:53 -04:00
parent 33b0634c95
commit 3152c635d9

View File

@ -256,7 +256,7 @@ ConversationRepositoryTest::testCloneViaChannelSocket()
}); });
aliceAccount->connectionManager().onChannelRequest( aliceAccount->connectionManager().onChannelRequest(
[&successfullyReceive](const DeviceId&, const std::string& name) { return true; }); [&successfullyReceive](const DeviceId&, const std::string&) { return true; });
bobAccount->connectionManager().onConnectionReady( bobAccount->connectionManager().onConnectionReady(
[&](const DeviceId&, const std::string& name, std::shared_ptr<ChannelSocket> socket) { [&](const DeviceId&, const std::string& name, std::shared_ptr<ChannelSocket> socket) {
@ -605,7 +605,7 @@ ConversationRepositoryTest::addCommit(git_repository* repo,
// git commit -S // git commit -S
auto to_sign_vec = std::vector<uint8_t>(to_sign.ptr, to_sign.ptr + to_sign.size); auto to_sign_vec = std::vector<uint8_t>(to_sign.ptr, to_sign.ptr + to_sign.size);
auto signed_buf = account->identity().first->sign(to_sign_vec); auto signed_buf = account->identity().first->sign(to_sign_vec);
std::string signed_str = base64::encode(signed_buf.begin(), signed_buf.end()); std::string signed_str = base64::encode(signed_buf);
if (git_commit_create_with_signature(&commit_id, if (git_commit_create_with_signature(&commit_id,
repo, repo,
to_sign.ptr, to_sign.ptr,