From 8910f2b8a457af9d29e6ed236924b7a6522f067c Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Sat, 18 Feb 2012 04:49:32 +0100 Subject: add XCellRangeReferrer test to ScRangeNameObj now ScRangeNameObj is fully tested by c++ tests --- sc/qa/extras/scnamedrangeobj.cxx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'sc/qa') diff --git a/sc/qa/extras/scnamedrangeobj.cxx b/sc/qa/extras/scnamedrangeobj.cxx index 69785c7be790..cdc1f498082d 100644 --- a/sc/qa/extras/scnamedrangeobj.cxx +++ b/sc/qa/extras/scnamedrangeobj.cxx @@ -26,9 +26,10 @@ * instead of those above. */ +#include #include #include -#include +#include #include #include @@ -37,9 +38,9 @@ namespace sc_apitest { -#define NUMBER_OF_TESTS 8 +#define NUMBER_OF_TESTS 9 -class ScNamedRangeObj : public UnoApiTest, apitest::XNamedRange, apitest::XNamed +class ScNamedRangeObj : public UnoApiTest, apitest::XNamedRange, apitest::XNamed, apitest::XCellRangeReferrer { public: ScNamedRangeObj(); @@ -59,6 +60,7 @@ public: CPPUNIT_TEST(testSetReferencePosition); CPPUNIT_TEST(testSetName); CPPUNIT_TEST(testGetName); + CPPUNIT_TEST(testGetReferredCells); CPPUNIT_TEST_SUITE_END(); private: uno::Reference< sheet::XNamedRanges > init_impl(); @@ -71,7 +73,8 @@ sal_Int32 ScNamedRangeObj::nTest = 0; uno::Reference< lang::XComponent > ScNamedRangeObj::mxComponent; ScNamedRangeObj::ScNamedRangeObj(): - apitest::XNamed(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("NamedRange"))) + apitest::XNamed(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("NamedRange"))), + apitest::XCellRangeReferrer(table::CellRangeAddress(0,1,7,1,7)) { } -- cgit v1.2.3