mavtables  0.2.1
MAVLink router and firewall.
Classes | Functions
common.hpp File Reference
#include <iostream>
#include <memory>
#include <sstream>
#include <string>
#include <utility>
#include "fakeit.hpp"
Include dependency graph for common.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  MockCOut
 
class  MockCErr
 

Functions

template<typename T >
std::shared_ptr< T > mock_shared (fakeit::Mock< T > &mock)
 
template<typename T >
std::unique_ptr< T > mock_unique (fakeit::Mock< T > &mock)
 

Function Documentation

◆ mock_shared()

template<typename T >
std::shared_ptr<T> mock_shared ( fakeit::Mock< T > &  mock)

Construct a std::shared_ptr from a fakit::Mock object.

Template Parameters
TThe type of object being mocked.
Parameters
mockThe mock object itself.

Definition at line 33 of file common.hpp.

Here is the caller graph for this function:

◆ mock_unique()

template<typename T >
std::unique_ptr<T> mock_unique ( fakeit::Mock< T > &  mock)

Construct a std::unique_ptr from a fakit::Mock object.

Template Parameters
TThe type of object being mocked.
Parameters
mockThe mock object itself.

Definition at line 46 of file common.hpp.

Here is the caller graph for this function: