mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
Fixed multiply defined symbol definition for MOCK_FUNCTION included from several translation units
This commit is contained in:
parent
fc8c6bde19
commit
86371b5695
8 changed files with 62 additions and 9 deletions
20
test/defined.hpp
Normal file
20
test/defined.hpp
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
// http://turtle.sourceforge.net
|
||||
//
|
||||
// Copyright Mathieu Champlon 2015
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
#ifndef MOCK_TEST_DEFINED_HPP_INCLUDED
|
||||
#define MOCK_TEST_DEFINED_HPP_INCLUDED
|
||||
|
||||
#ifdef BOOST_AUTO_TEST_MAIN
|
||||
#undef BOOST_AUTO_TEST_MAIN
|
||||
#endif
|
||||
|
||||
#include <turtle/mock.hpp>
|
||||
|
||||
MOCK_FUNCTION( f, 0, void(), f )
|
||||
|
||||
#endif // MOCK_TEST_DEFINED_HPP_INCLUDED
|
||||
Loading…
Add table
Add a link
Reference in a new issue