Functions | Variables
unique_ptr_test.cpp File Reference
#include <class_loader/class_loader.hpp>
#include <class_loader/multi_library_class_loader.hpp>
#include <gtest/gtest.h>
#include <chrono>
#include <cstddef>
#include <functional>
#include <iostream>
#include <string>
#include <thread>
#include <vector>
#include "./base.hpp"
Include dependency graph for unique_ptr_test.cpp:

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 
void run (ClassLoader *loader)
 
 TEST (ClassLoaderUniquePtrTest, basicLoad)
 
 TEST (ClassLoaderUniquePtrTest, correctLazyLoadUnload)
 
 TEST (ClassLoaderUniquePtrTest, loadRefCountingLazy)
 
 TEST (ClassLoaderUniquePtrTest, nonExistentPlugin)
 
 TEST (ClassLoaderUniquePtrTest, threadSafety)
 
 TEST (MultiClassLoaderUniquePtrTest, lazyLoad)
 
 TEST (MultiClassLoaderUniquePtrTest, lazyLoadSecondTime)
 
 TEST (MultiClassLoaderUniquePtrTest, nonLazyLoad)
 
 TEST (MultiClassLoaderUniquePtrTest, noWarningOnLazyLoad)
 
void testMultiClassLoader (bool lazy)
 
void wait (int seconds)
 

Variables

const std::string LIBRARY_1 = class_loader::systemLibraryFormat("class_loader_TestPlugins1")
 
const std::string LIBRARY_2 = class_loader::systemLibraryFormat("class_loader_TestPlugins2")
 

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 234 of file unique_ptr_test.cpp.

◆ run()

void run ( ClassLoader loader)

Definition at line 109 of file unique_ptr_test.cpp.

◆ TEST() [1/9]

TEST ( ClassLoaderUniquePtrTest  ,
basicLoad   
)

Definition at line 51 of file unique_ptr_test.cpp.

◆ TEST() [2/9]

TEST ( ClassLoaderUniquePtrTest  ,
correctLazyLoadUnload   
)

Definition at line 61 of file unique_ptr_test.cpp.

◆ TEST() [3/9]

TEST ( ClassLoaderUniquePtrTest  ,
loadRefCountingLazy   
)

Definition at line 144 of file unique_ptr_test.cpp.

◆ TEST() [4/9]

TEST ( ClassLoaderUniquePtrTest  ,
nonExistentPlugin   
)

Definition at line 84 of file unique_ptr_test.cpp.

◆ TEST() [5/9]

TEST ( ClassLoaderUniquePtrTest  ,
threadSafety   
)

Definition at line 117 of file unique_ptr_test.cpp.

◆ TEST() [6/9]

TEST ( MultiClassLoaderUniquePtrTest  ,
lazyLoad   
)

Definition at line 202 of file unique_ptr_test.cpp.

◆ TEST() [7/9]

TEST ( MultiClassLoaderUniquePtrTest  ,
lazyLoadSecondTime   
)

Definition at line 205 of file unique_ptr_test.cpp.

◆ TEST() [8/9]

TEST ( MultiClassLoaderUniquePtrTest  ,
nonLazyLoad   
)

Definition at line 208 of file unique_ptr_test.cpp.

◆ TEST() [9/9]

TEST ( MultiClassLoaderUniquePtrTest  ,
noWarningOnLazyLoad   
)

Definition at line 211 of file unique_ptr_test.cpp.

◆ testMultiClassLoader()

void testMultiClassLoader ( bool  lazy)

Definition at line 184 of file unique_ptr_test.cpp.

◆ wait()

void wait ( int  seconds)

Definition at line 104 of file unique_ptr_test.cpp.

Variable Documentation

◆ LIBRARY_1

const std::string LIBRARY_1 = class_loader::systemLibraryFormat("class_loader_TestPlugins1")

Definition at line 46 of file unique_ptr_test.cpp.

◆ LIBRARY_2

const std::string LIBRARY_2 = class_loader::systemLibraryFormat("class_loader_TestPlugins2")

Definition at line 47 of file unique_ptr_test.cpp.



class_loader
Author(s): Mirza Shah, Steven! Ragnarök
autogenerated on Fri Jan 12 2024 04:01:32