From d6b5e8d24c9cf60b543114dc2cdfc22bdab5b834 Mon Sep 17 00:00:00 2001 From: heck Date: Fri, 20 Jan 2023 20:42:35 +0530 Subject: [PATCH] Test: test_swarm_tofu - spelling only --- test/test_swarm_tofu.cc | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/test/test_swarm_tofu.cc b/test/test_swarm_tofu.cc index 7eb5920..4cb332c 100644 --- a/test/test_swarm_tofu.cc +++ b/test/test_swarm_tofu.cc @@ -23,18 +23,18 @@ using namespace pEp::Test::Utils; using namespace pEp::PityTest11; using namespace pEp::Adapter::pEpLog; -using TextContext = PityPerspective; -using TestUnitSwarm = PityUnit; +using TestContext = PityPerspective; +using TestUnitSwarm = PityUnit; -TextContext *local_ctx; -PityUnit *local_pity; +TestContext *local_ctx; +PityUnit *local_pity; // The most minimal received msg contains of: // * from address // * content using MinMsgRx = std::tuple; -void tofu_send(TestUnitSwarm &pity, TextContext *ctx, const std::string &addr, const std::string longmessage) +void tofu_send(TestUnitSwarm &pity, TestContext *ctx, const std::string &addr, const std::string longmessage) { pEpMessage msg = createMessage(ctx->own_ident, addr, longmessage); EncryptResult msg_enc = encryptAndEncode(msg); @@ -45,7 +45,7 @@ void tofu_send(TestUnitSwarm &pity, TextContext *ctx, const std::string &addr, c pity.transport()->sendMsg(addr, mime_text); } -MinMsgRx tofu_receive(TestUnitSwarm &pity, TextContext *ctx) +MinMsgRx tofu_receive(TestUnitSwarm &pity, TestContext *ctx) { MinMsgRx ret; const std::string mime_data_rx = pity.transport()->receiveMsg(); @@ -63,7 +63,7 @@ MinMsgRx tofu_receive(TestUnitSwarm &pity, TextContext *ctx) return ret; } -void tofu_receiveAndReply(TestUnitSwarm &pity, TextContext *ctx) +void tofu_receiveAndReply(TestUnitSwarm &pity, TestContext *ctx) { MinMsgRx rx_msg = tofu_receive(pity, ctx); @@ -80,7 +80,7 @@ void tofu_receiveAndReply(TestUnitSwarm &pity, TextContext *ctx) // TESTUNITS // ------------------------------------------------------------------------------------------------ -int test_create_myself(TestUnitSwarm &pity, TextContext *ctx) +int test_create_myself(TestUnitSwarm &pity, TestContext *ctx) { Adapter::session.initialize(); // Create new identity @@ -91,7 +91,7 @@ int test_create_myself(TestUnitSwarm &pity, TextContext *ctx) return 0; } -int test_tofu_init_all_peers(TestUnitSwarm &pity, TextContext *ctx) +int test_tofu_init_all_peers(TestUnitSwarm &pity, TestContext *ctx) { for (auto &peer : ctx->peers) { tofu_send(pity, ctx, peer.addr, "INIT TOFU"); @@ -101,7 +101,7 @@ int test_tofu_init_all_peers(TestUnitSwarm &pity, TextContext *ctx) return 0; } -int test_tofu_react(TestUnitSwarm &pity, TextContext *ctx) +int test_tofu_react(TestUnitSwarm &pity, TestContext *ctx) { tofu_receiveAndReply(pity, ctx); tofu_receive(pity, ctx);