Classes | Functions | Variables
shared_ptr_test.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 shared_ptr_test.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 (ClassLoaderSharedPtrTest, basicLoad)
 
 TEST (ClassLoaderSharedPtrTest, correctNonLazyLoadUnload)
 
 TEST (ClassLoaderSharedPtrTest, correctLazyLoadUnload)
 
 TEST (ClassLoaderSharedPtrTest, nonExistentPlugin)
 
 TEST (ClassLoaderSharedPtrTest, nonExistentLibrary)
 
 TEST (ClassLoaderSharedPtrTest, invalidBase)
 
 TEST (ClassLoaderSharedPtrTest, threadSafety)
 
 TEST (ClassLoaderSharedPtrTest, loadRefCountingNonLazy)
 
 TEST (ClassLoaderSharedPtrTest, 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 shared_ptr_test.cpp.

◆ run()

void run ( class_loader::ClassLoader loader)

Definition at line 159 of file shared_ptr_test.cpp.

◆ TEST() [1/13]

TEST ( ClassLoaderSharedPtrTest  ,
basicLoad   
)

Definition at line 48 of file shared_ptr_test.cpp.

◆ TEST() [2/13]

TEST ( ClassLoaderSharedPtrTest  ,
correctNonLazyLoadUnload   
)

Definition at line 59 of file shared_ptr_test.cpp.

◆ TEST() [3/13]

TEST ( ClassLoaderSharedPtrTest  ,
correctLazyLoadUnload   
)

Definition at line 76 of file shared_ptr_test.cpp.

◆ TEST() [4/13]

TEST ( ClassLoaderSharedPtrTest  ,
nonExistentPlugin   
)

Definition at line 99 of file shared_ptr_test.cpp.

◆ TEST() [5/13]

TEST ( ClassLoaderSharedPtrTest  ,
nonExistentLibrary   
)

Definition at line 119 of file shared_ptr_test.cpp.

◆ TEST() [6/13]

TEST ( ClassLoaderSharedPtrTest  ,
invalidBase   
)

Definition at line 136 of file shared_ptr_test.cpp.

◆ TEST() [7/13]

TEST ( ClassLoaderSharedPtrTest  ,
threadSafety   
)

Definition at line 167 of file shared_ptr_test.cpp.

◆ TEST() [8/13]

TEST ( ClassLoaderSharedPtrTest  ,
loadRefCountingNonLazy   
)

Definition at line 198 of file shared_ptr_test.cpp.

◆ TEST() [9/13]

TEST ( ClassLoaderSharedPtrTest  ,
loadRefCountingLazy   
)

Definition at line 232 of file shared_ptr_test.cpp.

◆ TEST() [10/13]

TEST ( MultiClassLoaderTest  ,
lazyLoad   
)

Definition at line 290 of file shared_ptr_test.cpp.

◆ TEST() [11/13]

TEST ( MultiClassLoaderTest  ,
lazyLoadSecondTime   
)

Definition at line 293 of file shared_ptr_test.cpp.

◆ TEST() [12/13]

TEST ( MultiClassLoaderTest  ,
nonLazyLoad   
)

Definition at line 296 of file shared_ptr_test.cpp.

◆ TEST() [13/13]

TEST ( MultiClassLoaderTest  ,
noWarningOnLazyLoad   
)

Definition at line 299 of file shared_ptr_test.cpp.

◆ testMultiClassLoader()

void testMultiClassLoader ( bool  lazy)

Definition at line 272 of file shared_ptr_test.cpp.

◆ wait()

void wait ( int  seconds)

Definition at line 154 of file shared_ptr_test.cpp.

Variable Documentation

◆ LIBRARY_1

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

Definition at line 45 of file shared_ptr_test.cpp.

◆ LIBRARY_2

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

Definition at line 46 of file shared_ptr_test.cpp.



class_loader
Author(s): Mirza Shah
autogenerated on Sat Feb 8 2020 03:20:57