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, weak_a)
 
 TEST (misc, weak_b)
 

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 208 of file test_weak.cpp.

◆ TEST() [1/2]

TEST ( misc  ,
weak_a   
)

Definition at line 238 of file test_weak.cpp.

◆ TEST() [2/2]

TEST ( misc  ,
weak_b   
)

Definition at line 244 of file test_weak.cpp.