#include <gmock-actions.h>
|
template<typename T , typename... U> |
| DoAllAction (UserConstructorTag, T &&initial_action, U &&... other_actions) |
|
template<typename R , typename... Args, typename std::enable_if< conjunction< std::is_convertible< InitialAction, OnceAction< void(InitialActionArgType< Args >...)>>, std::is_convertible< Base, OnceAction< R(Args...)>>>::value, int >::type = 0> |
| operator OnceAction< R (Args...)>() && |
|
template<typename R , typename... Args, typename std::enable_if< conjunction< std::is_convertible< const InitialAction &, Action< void(InitialActionArgType< Args >...)>>, std::is_convertible< const Base &, Action< R(Args...)>>>::value, int >::type = 0> |
| operator Action< R (Args...)>() const |
|
template<typename InitialAction, typename... OtherActions>
class testing::internal::DoAllAction< InitialAction, OtherActions... >
Definition at line 1516 of file gmock-actions.h.
◆ DoAllAction()
template<typename InitialAction , typename... OtherActions>
template<typename T , typename... U>
Definition at line 1574 of file gmock-actions.h.
1576 : Base({}, std::forward<U>(other_actions)...),
1577 initial_action_(std::forward<T>(initial_action)) {}
◆ operator Action< R()
template<typename InitialAction , typename... OtherActions>
template<typename R , typename... Args, typename std::enable_if< conjunction< std::is_convertible< const InitialAction &, Action< void(InitialActionArgType< Args >...)>>, std::is_convertible< const Base &, Action< R(Args...)>>>::value, int >::type = 0>
Definition at line 1621 of file gmock-actions.h.
1626 Action<void(InitialActionArgType<Args>...)> initial_action;
1627 Action<R(Args...)> remaining_actions;
1629 R operator()(Args... args)
const {
1630 initial_action.Perform(std::forward_as_tuple(
1631 static_cast<InitialActionArgType<Args>
>(args)...));
1633 return remaining_actions.Perform(
1634 std::forward_as_tuple(std::forward<Args>(args)...));
1640 static_cast<const Base&
>(*this),
◆ operator OnceAction< R()
template<typename InitialAction , typename... OtherActions>
template<typename R , typename... Args, typename std::enable_if< conjunction< std::is_convertible< InitialAction, OnceAction< void(InitialActionArgType< Args >...)>>, std::is_convertible< Base, OnceAction< R(Args...)>>>::value, int >::type = 0>
Definition at line 1589 of file gmock-actions.h.
1594 OnceAction<void(InitialActionArgType<Args>...)> initial_action;
1595 OnceAction<R(Args...)> remaining_actions;
1597 R operator()(Args... args) && {
1598 std::move(initial_action)
1599 .Call(
static_cast<InitialActionArgType<Args>
>(args)...);
1601 return std::move(remaining_actions).Call(std::forward<Args>(args)...);
1606 std::move(initial_action_),
1607 std::move(static_cast<Base&>(*
this)),
The documentation for this class was generated from the following file: