summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorJens Carl <j.carl43@gmx.de>2017-11-03 05:16:30 +0000
committerJens Carl <j.carl43@gmx.de>2017-11-03 08:57:05 +0100
commitc3965b1ce4428a97a8050a7bc53d60b642062502 (patch)
tree34a973013fa0bc02be4dec7ede13397d7dbb9012 /sc
parent646448dda41484dfa936f906356d7c58c8a28605 (diff)
tdf#45904 Move Java _XSheetCellRange tests to C++
Change-Id: Ia4534f083a804d450ac8fdd31759f1554b684e15 Reviewed-on: https://gerrit.libreoffice.org/44245 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jens Carl <j.carl43@gmx.de>
Diffstat (limited to 'sc')
-rw-r--r--sc/qa/extras/sccellcursorobj.cxx7
-rw-r--r--sc/qa/extras/sccellrangeobj.cxx7
-rw-r--r--sc/qa/extras/sctablesheetobj.cxx7
3 files changed, 18 insertions, 3 deletions
diff --git a/sc/qa/extras/sccellcursorobj.cxx b/sc/qa/extras/sccellcursorobj.cxx
index 7bfd2dcc3060..f5663714b7be 100644
--- a/sc/qa/extras/sccellcursorobj.cxx
+++ b/sc/qa/extras/sccellcursorobj.cxx
@@ -9,6 +9,7 @@
#include <test/calc_unoapi_test.hxx>
#include <test/sheet/xcellseries.hxx>
+#include <test/sheet/xsheetcellrange.hxx>
#include <test/sheet/xsheetfilterable.hxx>
#include <test/sheet/xsheetoperation.hxx>
#include <test/sheet/xsubtotalcalculatable.hxx>
@@ -24,9 +25,10 @@ using namespace css::uno;
namespace sc_apitest {
-#define NUMBER_OF_TESTS 11
+#define NUMBER_OF_TESTS 12
class ScCellCursorObj : public CalcUnoApiTest, public apitest::XCellSeries,
+ public apitest::XSheetCellRange,
public apitest::XSheetFilterable,
public apitest::XSheetOperation,
public apitest::XSubTotalCalculatable,
@@ -51,6 +53,9 @@ public:
CPPUNIT_TEST(testFillAuto);
CPPUNIT_TEST(testFillSeries);
+ // XSheetCellRange
+ CPPUNIT_TEST(testGetSpreadsheet);
+
// XSheetFilterable
CPPUNIT_TEST(testCreateFilterDescriptor);
CPPUNIT_TEST(testFilter);
diff --git a/sc/qa/extras/sccellrangeobj.cxx b/sc/qa/extras/sccellrangeobj.cxx
index 6a65aa3f0760..49477e137e4c 100644
--- a/sc/qa/extras/sccellrangeobj.cxx
+++ b/sc/qa/extras/sccellrangeobj.cxx
@@ -12,6 +12,7 @@
#include <test/sheet/xcellrangedata.hxx>
#include <test/sheet/xcellrangesquery.hxx>
#include <test/sheet/xcellseries.hxx>
+#include <test/sheet/xsheetcellrange.hxx>
#include <test/sheet/xsheetfilterable.hxx>
#include <test/sheet/xsheetoperation.hxx>
#include <test/sheet/xsubtotalcalculatable.hxx>
@@ -40,7 +41,7 @@ using namespace css::uno;
namespace sc_apitest {
-#define NUMBER_OF_TESTS 24
+#define NUMBER_OF_TESTS 25
class ScCellRangeObj : public CalcUnoApiTest, public apitest::CellProperties,
public apitest::XCellRangeData,
@@ -48,6 +49,7 @@ class ScCellRangeObj : public CalcUnoApiTest, public apitest::CellProperties,
public apitest::XCellSeries,
public apitest::XReplaceable,
public apitest::XSearchable,
+ public apitest::XSheetCellRange,
public apitest::XSheetFilterable,
public apitest::XSheetOperation,
public apitest::XSubTotalCalculatable,
@@ -83,6 +85,9 @@ public:
CPPUNIT_TEST(testFindAll);
CPPUNIT_TEST(testFindFirst);
+ // XSheetCellRange
+ CPPUNIT_TEST(testGetSpreadsheet);
+
// XReplaceable
CPPUNIT_TEST(testReplaceAll);
CPPUNIT_TEST(testCreateReplaceDescriptor);
diff --git a/sc/qa/extras/sctablesheetobj.cxx b/sc/qa/extras/sctablesheetobj.cxx
index d13564d137c3..5f954cc5e66d 100644
--- a/sc/qa/extras/sctablesheetobj.cxx
+++ b/sc/qa/extras/sctablesheetobj.cxx
@@ -10,6 +10,7 @@
#include <test/calc_unoapi_test.hxx>
#include <test/sheet/xcellseries.hxx>
#include <test/sheet/xprintareas.hxx>
+#include <test/sheet/xsheetcellrange.hxx>
#include <test/sheet/xsheetfilterable.hxx>
#include <test/sheet/xsheetlinkable.hxx>
#include <test/sheet/xsheetoperation.hxx>
@@ -29,12 +30,13 @@ using namespace css::uno;
namespace sc_apitest
{
-#define NUMBER_OF_TESTS 22
+#define NUMBER_OF_TESTS 23
class ScTableSheetObj : public CalcUnoApiTest, public apitest::XCellSeries,
public apitest::XPrintAreas,
public apitest::XReplaceable,
public apitest::XSearchable,
+ public apitest::XSheetCellRange,
public apitest::XSheetFilterable,
public apitest::XSheetLinkable,
public apitest::XSheetOperation,
@@ -73,6 +75,9 @@ public:
CPPUNIT_TEST(testFindNext);
CPPUNIT_TEST(testFindFirst);
+ // XSheetCellRange
+ CPPUNIT_TEST(testGetSpreadsheet);
+
// XSheetFilterable
CPPUNIT_TEST(testCreateFilterDescriptor);
CPPUNIT_TEST(testFilter);