mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
Refactoring
git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@685 860be788-9bd5-4423-9f1e-828f051e677b
This commit is contained in:
parent
5366ebf3df
commit
34a4e00031
2 changed files with 9 additions and 8 deletions
|
|
@ -10,8 +10,8 @@
|
|||
#define MOCK_EXPECTATION_BASE_HPP_INCLUDED
|
||||
|
||||
#include "../config.hpp"
|
||||
#include "invocation.hpp"
|
||||
#include "../sequence.hpp"
|
||||
#include "invocation.hpp"
|
||||
#include <boost/make_shared.hpp>
|
||||
#include <vector>
|
||||
|
||||
|
|
@ -22,11 +22,6 @@ namespace detail
|
|||
class expectation_base
|
||||
{
|
||||
public:
|
||||
expectation_base()
|
||||
: i_( boost::make_shared< unlimited >() )
|
||||
, file_( "unknown location" )
|
||||
, line_( 0 )
|
||||
{}
|
||||
void set_location( const char* file, int line )
|
||||
{
|
||||
file_ = file;
|
||||
|
|
@ -66,6 +61,11 @@ namespace detail
|
|||
}
|
||||
|
||||
protected:
|
||||
expectation_base()
|
||||
: i_( boost::make_shared< unlimited >() )
|
||||
, file_( "unknown location" )
|
||||
, line_( 0 )
|
||||
{}
|
||||
~expectation_base()
|
||||
{
|
||||
for( sequences_cit it = sequences_.begin();
|
||||
|
|
|
|||
|
|
@ -39,8 +39,9 @@ namespace detail
|
|||
public:
|
||||
typedef MOCK_ERROR_POLICY< R > error_type;
|
||||
|
||||
typedef expectation< R ( BOOST_PP_ENUM_PARAMS(MOCK_NUM_ARGS, T) )
|
||||
> expectation_type;
|
||||
typedef expectation<
|
||||
R ( BOOST_PP_ENUM_PARAMS(MOCK_NUM_ARGS, T) )
|
||||
> expectation_type;
|
||||
|
||||
public:
|
||||
function_impl()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue