nss: upgrade to release 3.73
[LibreOffice.git] / test / source / sheet / xconsolidatable.cxx
blob0efa16b6972c45d680e549811b5a9ebe522d4695
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
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 <test/sheet/xconsolidatable.hxx>
12 #include <com/sun/star/sheet/XConsolidatable.hpp>
13 #include <com/sun/star/sheet/XConsolidationDescriptor.hpp>
14 #include <com/sun/star/uno/Reference.hxx>
16 #include <cppunit/TestAssert.h>
18 using namespace css;
19 using namespace css::uno;
21 namespace apitest
23 void XConsolidatable::testCreateConsolidationDescriptor()
25 uno::Reference<sheet::XConsolidatable> xConsolidatable(init(), UNO_QUERY_THROW);
27 uno::Reference<sheet::XConsolidationDescriptor> xConsolidationDescriptor(
28 xConsolidatable->createConsolidationDescriptor(true), UNO_SET_THROW);
31 void XConsolidatable::testConsolidate()
33 uno::Reference<sheet::XConsolidatable> xConsolidatable(init(), UNO_QUERY_THROW);
35 uno::Reference<sheet::XConsolidationDescriptor> xConsolidationDescriptor(
36 xConsolidatable->createConsolidationDescriptor(true), UNO_SET_THROW);
38 xConsolidatable->consolidate(xConsolidationDescriptor);
39 CPPUNIT_ASSERT_MESSAGE("consolidate()", true);
43 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */