8#ifndef SEN_LIBS_KERNEL_TEST_INTEGRATION_RUNTIME_COMPATIBILITY_RUNTIME_3_SRC_RUNTIME_H
9#define SEN_LIBS_KERNEL_TEST_INTEGRATION_RUNTIME_COMPATIBILITY_RUNTIME_3_SRC_RUNTIME_H
12#include "test_helpers/tester.stl.h"
18#include "stl/runtime/runtime.stl.h"
19#include "stl/sen/kernel/kernel_objects.stl.h"
30 SEN_NOCOPY_NOMOVE(TestClassImpl)
33 using TestClassBase::TestClassBase;
38 std::string
testMethod2Impl(
const TestStructBase& arg1,
const TestEnum& arg2)
override;
48 using TesterBase::TesterBase;
55 void doTestsImpl(std::promise<TestResult>&& promise)
override;
60 void checkRemote(
u32 flagToSet);
63 std::shared_ptr<TestClassImpl> localObj_;
64 std::shared_ptr<sen::Subscription<TestClassInterface>> remoteObjSub_;
65 TestClassInterface* remoteObj_ =
nullptr;
66 std::promise<TestResult> promise_;
67 std::bitset<15> localFlags_;
68 std::bitset<17> remoteFlags_;
69 bool testMethodPassed_ =
false;
70 bool testMethod2Passed_ =
false;
71 bool testEventPassed_ =
true;
72 std::shared_ptr<sen::Subscription<sen::kernel::KernelApiInterface>> kernelApiSub_;
73 sen::kernel::KernelApiInterface* kernelApiObj_ =
nullptr;
API for objects when registered.
Definition component_api.h:170
Definition runtime_1/src/runtime.h:25
~TestClassImpl() override=default
void emitEventsImpl() override
std::string testMethodImpl(bool arg1, const TestStruct &arg2, u8 arg3) override
std::string testMethod2Impl(const TestStructBase &arg1, const TestEnum &arg2) override
Definition runtime_1/src/runtime.h:40
void shutdownKernelImpl() override
void doTestsImpl(std::promise< TestResult > &&promise) override
void checkLocalStateImpl(std::promise< TestResult > &&promise) override
void registered(sen::kernel::RegistrationApi &api) override
~TesterImpl() override=default
uint32_t u32
Definition numbers.h:25
uint8_t u8
Definition numbers.h:21
Definition runtime_1/src/runtime.h:22