fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / dbaccess / qa / extras / macros-test.cxx
blob76007205542ef0c207a516d39c88c57c04b0b35f
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 #include <sal/config.h>
11 #include <test/unoapi_test.hxx>
12 #include <rtl/strbuf.hxx>
13 #include <osl/file.hxx>
15 #include <sfx2/app.hxx>
16 #include <sfx2/docfilt.hxx>
17 #include <sfx2/docfile.hxx>
18 #include <sfx2/sfxmodelfactory.hxx>
19 #include <svl/intitem.hxx>
21 #include <basic/sbxdef.hxx>
23 using namespace ::com::sun::star;
24 using namespace ::com::sun::star::uno;
26 #if !defined(MACOSX) && !defined(WNT)
28 class DBAccessTest : public UnoApiTest
30 public:
31 DBAccessTest();
33 void test();
35 CPPUNIT_TEST_SUITE(DBAccessTest);
36 CPPUNIT_TEST(test);
37 CPPUNIT_TEST_SUITE_END();
42 DBAccessTest::DBAccessTest()
43 : UnoApiTest("/dbaccess/qa/extras/testdocuments")
47 void DBAccessTest::test()
49 const OUString aFileNameBase("testdb.odb");
50 OUString aFileName;
51 createFileURL(aFileNameBase, aFileName);
52 uno::Reference< lang::XComponent > xComponent = loadFromDesktop(aFileName);
53 CPPUNIT_ASSERT(xComponent.is());
56 CPPUNIT_TEST_SUITE_REGISTRATION(DBAccessTest);
58 #endif
60 CPPUNIT_PLUGIN_IMPLEMENT();
62 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */