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

Go to the source code of this file.

Classes

class  InvalidBase
 

Functions

int main (int argc, char **argv)
 
void run (class_loader::ClassLoader *loader)
 
 TEST (ClassLoaderTest, basicLoad)
 
 TEST (ClassLoaderTest, correctNonLazyLoadUnload)
 
 TEST (ClassLoaderTest, correctLazyLoadUnload)
 
 TEST (ClassLoaderTest, nonExistentPlugin)
 
 TEST (ClassLoaderTest, nonExistentLibrary)
 
 TEST (ClassLoaderTest, invalidBase)
 
 TEST (ClassLoaderTest, threadSafety)
 
 TEST (ClassLoaderTest, loadRefCountingNonLazy)
 
 TEST (ClassLoaderTest, loadRefCountingLazy)
 
 TEST (MultiClassLoaderTest, lazyLoad)
 
 TEST (MultiClassLoaderTest, lazyLoadSecondTime)
 
 TEST (MultiClassLoaderTest, nonLazyLoad)
 
 TEST (MultiClassLoaderTest, 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 322 of file utest.cpp.

◆ run()

void run ( class_loader::ClassLoader loader)

Definition at line 159 of file utest.cpp.

◆ TEST() [1/13]

TEST ( ClassLoaderTest  ,
basicLoad   
)

Definition at line 48 of file utest.cpp.

◆ TEST() [2/13]

TEST ( ClassLoaderTest  ,
correctNonLazyLoadUnload   
)

Definition at line 59 of file utest.cpp.

◆ TEST() [3/13]

TEST ( ClassLoaderTest  ,
correctLazyLoadUnload   
)

Definition at line 76 of file utest.cpp.

◆ TEST() [4/13]

TEST ( ClassLoaderTest  ,
nonExistentPlugin   
)

Definition at line 99 of file utest.cpp.

◆ TEST() [5/13]

TEST ( ClassLoaderTest  ,
nonExistentLibrary   
)

Definition at line 119 of file utest.cpp.

◆ TEST() [6/13]

TEST ( ClassLoaderTest  ,
invalidBase   
)

Definition at line 136 of file utest.cpp.

◆ TEST() [7/13]

TEST ( ClassLoaderTest  ,
threadSafety   
)

Definition at line 167 of file utest.cpp.

◆ TEST() [8/13]

TEST ( ClassLoaderTest  ,
loadRefCountingNonLazy   
)

Definition at line 198 of file utest.cpp.

◆ TEST() [9/13]

TEST ( ClassLoaderTest  ,
loadRefCountingLazy   
)

Definition at line 232 of file utest.cpp.

◆ TEST() [10/13]

TEST ( MultiClassLoaderTest  ,
lazyLoad   
)

Definition at line 290 of file utest.cpp.

◆ TEST() [11/13]

TEST ( MultiClassLoaderTest  ,
lazyLoadSecondTime   
)

Definition at line 293 of file utest.cpp.

◆ TEST() [12/13]

TEST ( MultiClassLoaderTest  ,
nonLazyLoad   
)

Definition at line 296 of file utest.cpp.

◆ TEST() [13/13]

TEST ( MultiClassLoaderTest  ,
noWarningOnLazyLoad   
)

Definition at line 299 of file utest.cpp.

◆ testMultiClassLoader()

void testMultiClassLoader ( bool  lazy)

Definition at line 272 of file utest.cpp.

◆ wait()

void wait ( int  seconds)

Definition at line 154 of file utest.cpp.

Variable Documentation

◆ LIBRARY_1

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

Definition at line 45 of file utest.cpp.

◆ LIBRARY_2

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

Definition at line 46 of file utest.cpp.



class_loader
Author(s): Mirza Shah
autogenerated on Sat Oct 20 2018 02:51:55