OpenVPN 3 Core Library
Loading...
Searching...
No Matches
test_weak.cpp File Reference

Test weak smart pointers. More...

#include "test_common.hpp"
#include <vector>
#include <openvpn/common/rc.hpp>
Include dependency graph for test_weak.cpp:

Go to the source code of this file.

Functions

template<typename Object , typename Ref >
void test ()
 
 TEST (Misc, WeakA)
 
 TEST (Misc, WeakB)
 

Detailed Description

Test weak smart pointers.

Test weak smart pointers by having a vector of reference objects (Ref/RefType) that weakly point back to their parent object (Object).

Definition in file test_weak.cpp.

Function Documentation

◆ test()

template<typename Object , typename Ref >
void test ( )

Hide these classes from Doxygen. Especially namespaces A and B lead to unwanted references.

Definition at line 206 of file test_weak.cpp.

◆ TEST() [1/2]

TEST ( Misc  ,
WeakA   
)

Definition at line 234 of file test_weak.cpp.

◆ TEST() [2/2]

TEST ( Misc  ,
WeakB   
)

Definition at line 240 of file test_weak.cpp.