#include <iostream>
#include <memory>
#include <sstream>
#include <string>
#include <utility>
#include "fakeit.hpp"
Go to the source code of this file.
|
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) |
|
◆ 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
-
T | The type of object being mocked. |
- Parameters
-
mock | The mock object itself. |
Definition at line 33 of file common.hpp.
◆ 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
-
T | The type of object being mocked. |
- Parameters
-
mock | The mock object itself. |
Definition at line 46 of file common.hpp.