cid#1607171 Data race condition
[LibreOffice.git] / include / test / util / xsearchable.hxx
blobffd4e44fede6301f482f6735fabbd87dba530091
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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/.
8 */
10 #ifndef INCLUDED_TEST_UTIL_XSEARCHABLE_HXX
11 #define INCLUDED_TEST_UTIL_XSEARCHABLE_HXX
13 #include <test/testdllapi.hxx>
15 #include <com/sun/star/uno/Reference.hxx>
16 #include <utility>
18 namespace apitest {
20 class OOO_DLLPUBLIC_TEST XSearchable
22 public:
23 XSearchable(OUString aString, sal_Int32 nCount) : maSearchString(std::move(aString)), mnCount(nCount) {}
24 XSearchable() : maSearchString(u"SearchString"_ustr), mnCount(1) {}
25 virtual ~XSearchable();
27 void testFindFirst();
28 void testFindNext();
29 void testFindAll();
31 virtual css::uno::Reference< css::uno::XInterface > init() = 0;
33 private:
34 OUString maSearchString;
35 sal_Int32 mnCount;
40 #endif // INCLUDED_TEST_UTIL_XSEARCHABLE_HXX
42 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */