diff --git a/test/core/parachain/backing.cpp b/test/core/parachain/backing.cpp index 7612b3ac5d..96ddbe6b5a 100644 --- a/test/core/parachain/backing.cpp +++ b/test/core/parachain/backing.cpp @@ -9,6 +9,7 @@ #include "common/main_thread_pool.hpp" #include "common/worker_thread_pool.hpp" #include "mock/core/parachain/prospective_parachains_mock.hpp" +#include "mock/core/parachain/bitfield_signer_mock.hpp" #include "mock/core/application/app_configuration_mock.hpp" #include "mock/core/application/app_state_manager_mock.hpp" #include "mock/core/network/peer_view_mock.hpp" @@ -42,20 +43,21 @@ class BackingTest : public ProspectiveParachainsTestHarness { sr25519_provider_ = std::make_shared(); router_ = std::make_shared(); peer_view_ = std::make_shared(); + bitfield_signer_ = std::make_shared(); StartApp app_state_manager; - ParachainProcessorImpl( + /*ParachainProcessorImpl( peer_manager_, sr25519_provider_, router_, *main_thread_pool_, hasher_, - std::shared_ptr peer_view, - common::WorkerThreadPool &worker_thread_pool, - std::shared_ptr bitfield_signer, + peer_view_, + *worker_thread_pool_, + bitfield_signer_, std::shared_ptr pvf_precheck, std::shared_ptr bitfield_store, std::shared_ptr backing_store, @@ -74,7 +76,7 @@ class BackingTest : public ProspectiveParachainsTestHarness { LazySPtr slots_util, std::shared_ptr babe_config_repo, std::shared_ptr - statement_distribution); + statement_distribution);*/ } void TearDown() override { @@ -93,6 +95,7 @@ class BackingTest : public ProspectiveParachainsTestHarness { std::shared_ptr sr25519_provider_; std::shared_ptr router_; std::shared_ptr peer_view_; + std::shared_ptr bitfield_signer_; struct TestState { std::vector chain_ids; diff --git a/test/mock/core/parachain/bitfield_signer_mock.hpp b/test/mock/core/parachain/bitfield_signer_mock.hpp new file mode 100644 index 0000000000..fe5214aaa5 --- /dev/null +++ b/test/mock/core/parachain/bitfield_signer_mock.hpp @@ -0,0 +1,33 @@ +/** + * Copyright Quadrivium LLC + * All Rights Reserved + * SPDX-License-Identifier: Apache-2.0 + */ + +#pragma once + +#include + +#include "parachain/availability/bitfield/signer.hpp" + +namespace kagome::parachain { + + class BitfieldSignerMock : public IBitfieldSigner { + public: + MOCK_METHOD(void, + start, + (), + (override)); + + MOCK_METHOD(outcome::result, + sign, + (const ValidatorSigner &, const Candidates &), + (override)); + + MOCK_METHOD(void, + setBroadcastCallback, + (BroadcastCallback &&), + (override)); + }; + +} // namespace kagome::parachain