23 lines
514 B
C++
23 lines
514 B
C++
/*
|
|
* SpyingContext.hpp
|
|
* Copyright (c) 2014 Eran Pe'er.
|
|
*
|
|
* This program is made available under the terms of the MIT License.
|
|
*
|
|
* Created on Oct 20, 2014
|
|
*/
|
|
#pragma once
|
|
|
|
#include "fakeit/Xaction.hpp"
|
|
|
|
namespace fakeit {
|
|
|
|
// For use in Spy(...) phrases
|
|
template<typename R, typename ... arglist>
|
|
struct SpyingContext : public Xaction {
|
|
virtual void appendAction(Action<R, arglist...> *action) = 0;
|
|
|
|
virtual typename std::function<R(arglist &...)> getOriginalMethod() = 0;
|
|
};
|
|
}
|