summaryrefslogtreecommitdiff
path: root/vcl/qa/cppunit
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/qa/cppunit')
-rw-r--r--vcl/qa/cppunit/app/test_IconThemeInfo.cxx1
-rw-r--r--vcl/qa/cppunit/app/test_IconThemeSelector.cxx2
-rw-r--r--vcl/qa/cppunit/canvasbitmaptest.cxx6
-rw-r--r--vcl/qa/cppunit/dndtest.cxx65
-rw-r--r--vcl/qa/cppunit/graphicfilter/filters-test.cxx1
5 files changed, 0 insertions, 75 deletions
diff --git a/vcl/qa/cppunit/app/test_IconThemeInfo.cxx b/vcl/qa/cppunit/app/test_IconThemeInfo.cxx
index 77bb2462f84f..723143826574 100644
--- a/vcl/qa/cppunit/app/test_IconThemeInfo.cxx
+++ b/vcl/qa/cppunit/app/test_IconThemeInfo.cxx
@@ -94,7 +94,6 @@ IconThemeInfoTest::DefaultZipIsValid()
CPPUNIT_ASSERT_EQUAL_MESSAGE("default.zip is a valid theme name", true, valid);
}
-
void
IconThemeInfoTest::ThemeIdIsDetectedFromFileNameWithUnderscore()
{
diff --git a/vcl/qa/cppunit/app/test_IconThemeSelector.cxx b/vcl/qa/cppunit/app/test_IconThemeSelector.cxx
index 9da845ba4255..40ff352778fb 100644
--- a/vcl/qa/cppunit/app/test_IconThemeSelector.cxx
+++ b/vcl/qa/cppunit/app/test_IconThemeSelector.cxx
@@ -68,7 +68,6 @@ class IconThemeSelectorTest : public CppUnit::TestFixture
// End of test suite definition
-
CPPUNIT_TEST_SUITE_END();
};
@@ -189,7 +188,6 @@ IconThemeSelectorTest::DifferentPreferredThemesAreInequal()
CPPUNIT_ASSERT_EQUAL_MESSAGE("Different preferred themes are detected as inequal", false, equal);
}
-
// Put the test suite in the registry
CPPUNIT_TEST_SUITE_REGISTRATION(IconThemeSelectorTest);
diff --git a/vcl/qa/cppunit/canvasbitmaptest.cxx b/vcl/qa/cppunit/canvasbitmaptest.cxx
index 10228b591f57..734fbcc8f06c 100644
--- a/vcl/qa/cppunit/canvasbitmaptest.cxx
+++ b/vcl/qa/cppunit/canvasbitmaptest.cxx
@@ -17,7 +17,6 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-
// bootstrap stuff
#include <test/bootstrapfixture.hxx>
@@ -46,7 +45,6 @@
using namespace ::com::sun::star;
using namespace ::vcl::unotools;
-
namespace com { namespace sun { namespace star { namespace rendering
{
@@ -61,7 +59,6 @@ bool operator==( const ARGBColor& rLHS, const RGBColor& rRHS )
} } } }
-
namespace
{
@@ -683,15 +680,12 @@ public:
}
};
-
-
void CanvasBitmapTest::runTest()
{
static const sal_Int8 lcl_depths[]={1,4,8,16,24};
// Testing VclCanvasBitmap wrapper
-
for( unsigned int i=0; i<SAL_N_ELEMENTS(lcl_depths); ++i )
{
const sal_Int8 nDepth( lcl_depths[i] );
diff --git a/vcl/qa/cppunit/dndtest.cxx b/vcl/qa/cppunit/dndtest.cxx
index e0f9d92cfa3f..8e85894c78ec 100644
--- a/vcl/qa/cppunit/dndtest.cxx
+++ b/vcl/qa/cppunit/dndtest.cxx
@@ -46,8 +46,6 @@ using namespace ::com::sun::star::datatransfer;
using namespace ::com::sun::star::datatransfer::clipboard;
using namespace ::com::sun::star::datatransfer::dnd;
-
-
class MyWin : public WorkWindow
{
public:
@@ -62,8 +60,6 @@ public:
void Resize();
};
-
-
class MyDragAndDropListener: public ::cppu::WeakImplHelper3 < XDropTargetListener, XDragGestureListener, XDragSourceListener >
{
Window * m_pWindow;
@@ -86,8 +82,6 @@ public:
virtual void SAL_CALL disposing( const EventObject& eo ) throw(RuntimeException);
};
-
-
class MyInfoBox : public InfoBox
{
@@ -96,8 +90,6 @@ public:
MyInfoBox( Window* pParent );
};
-
-
class MyListBox : public ListBox
{
@@ -106,8 +98,6 @@ public:
MyListBox( Window* pParent );
};
-
-
class StringTransferable : public ::cppu::WeakImplHelper1< XTransferable >
{
const OUString m_aData;
@@ -129,9 +119,6 @@ public:
virtual bool SAL_CALL isDataFlavorSupported( const DataFlavor& aFlavor ) throw(RuntimeException);
};
-
-
-
class VclDnDTest : public test::BootstrapFixture
{
public:
@@ -145,8 +132,6 @@ public:
CPPUNIT_TEST_SUITE_END();
};
-
-
void VclDnDTest::testDnD()
{
MyWin aMainWin( NULL, WB_APP | WB_STDWORK );
@@ -167,8 +152,6 @@ void VclDnDTest::testDnD()
aListBox.Show();
}
-
-
MyWin::MyWin( Window* pParent, WinBits nWinStyle ) :
WorkWindow( pParent, nWinStyle )
{
@@ -186,135 +169,95 @@ MyWin::MyWin( Window* pParent, WinBits nWinStyle ) :
xRecognizer->addDragGestureListener( Reference< XDragGestureListener > ( xListener, UNO_QUERY ) );
}
-
-
void MyWin::MouseMove( const MouseEvent& rMEvt )
{
WorkWindow::MouseMove( rMEvt );
}
-
-
void MyWin::MouseButtonDown( const MouseEvent& rMEvt )
{
WorkWindow::MouseButtonDown( rMEvt );
}
-
-
void MyWin::MouseButtonUp( const MouseEvent& rMEvt )
{
WorkWindow::MouseButtonUp( rMEvt );
}
-
-
void MyWin::KeyInput( const KeyEvent& rKEvt )
{
WorkWindow::KeyInput( rKEvt );
}
-
-
void MyWin::KeyUp( const KeyEvent& rKEvt )
{
WorkWindow::KeyUp( rKEvt );
}
-
-
void MyWin::Paint( const Rectangle& rRect )
{
WorkWindow::Paint( rRect );
}
-
-
void MyWin::Resize()
{
WorkWindow::Resize();
}
-
-
void SAL_CALL MyDragAndDropListener::dragGestureRecognized( const DragGestureEvent& dge ) throw(RuntimeException)
{
Reference< XDragSource > xDragSource( dge.DragSource, UNO_QUERY );
xDragSource->startDrag( dge, -1, 0, 0, new StringTransferable( OUString("TestString") ), this );
}
-
-
void SAL_CALL MyDragAndDropListener::drop( const DropTargetDropEvent& dtde ) throw(RuntimeException)
{
dtde.Context->dropComplete( true );
}
-
-
void SAL_CALL MyDragAndDropListener::dragEnter( const DropTargetDragEnterEvent& dtdee ) throw(RuntimeException)
{
dtdee.Context->acceptDrag( dtdee.DropAction );
}
-
-
void SAL_CALL MyDragAndDropListener::dragExit( const DropTargetEvent& ) throw(RuntimeException)
{
}
-
-
void SAL_CALL MyDragAndDropListener::dragOver( const DropTargetDragEvent& dtde ) throw(RuntimeException)
{
dtde.Context->acceptDrag( dtde.DropAction );
}
-
-
void SAL_CALL MyDragAndDropListener::dropActionChanged( const DropTargetDragEvent& dtde ) throw(RuntimeException)
{
dtde.Context->acceptDrag( dtde.DropAction );
}
-
-
void SAL_CALL MyDragAndDropListener::dragDropEnd( const DragSourceDropEvent& ) throw(RuntimeException)
{
}
-
-
void SAL_CALL MyDragAndDropListener::dragEnter( const DragSourceDragEvent& ) throw(RuntimeException)
{
}
-
-
void SAL_CALL MyDragAndDropListener::dragExit( const DragSourceEvent& ) throw(RuntimeException)
{
}
-
-
void SAL_CALL MyDragAndDropListener::dragOver( const DragSourceDragEvent& ) throw(RuntimeException)
{
}
-
-
void SAL_CALL MyDragAndDropListener::dropActionChanged( const DragSourceDragEvent& ) throw(RuntimeException)
{
}
-
-
void SAL_CALL MyDragAndDropListener::disposing( const EventObject& ) throw(RuntimeException)
{
}
-
-
MyInfoBox::MyInfoBox( Window* pParent ) : InfoBox( pParent,
OUString("dragging over this box should result in another window id in the drag log.") )
{
@@ -332,8 +275,6 @@ MyInfoBox::MyInfoBox( Window* pParent ) : InfoBox( pParent,
xRecognizer->addDragGestureListener( Reference< XDragGestureListener > ( xListener, UNO_QUERY ) );
};
-
-
MyListBox::MyListBox( Window* pParent ) : ListBox( pParent )
{
Reference< XDropTargetListener > xListener = new MyDragAndDropListener( this );
@@ -350,24 +291,18 @@ MyListBox::MyListBox( Window* pParent ) : ListBox( pParent )
xRecognizer->addDragGestureListener( Reference< XDragGestureListener > ( xListener, UNO_QUERY ) );
};
-
-
Any SAL_CALL StringTransferable::getTransferData( const DataFlavor& )
throw(UnsupportedFlavorException, IOException, RuntimeException)
{
return makeAny( m_aData );
}
-
-
Sequence< DataFlavor > SAL_CALL StringTransferable::getTransferDataFlavors( )
throw(RuntimeException)
{
return m_aFlavorList;
}
-
-
bool SAL_CALL StringTransferable::isDataFlavorSupported( const DataFlavor& )
throw(RuntimeException)
{
diff --git a/vcl/qa/cppunit/graphicfilter/filters-test.cxx b/vcl/qa/cppunit/graphicfilter/filters-test.cxx
index fe672d098438..48b1045f14b7 100644
--- a/vcl/qa/cppunit/graphicfilter/filters-test.cxx
+++ b/vcl/qa/cppunit/graphicfilter/filters-test.cxx
@@ -44,7 +44,6 @@ public:
void testScaling();
void testExportImport();
-
CPPUNIT_TEST_SUITE(VclFiltersTest);
CPPUNIT_TEST(testCVEs);
CPPUNIT_TEST(testScaling);