summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2022-02-23 00:41:08 +0100
committerXisco Fauli <xiscofauli@libreoffice.org>2022-02-23 09:06:59 +0100
commit280c5053734ad349dcc774909e56189f11fceb9e (patch)
tree041874cf57b44e5c542b2d470110512c4ffda593 /framework
parent2c08104e4211594d3d06b1e4e85038276b58918a (diff)
CppunitTest_framework_dispatch: remove duplicated dispatchCommand
it's already defined in unotest::MacrosTest Change-Id: I2abc4bea61f55242b9cf3c7f030f5c74f8a51efe Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130402 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'framework')
-rw-r--r--framework/qa/cppunit/dispatchtest.cxx20
1 files changed, 0 insertions, 20 deletions
diff --git a/framework/qa/cppunit/dispatchtest.cxx b/framework/qa/cppunit/dispatchtest.cxx
index 4a22ab028ea5..16a4ecb517f1 100644
--- a/framework/qa/cppunit/dispatchtest.cxx
+++ b/framework/qa/cppunit/dispatchtest.cxx
@@ -139,9 +139,6 @@ class DispatchTest : public test::BootstrapFixture, public unotest::MacrosTest
{
protected:
uno::Reference<lang::XComponent> mxComponent;
- void dispatchCommand(const uno::Reference<lang::XComponent>& xComponent,
- const OUString& rCommand,
- const uno::Sequence<beans::PropertyValue>& rPropertyValues);
public:
virtual void setUp() override;
@@ -163,23 +160,6 @@ void DispatchTest::tearDown()
test::BootstrapFixture::tearDown();
}
-void DispatchTest::dispatchCommand(const uno::Reference<lang::XComponent>& xComponent,
- const OUString& rCommand,
- const uno::Sequence<beans::PropertyValue>& rPropertyValues)
-{
- uno::Reference<frame::XController> xController
- = uno::Reference<frame::XModel>(xComponent, uno::UNO_QUERY_THROW)->getCurrentController();
- CPPUNIT_ASSERT(xController.is());
- uno::Reference<frame::XDispatchProvider> xFrame(xController->getFrame(), uno::UNO_QUERY);
- CPPUNIT_ASSERT(xFrame.is());
-
- uno::Reference<uno::XComponentContext> xContext = ::comphelper::getProcessComponentContext();
- uno::Reference<frame::XDispatchHelper> xDispatchHelper(frame::DispatchHelper::create(xContext));
- CPPUNIT_ASSERT(xDispatchHelper.is());
-
- xDispatchHelper->executeDispatch(xFrame, rCommand, OUString(), 0, rPropertyValues);
-}
-
CPPUNIT_TEST_FIXTURE(DispatchTest, testInterception)
{
mxComponent = loadFromDesktop("private:factory/swriter", "com.sun.star.text.TextDocument");