From 71636d5606116e432a69b03d85c4282a6452c7fb Mon Sep 17 00:00:00 2001 From: Jens Carl Date: Fri, 30 Nov 2018 20:55:34 +0000 Subject: Enable XElementAccess test cases The class XElementAccess was missing the macro OOO_DLLPUBLIC_TEST, and so it wasn't possible to use these test cases. Change-Id: I358bb840c6088ea25b60ee57b8c69f31ab71ddbb Reviewed-on: https://gerrit.libreoffice.org/64363 Tested-by: Jenkins Reviewed-by: Jens Carl --- test/source/container/xelementaccess.cxx | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'test/source') diff --git a/test/source/container/xelementaccess.cxx b/test/source/container/xelementaccess.cxx index d6d4472e984f..d751fef4ff1b 100644 --- a/test/source/container/xelementaccess.cxx +++ b/test/source/container/xelementaccess.cxx @@ -1,4 +1,4 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */ /* * This file is part of the LibreOffice project. * @@ -8,26 +8,29 @@ */ #include + #include +#include + #include using namespace css; using namespace css::uno; -namespace apitest { - +namespace apitest +{ void XElementAccess::testGetElementType() { - uno::Reference< container::XElementAccess > xElementAccess(init(), UNO_QUERY_THROW); - CPPUNIT_ASSERT_EQUAL(maType, xElementAccess->getElementType()); + uno::Reference xElementAccess(init(), UNO_QUERY_THROW); + CPPUNIT_ASSERT_EQUAL(m_aType, xElementAccess->getElementType()); } void XElementAccess::testHasElements() { - uno::Reference< container::XElementAccess > xElementAccess(init(), UNO_QUERY_THROW); + uno::Reference xElementAccess(init(), UNO_QUERY_THROW); CPPUNIT_ASSERT(xElementAccess->hasElements()); } -} +} // namespace apitest -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ -- cgit