diff options
author | Jens Carl <j.carl43@gmx.de> | 2018-12-01 07:42:52 +0000 |
---|---|---|
committer | Jens Carl <j.carl43@gmx.de> | 2018-12-01 09:51:12 +0100 |
commit | d0a6f8a8e862bede67989cd3fac105d7c8231eb0 (patch) | |
tree | ade291e534258d0cecbd5a8e1225603cf8cca343 /include | |
parent | 21399c7378be020e5e43fc07575f46e87e2d607b (diff) |
Enable XIndexAccess test cases
Add macro OOO_DLLPUBLIC_TEST to class XIndexAccess (needed to use the
test cases), refactor ctor, and add missing header files.
Change-Id: Id8b27c8c3a3d7fc5c64fafd25b0d9b4b511c281f
Reviewed-on: https://gerrit.libreoffice.org/64375
Tested-by: Jenkins
Reviewed-by: Jens Carl <j.carl43@gmx.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/test/container/xindexaccess.hxx | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/include/test/container/xindexaccess.hxx b/include/test/container/xindexaccess.hxx index 415008880e52..aa4273ded053 100644 --- a/include/test/container/xindexaccess.hxx +++ b/include/test/container/xindexaccess.hxx @@ -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. * @@ -10,16 +10,23 @@ #ifndef INCLUDED_TEST_CONTAINER_XINDEXACCESS_HXX #define INCLUDED_TEST_CONTAINER_XINDEXACCESS_HXX +#include <com/sun/star/uno/XInterface.hpp> + #include <com/sun/star/uno/Reference.hxx> -namespace apitest { +#include <test/testdllapi.hxx> -class XIndexAccess +namespace apitest +{ +class OOO_DLLPUBLIC_TEST XIndexAccess { public: - XIndexAccess(sal_Int32 nItems); + XIndexAccess(sal_Int32 nItems) + : m_nItems(nItems) + { + } - virtual css::uno::Reference< css::uno::XInterface > init() = 0; + virtual css::uno::Reference<css::uno::XInterface> init() = 0; void testGetCount(); void testGetByIndex(); // will throw an exception and should fail if not @@ -29,11 +36,11 @@ protected: ~XIndexAccess() {} private: - sal_Int32 const mnItems; + sal_Int32 const m_nItems; }; -} +} // namespace apitest #endif // INCLUDED_TEST_CONTAINER_XINDEXACCESS_HXX -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ |