diff options
Diffstat (limited to 'sc/qa/extras/scdatapilotfieldsobj.cxx')
-rw-r--r-- | sc/qa/extras/scdatapilotfieldsobj.cxx | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sc/qa/extras/scdatapilotfieldsobj.cxx b/sc/qa/extras/scdatapilotfieldsobj.cxx index 363724380b56..20b2c5359d6c 100644 --- a/sc/qa/extras/scdatapilotfieldsobj.cxx +++ b/sc/qa/extras/scdatapilotfieldsobj.cxx @@ -8,6 +8,7 @@ */ #include <test/calc_unoapi_test.hxx> +#include <test/container/xindexaccess.hxx> #include <test/container/xnameaccess.hxx> #include <com/sun/star/container/XIndexAccess.hpp> @@ -26,7 +27,9 @@ using namespace css; namespace sc_apitest { -class ScDataPilotFieldsObj : public CalcUnoApiTest, public apitest::XNameAccess +class ScDataPilotFieldsObj : public CalcUnoApiTest, + public apitest::XIndexAccess, + public apitest::XNameAccess { public: ScDataPilotFieldsObj(); @@ -36,6 +39,10 @@ public: CPPUNIT_TEST_SUITE(ScDataPilotFieldsObj); + // XIndexAccess + CPPUNIT_TEST(testGetByIndex); + CPPUNIT_TEST(testGetCount); + // XNameAccess CPPUNIT_TEST(testGetByName); CPPUNIT_TEST(testGetElementNames); @@ -49,6 +56,7 @@ private: ScDataPilotFieldsObj::ScDataPilotFieldsObj() : CalcUnoApiTest("/sc/qa/extras/testdocuments") + , XIndexAccess(6) , XNameAccess("") { } |