-Werror,-Wunused-function
Change-Id: I100a95d5f84ab61cb26ac39d436cb9f2cb7246e5
This commit is contained in:
parent
73db878b17
commit
309402a822
1 changed files with 0 additions and 34 deletions
|
@ -60,40 +60,6 @@
|
|||
#include <com/sun/star/drawing/XDrawPagesSupplier.hpp>
|
||||
#include <drawinglayer/XShapeDumper.hxx>
|
||||
|
||||
namespace {
|
||||
|
||||
bool compareFiles( const rtl::OUString& aFileNameOne, const rtl::OUString& aFileNameTwo)
|
||||
{
|
||||
rtl::OString aOFileNameOne = rtl::OUStringToOString(aFileNameOne, RTL_TEXTENCODING_UTF8);
|
||||
std::ifstream aFileOne(aOFileNameOne.getStr());
|
||||
rtl::OString aOFileNameTwo = rtl::OUStringToOString(aFileNameTwo, RTL_TEXTENCODING_UTF8);
|
||||
std::ifstream aFileTwo(aOFileNameTwo.getStr());
|
||||
|
||||
CPPUNIT_ASSERT_MESSAGE("files not open", aFileOne.is_open() && aFileTwo.is_open());
|
||||
|
||||
sal_Int32 nLine = 1;
|
||||
while(!aFileOne.eof() && !aFileTwo.eof())
|
||||
{
|
||||
std::string aLineFileOne;
|
||||
std::string aLineFileTwo;
|
||||
|
||||
std::getline(aFileOne, aLineFileOne);
|
||||
std::getline(aFileTwo, aLineFileTwo);
|
||||
|
||||
if( aLineFileOne != aLineFileTwo)
|
||||
{
|
||||
rtl::OStringBuffer aErrorMessage("Mismatch between reference file and exported file in line ");
|
||||
aErrorMessage.append(nLine).append(".\nExpected: ");
|
||||
aErrorMessage.append(aLineFileOne.c_str()).append("\nFound : ").append(aLineFileTwo.c_str());
|
||||
CPPUNIT_ASSERT_MESSAGE(aErrorMessage.getStr(), false);
|
||||
}
|
||||
nLine++;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/* Implementation of Filters test */
|
||||
|
||||
using namespace ::com::sun::star;
|
||||
|
|
Loading…
Reference in a new issue