Kea 2.2.0
isc::test::LibLoadTest Struct Reference

Test fixture for testing loading and unloading of hook libraries. More...

#include <lib_load_test_fixture.h>

+ Inheritance diagram for isc::test::LibLoadTest:

Public Member Functions

 LibLoadTest ()
 Constructor. Unloads any previously loaded libraries. More...
 
 ~LibLoadTest ()
 Destructor. Unloads any previously loaded libraries. More...
 
void addLibrary (const std::string &library, isc::data::ConstElementPtr parameters)
 Adds a library along with its parameters to the list of libraries to be loaded. More...
 
void clearLibraries ()
 
bool loadLibraries ()
 Load all libraries. More...
 
bool unloadLibraries ()
 Unloads all libraries. More...
 

Public Attributes

isc::hooks::HookLibsCollection libraries_
 Libraries. More...
 

Detailed Description

Test fixture for testing loading and unloading of hook libraries.

Definition at line 18 of file lib_load_test_fixture.h.

Constructor & Destructor Documentation

◆ LibLoadTest()

isc::test::LibLoadTest::LibLoadTest ( )
inline

Constructor. Unloads any previously loaded libraries.

Definition at line 20 of file lib_load_test_fixture.h.

References unloadLibraries().

+ Here is the call graph for this function:

◆ ~LibLoadTest()

isc::test::LibLoadTest::~LibLoadTest ( )
inline

Destructor. Unloads any previously loaded libraries.

Definition at line 25 of file lib_load_test_fixture.h.

References unloadLibraries().

+ Here is the call graph for this function:

Member Function Documentation

◆ addLibrary()

void isc::test::LibLoadTest::addLibrary ( const std::string &  library,
isc::data::ConstElementPtr  parameters 
)
inline

Adds a library along with its parameters to the list of libraries to be loaded.

Parameters
librarythe path to the library to be loaded
parametersthe library's parameters in Element format

Definition at line 33 of file lib_load_test_fixture.h.

References libraries_.

◆ clearLibraries()

void isc::test::LibLoadTest::clearLibraries ( )
inline

Definition at line 37 of file lib_load_test_fixture.h.

References libraries_.

◆ loadLibraries()

bool isc::test::LibLoadTest::loadLibraries ( )
inline

Load all libraries.

Returns
true if all libraries loaded successfully, false if one or more libraries failed to load.

Definition at line 45 of file lib_load_test_fixture.h.

References libraries_, and isc::hooks::HooksManager::loadLibraries().

+ Here is the call graph for this function:

◆ unloadLibraries()

bool isc::test::LibLoadTest::unloadLibraries ( )
inline

Unloads all libraries.

Returns
true if all libraries unloaded successfully, false if they are still in memory.

Definition at line 55 of file lib_load_test_fixture.h.

References isc::hooks::HooksManager::unloadLibraries().

Referenced by LibLoadTest(), and ~LibLoadTest().

+ Here is the call graph for this function:

Member Data Documentation

◆ libraries_

isc::hooks::HookLibsCollection isc::test::LibLoadTest::libraries_

Libraries.

Definition at line 62 of file lib_load_test_fixture.h.

Referenced by addLibrary(), clearLibraries(), and loadLibraries().


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