diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2017-11-07 10:19:32 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2017-11-07 10:47:35 +0100 |
commit | 5946eedfb78e250a40f14ae1e5b709e827b2504c (patch) | |
tree | 53e224bc8277264156034d22854b2967c17673ca /test/source/sheet/xsheetconditionalentries.cxx | |
parent | 9d2baccabec7f0e04469a715da613886999b6e0e (diff) |
test: clang-format recently added xsheet tests
Jens says he was unhappy with the 80 cols limit, so clang-format was
explicitly avoided for these new files, but now that the both the config
and TEMPLATE.SOURCECODE.HEADER says 100, it's fine to reformat these to
enforce consistency from now on.
Change-Id: Ia6f0a65920ad2c9d7b0834a0712356568c39624e
Diffstat (limited to 'test/source/sheet/xsheetconditionalentries.cxx')
-rw-r--r-- | test/source/sheet/xsheetconditionalentries.cxx | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/test/source/sheet/xsheetconditionalentries.cxx b/test/source/sheet/xsheetconditionalentries.cxx index e22f3b8195e9..b464303310cc 100644 --- a/test/source/sheet/xsheetconditionalentries.cxx +++ b/test/source/sheet/xsheetconditionalentries.cxx @@ -21,39 +21,41 @@ using namespace com::sun::star; using namespace com::sun::star::uno; -namespace apitest { +namespace apitest +{ void XSheetConditionalEntries::testAddNew() { - uno::Reference< sheet::XSheetConditionalEntries > xSheetConditionalEntries(init(), UNO_QUERY_THROW); + uno::Reference<sheet::XSheetConditionalEntries> xSheetConditionalEntries(init(), + UNO_QUERY_THROW); const sal_Int32 aCount = xSheetConditionalEntries->getCount(); xSheetConditionalEntries->addNew(createCondition(4)); - CPPUNIT_ASSERT_EQUAL_MESSAGE("Unable to add new condition", - aCount + 1, xSheetConditionalEntries->getCount()); - + CPPUNIT_ASSERT_EQUAL_MESSAGE("Unable to add new condition", aCount + 1, + xSheetConditionalEntries->getCount()); } void XSheetConditionalEntries::testClear() { - uno::Reference< sheet::XSheetConditionalEntries > xSheetConditionalEntries(init(), UNO_QUERY_THROW); + uno::Reference<sheet::XSheetConditionalEntries> xSheetConditionalEntries(init(), + UNO_QUERY_THROW); xSheetConditionalEntries->clear(); - CPPUNIT_ASSERT_EQUAL_MESSAGE("Unable to clear conditions", - sal_Int32(0), xSheetConditionalEntries->getCount()); + CPPUNIT_ASSERT_EQUAL_MESSAGE("Unable to clear conditions", sal_Int32(0), + xSheetConditionalEntries->getCount()); } void XSheetConditionalEntries::testRemoveByIndex() { - uno::Reference< sheet::XSheetConditionalEntries > xSheetConditionalEntries(init(), UNO_QUERY_THROW); + uno::Reference<sheet::XSheetConditionalEntries> xSheetConditionalEntries(init(), + UNO_QUERY_THROW); const sal_Int32 aCount = xSheetConditionalEntries->getCount(); xSheetConditionalEntries->removeByIndex(0); - CPPUNIT_ASSERT_EQUAL_MESSAGE("Unable to remove condition", - aCount - 1, xSheetConditionalEntries->getCount()); + CPPUNIT_ASSERT_EQUAL_MESSAGE("Unable to remove condition", aCount - 1, + xSheetConditionalEntries->getCount()); } - } /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ |