mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
Fixed regression
git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@665 860be788-9bd5-4423-9f1e-828f051e677b
This commit is contained in:
parent
24530c4e3c
commit
c697b48802
7 changed files with 76 additions and 24 deletions
|
|
@ -7,6 +7,7 @@
|
|||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
#include "mock_error.hpp"
|
||||
#include "undefined.hpp"
|
||||
#include <turtle/mock.hpp>
|
||||
#include <boost/test/auto_unit_test.hpp>
|
||||
#include <boost/noncopyable.hpp>
|
||||
|
|
@ -128,17 +129,15 @@ BOOST_AUTO_TEST_CASE( mock_object_method_const_disambiguation )
|
|||
|
||||
namespace
|
||||
{
|
||||
struct my_declared_but_undefined_type;
|
||||
|
||||
MOCK_CLASS( my_declared_but_undefined_mock )
|
||||
MOCK_CLASS( my_undefined_mock )
|
||||
{
|
||||
MOCK_METHOD_EXT( m, 1, void( my_declared_but_undefined_type& ), t )
|
||||
MOCK_METHOD_EXT( m, 1, void( undefined& ), t )
|
||||
};
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE( mock_object_method_with_declared_but_not_defined_parameter_is_valid )
|
||||
{
|
||||
my_declared_but_undefined_mock mock;
|
||||
my_undefined_mock mock;
|
||||
MOCK_EXPECT( mock.t );
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue