summaryrefslogtreecommitdiff
path: root/test/source/sheet/xsheetcondition.cxx
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2017-11-07 10:19:32 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2017-11-07 10:47:35 +0100
commit5946eedfb78e250a40f14ae1e5b709e827b2504c (patch)
tree53e224bc8277264156034d22854b2967c17673ca /test/source/sheet/xsheetcondition.cxx
parent9d2baccabec7f0e04469a715da613886999b6e0e (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/xsheetcondition.cxx')
-rw-r--r--test/source/sheet/xsheetcondition.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/source/sheet/xsheetcondition.cxx b/test/source/sheet/xsheetcondition.cxx
index ba7c22ecc436..402902700a79 100644
--- a/test/source/sheet/xsheetcondition.cxx
+++ b/test/source/sheet/xsheetcondition.cxx
@@ -20,11 +20,12 @@
using namespace com::sun::star;
using namespace com::sun::star::uno;
-namespace apitest {
+namespace apitest
+{
void XSheetCondition::testGetSetFormula1()
{
- uno::Reference< sheet::XSheetCondition > xSheetCondition(init(), UNO_QUERY_THROW);
+ uno::Reference<sheet::XSheetCondition> xSheetCondition(init(), UNO_QUERY_THROW);
OUString aFormula1;
CPPUNIT_ASSERT_NO_THROW_MESSAGE("Unable to get Formula1",
aFormula1 = xSheetCondition->getFormula1());
@@ -35,7 +36,7 @@ void XSheetCondition::testGetSetFormula1()
void XSheetCondition::testGetSetFormula2()
{
- uno::Reference< sheet::XSheetCondition > xSheetCondition(init(), UNO_QUERY_THROW);
+ uno::Reference<sheet::XSheetCondition> xSheetCondition(init(), UNO_QUERY_THROW);
OUString aFormula2;
CPPUNIT_ASSERT_NO_THROW_MESSAGE("Unable to get Formula2",
aFormula2 = xSheetCondition->getFormula2());
@@ -46,19 +47,19 @@ void XSheetCondition::testGetSetFormula2()
void XSheetCondition::testGetSetOperator()
{
- uno::Reference< sheet::XSheetCondition > xSheetCondition(init(), UNO_QUERY_THROW);
+ uno::Reference<sheet::XSheetCondition> xSheetCondition(init(), UNO_QUERY_THROW);
sheet::ConditionOperator aOperator = sheet::ConditionOperator_NONE;
CPPUNIT_ASSERT_NO_THROW_MESSAGE("Unable to get Operator",
aOperator = xSheetCondition->getOperator());
- xSheetCondition->setOperator( sheet::ConditionOperator_BETWEEN );
+ xSheetCondition->setOperator(sheet::ConditionOperator_BETWEEN);
sheet::ConditionOperator aOperatorNew = xSheetCondition->getOperator();
CPPUNIT_ASSERT_MESSAGE("Unable to set Operator", aOperator != aOperatorNew);
}
void XSheetCondition::testGetSetSourcePosition()
{
- uno::Reference< sheet::XSheetCondition > xSheetCondition(init(), UNO_QUERY_THROW);
+ uno::Reference<sheet::XSheetCondition> xSheetCondition(init(), UNO_QUERY_THROW);
table::CellAddress aSourcePosition(0, 0, 0);
CPPUNIT_ASSERT_NO_THROW_MESSAGE("Unable to get SourcePosition",
aSourcePosition = xSheetCondition->getSourcePosition());
@@ -68,7 +69,6 @@ void XSheetCondition::testGetSetSourcePosition()
CPPUNIT_ASSERT_MESSAGE("Unable to set SourcePosition",
aSourcePosition.Row != aSourcePositionNew.Row);
}
-
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */