[Libreoffice-commits] .: sd/qa
Stephan Bergmann
sbergmann at kemper.freedesktop.org
Mon Jul 16 23:27:24 PDT 2012
sd/qa/unit/regression-test.cxx | 34 ----------------------------------
1 file changed, 34 deletions(-)
New commits:
commit 309402a82272e7fc2cab75ca65764bf81ce311d6
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Tue Jul 17 08:27:02 2012 +0200
-Werror,-Wunused-function
Change-Id: I100a95d5f84ab61cb26ac39d436cb9f2cb7246e5
diff --git a/sd/qa/unit/regression-test.cxx b/sd/qa/unit/regression-test.cxx
index d9ce42c..787291b 100644
--- a/sd/qa/unit/regression-test.cxx
+++ b/sd/qa/unit/regression-test.cxx
@@ -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;
More information about the Libreoffice-commits
mailing list