diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-01-25 00:29:10 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-01-25 21:13:24 +0100 |
commit | 1b973485e63717e875347f0ad33c8137f4bc05c7 (patch) | |
tree | b02cf27fcb8417caeb5d387b80f01c9108265ce8 /sc/qa | |
parent | 5f32a5558e8672ed56d5d393228aefacc632846c (diff) |
add XNamed interface test and add this test to ScDataPilotTableObj
Diffstat (limited to 'sc/qa')
-rw-r--r-- | sc/qa/extras/scdatapilottableobj.cxx | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/sc/qa/extras/scdatapilottableobj.cxx b/sc/qa/extras/scdatapilottableobj.cxx index a09eb6eb1329..0d1cf40a37f7 100644 --- a/sc/qa/extras/scdatapilottableobj.cxx +++ b/sc/qa/extras/scdatapilottableobj.cxx @@ -29,6 +29,7 @@ #include <test/unoapi_test.hxx> #include <test/sheet/xdatapilottable.hxx> #include <test/sheet/xdatapilotdescriptor.hxx> +#include <test/container/xnamed.hxx> #include <com/sun/star/sheet/XSpreadsheetDocument.hpp> #include <com/sun/star/sheet/XSpreadsheet.hpp> @@ -38,11 +39,14 @@ namespace sc_apitest { -#define NUMBER_OF_TESTS 10 +#define NUMBER_OF_TESTS 12 -class ScDataPilotTableObj : public UnoApiTest, apitest::XDataPilotDescriptor, apitest::XDataPilotTable +class ScDataPilotTableObj : public UnoApiTest, apitest::XDataPilotDescriptor, apitest::XDataPilotTable, + apitest::XNamed { public: + ScDataPilotTableObj(); + virtual void setUp(); virtual void tearDown(); virtual uno::Reference< uno::XInterface > init(); @@ -59,6 +63,8 @@ public: CPPUNIT_TEST(testGetRowFields); CPPUNIT_TEST(testGetPageFields); CPPUNIT_TEST(testGetDataFields); + CPPUNIT_TEST(testGetName); + CPPUNIT_TEST(testSetName); CPPUNIT_TEST_SUITE_END(); private: @@ -69,6 +75,12 @@ private: sal_Int32 ScDataPilotTableObj::nTest = 0; uno::Reference< lang::XComponent > ScDataPilotTableObj::mxComponent; +ScDataPilotTableObj::ScDataPilotTableObj() + : apitest::XNamed(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("DataPilotTable"))) +{ + +} + uno::Reference< uno::XInterface > ScDataPilotTableObj::init() { rtl::OUString aFileURL; |