1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 #ifndef INCLUDED_TEST_CONTAINER_XNAMECONTAINER_HXX
11 #define INCLUDED_TEST_CONTAINER_XNAMECONTAINER_HXX
13 #include <rtl/ustring.hxx>
14 #include <test/testdllapi.hxx>
16 #include <com/sun/star/uno/XInterface.hpp>
18 #include <com/sun/star/uno/Any.hxx>
19 #include <com/sun/star/uno/Reference.hxx>
24 class OOO_DLLPUBLIC_TEST XNameContainer
27 // removes default entry
29 : m_aName("XNameContainer")
32 // removes given entry
33 XNameContainer(OUString aNameToRemove
)
34 : m_aName(std::move(aNameToRemove
))
38 virtual css::uno::Reference
<css::uno::XInterface
> init() = 0;
39 virtual void setElement(const css::uno::Any
& rElement
) { m_aElement
= rElement
; }
41 void testInsertByName();
42 void testInsertByNameEmptyName();
43 void testInsertByNameDuplicate();
44 void testInsertByNameInvalidElement();
45 void testRemoveByName();
46 void testRemoveByNameEmptyName();
47 void testRemoveByNameNoneExistingElement();
54 css::uno::Any m_aElement
;
57 } // namespace apitest
59 #endif // INCLUDED_TEST_CONTAINER_XNAMECONTAINER_HXX
61 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */