#include <boost/thread.hpp>
#include <boost/bind.hpp>
#include <iostream>
#include <string>
#include <vector>
#include "class_loader/class_loader.hpp"
#include "class_loader/multi_library_class_loader.hpp"
#include "gtest/gtest.h"
#include "./base.hpp"
Go to the source code of this file.
|
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) |
|
|
const char | LIBRARY_1 [] = "libclass_loader_TestPlugins1.so" |
|
const char | LIBRARY_2 [] = "libclass_loader_TestPlugins2.so" |
|
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
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 | ) |
|
const char LIBRARY_1[] = "libclass_loader_TestPlugins1.so" |
const char LIBRARY_2[] = "libclass_loader_TestPlugins2.so" |