mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
Cleanup
git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@194 860be788-9bd5-4423-9f1e-828f051e677b
This commit is contained in:
parent
7b867e9c85
commit
664d184324
2 changed files with 8 additions and 7 deletions
|
|
@ -16,8 +16,9 @@
|
||||||
#include <boost/test/unit_test_suite.hpp>
|
#include <boost/test/unit_test_suite.hpp>
|
||||||
#include <boost/test/execution_monitor.hpp>
|
#include <boost/test/execution_monitor.hpp>
|
||||||
#include <boost/exception/enable_current_exception.hpp>
|
#include <boost/exception/enable_current_exception.hpp>
|
||||||
#endif // MOCK_USE_BOOST_TEST
|
#else
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace mock
|
namespace mock
|
||||||
{
|
{
|
||||||
|
|
@ -45,7 +46,7 @@ namespace mock
|
||||||
<< boost::unit_test::log::begin( file, (std::size_t)line )
|
<< boost::unit_test::log::begin( file, (std::size_t)line )
|
||||||
<< boost::unit_test::log_all_errors
|
<< boost::unit_test::log_all_errors
|
||||||
<< boost::unit_test::lazy_ostream::instance()
|
<< boost::unit_test::lazy_ostream::instance()
|
||||||
<< "mock error: " << message << ": " << context
|
<< message << ": " << context
|
||||||
<< boost::unit_test::log::end();
|
<< boost::unit_test::log::end();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -79,7 +80,7 @@ namespace mock
|
||||||
const std::string& file = "unknown location", int line = 0 )
|
const std::string& file = "unknown location", int line = 0 )
|
||||||
{
|
{
|
||||||
std::cerr << file << '(' << line << "): "
|
std::cerr << file << '(' << line << "): "
|
||||||
<< "mock error: " << message << ": " << context << std::endl;
|
<< message << ": " << context << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void expected_call( const std::string& /*context*/,
|
static void expected_call( const std::string& /*context*/,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue