mimic++ v2
Loading...
Searching...
No Matches
InterfaceMock.hpp File Reference
#include "mimic++/Fwd.hpp"
#include "mimic++/Mock.hpp"
#include <type_traits>
#include <utility>
Include dependency graph for InterfaceMock.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  mimicpp
 

Macros

#define MIMICPP_DETAIL_STRIP_PARENS(x)
 Removes an enclosing pair of (), if present.
 
#define MIMICPP_DETAIL_STRIP_PARENS_INNER(...)
 Black-magic.
 
#define MIMICPP_DETAIL_STRIP_PARENS_OUTER(...)
 Black-magic.
 
#define MIMICPP_DETAIL_STRIP_PARENS_OUTER_(...)
 Black-magic.
 
#define MIMICPP_DETAIL_STRIP_PARENS_STRIPPED_MIMICPP_DETAIL_STRIP_PARENS_INNER
 Swallows the leftover token.
 
#define MIMICPP_DETAIL_PARENS   ()
 Pastes a pair of parentheses.
 
#define MIMICPP_DETAIL_COMMA_DELIMITER()
 Pastes a ,.
 
#define MIMICPP_DETAIL_NO_DELIMITER()
 Pastes nothing.
 
#define MIMICPP_DETAIL_IDENTITY(...)
 Pastes all arguments as provided.
 
#define MIMICPP_DETAIL_EXPAND(...)
 Part of the fake recursion.
 
#define MIMICPP_DETAIL_EXPAND3(...)
 Part of the fake recursion.
 
#define MIMICPP_DETAIL_EXPAND2(...)
 Part of the fake recursion.
 
#define MIMICPP_DETAIL_EXPAND1(...)
 Part of the fake recursion.
 
#define MIMICPP_DETAIL_FOR_EACH_EXT_INDIRECT(macro, sequence, ...)
 Calls the given macro with all other arguments.
 
#define MIMICPP_DETAIL_FOR_EACH_EXT(macro, token, delimiter, projection_macro, bound, ...)
 The starting point of the for-each implementation.
 
#define MIMICPP_DETAIL_FOR_EACH_EXT_HELPER(macro, token, sequence, delimiter, projection_macro, bound, a1, ...)
 Black-magic.
 
#define MIMICPP_FOR_EACH_EXT_AGAIN()
 Black-magic.
 
#define MIMICPP_DETAIL_MAKE_SIGNATURE(sequence, bound_data, ret, param_type_list, specs, ...)
 Converts the given information to a single signature.
 
#define MIMICPP_DETAIL_MAKE_SIGNATURE_LIST(...)
 Converts all given arguments to a signature list (not enclosed by parentheses).
 
#define MIMICPP_DETAIL_MAKE_OVERLOADED_MOCK(mock_name, signatures)
 Creates a mimicpp::Mock object for the given signatures.
 
#define MIMICPP_DETAIL_MAKE_PARAM(sequence, bound_data, type)
 Converts the given information to a single parameter.
 
#define MIMICPP_DETAIL_MAKE_PARAM_LIST(...)
 Converts all given arguments to a parameter-list (not enclosed by parentheses).
 
#define MIMICPP_DETAIL_FORWARD_ARG(sequence, bound_data, type)
 Creates a std::forward call for the given argument.
 
#define MIMICPP_DETAIL_FORWARD_ARGS(...)
 Creates std::forward calls for each given argument (not enclosed by parentheses).
 
#define MIMICPP_DETAIL_MAKE_OVERLOAD_INFOS_SPECS(ret, param_type_list, specs, ...)
 Base overload, extending the overload info (enclosed by parentheses).
 
#define MIMICPP_DETAIL_MAKE_OVERLOAD_INFOS_BASIC(ret, param_type_list, ...)
 Simple overload, extending the overload info (enclosed by parentheses).
 
#define MIMICPP_DETAIL_SELECT_MAKE_OVERLOAD_INFOS(_1, N, ...)
 Selects the correct overload, depending on the number of arguments.
 
#define MIMICPP_ADD_OVERLOAD(ret, param_type_list, ...)
 Adds an overload to an interface mock. Used only in combination with MIMICPP_MOCK_OVERLOADED_METHOD.
 
#define MIMICPP_DETAIL_MAKE_METHOD_OVERRIDE(ignore, mock_name, fn_name, ret, param_type_list, specs, param_list, forward_list, ...)
 Create a single overload for the given information.
 
#define MIMICPP_DETAIL_MAKE_METHOD_OVERRIDES(mock_name, fn_name, ...)
 Creates all overloads for a specific function as overrides.
 
#define MIMICPP_MOCK_OVERLOADED_METHOD(fn_name, ...)
 Starting point for mocking overloaded interface methods.
 
#define MIMICPP_MOCK_METHOD(fn_name, ret, param_type_list, ...)
 Starting point for mocking a single interface method.
 
#define MOCK_METHOD   MIMICPP_MOCK_METHOD
 Shorthand variant of MIMICPP_MOCK_METHOD.
 
#define MOCK_OVERLOADED_METHOD   MIMICPP_MOCK_OVERLOADED_METHOD
 Shorthand variant of MIMICPP_MOCK_OVERLOADED_METHOD.
 
#define ADD_OVERLOAD   MIMICPP_ADD_OVERLOAD
 Shorthand variant of MIMICPP_ADD_OVERLOAD.