Version 6.1.0.2, tag libreoffice-6.1.0.2
[LibreOffice.git] / sw / qa / unit / uibase.cxx
blob188916da35a2acb2c8a21c33d99c4daa0c189cd9
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/.
9 */
11 #include <cppunit/TestFixture.h>
12 #include <cppunit/extensions/HelperMacros.h>
13 #include <cppunit/plugin/TestPlugIn.h>
15 #include <tools/urlobj.hxx>
17 #include <dbmgr.hxx>
19 namespace
21 /// Test suite for unit tests covering uibase code.
22 class Test : public CppUnit::TestFixture
24 public:
25 void testTdf98168();
27 CPPUNIT_TEST_SUITE(Test);
28 CPPUNIT_TEST(testTdf98168);
29 CPPUNIT_TEST_SUITE_END();
32 void Test::testTdf98168()
34 INetURLObject aURL("file:///tmp/test.xlsx");
35 // This was sw::DBConnURIType::UNKNOWN, xlsx was not recognized.
36 CPPUNIT_ASSERT_EQUAL(sw::DBConnURIType::CALC, sw::GetDBunoType(aURL));
39 CPPUNIT_TEST_SUITE_REGISTRATION(Test);
42 CPPUNIT_PLUGIN_IMPLEMENT();
44 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */