Sen API
Sen Libraries
Loading...
Searching...
No Matches
KernelFixture Class Reference

Wrapper class used in the integration tests that facilitates the interaction with the Sen kernel test API, managing the allocation and deallocation of common resources. More...

#include <kernel_fixture.h>

Inheritance diagram for KernelFixture:

Protected Member Functions

void onInit (sen::kernel::TestComponent::InitFunc initFunc)
 Wrapper for the onInit method of the Sen kernel test API.
void onRun (sen::kernel::TestComponent::RunFunc runFunc)
 Wrapper for the onRun method of the Sen kernel test API.
void onUnload (sen::kernel::TestComponent::UnloadFunc unloadFunc)
 Wrapper for the onUnload method of the Sen kernel test API.
std::unique_ptr< sen::kernel::TestKernelmakeKernel ()
 Constructor for the Sen kernel test API that takes care about allocating and deallocating resources needed for the correct functioning of the kernel.
virtual void deallocateResources ()
 Virtual method that can be implemented by integration test fixtures which need to deallocate specific resources at the end of each test.

Detailed Description

Wrapper class used in the integration tests that facilitates the interaction with the Sen kernel test API, managing the allocation and deallocation of common resources.

Member Function Documentation

◆ onInit()

void KernelFixture::onInit ( sen::kernel::TestComponent::InitFunc initFunc)
protected

Wrapper for the onInit method of the Sen kernel test API.

◆ onRun()

void KernelFixture::onRun ( sen::kernel::TestComponent::RunFunc runFunc)
protected

Wrapper for the onRun method of the Sen kernel test API.

◆ onUnload()

void KernelFixture::onUnload ( sen::kernel::TestComponent::UnloadFunc unloadFunc)
protected

Wrapper for the onUnload method of the Sen kernel test API.

◆ makeKernel()

std::unique_ptr< sen::kernel::TestKernel > KernelFixture::makeKernel ( )
protected

Constructor for the Sen kernel test API that takes care about allocating and deallocating resources needed for the correct functioning of the kernel.

◆ deallocateResources()

virtual void KernelFixture::deallocateResources ( )
protectedvirtual

Virtual method that can be implemented by integration test fixtures which need to deallocate specific resources at the end of each test.


The documentation for this class was generated from the following file: