diff options
author | Aditya <adityasahu1511@gmail.com> | 2020-08-28 18:55:03 +0530 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2020-09-04 21:58:57 +0200 |
commit | 44e81831dfc194b60b6d0c89ba275669e23c443e (patch) | |
tree | 10fe8764a9cae80094d87b2f094ce48193b5d1ff /svx | |
parent | 86099e6ec0a2ae72c560c5f2d8b2c3e482ce2e60 (diff) |
svx refactoring: Remove GalleryThemeEntry::GetThmURL() and others
Remove GalleryThemeEntry::GetThmURL(), GetSdvURL(), GetSdgURL(), GetStrURL
because they don't belong here because they deal with URL.
Change-Id: I5a36742c49793726505ebbf394d9410194c39e6c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101547
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/qa/unit/gallery/test_gallery.cxx | 36 |
1 files changed, 20 insertions, 16 deletions
diff --git a/svx/qa/unit/gallery/test_gallery.cxx b/svx/qa/unit/gallery/test_gallery.cxx index c423f900cd64..83ccf600ed36 100644 --- a/svx/qa/unit/gallery/test_gallery.cxx +++ b/svx/qa/unit/gallery/test_gallery.cxx @@ -15,6 +15,8 @@ #include <svx/gallery1.hxx> #include <svx/galtheme.hxx> +#include <svx/gallerybinarystoragelocations.hxx> +#include <svx/gallerystoragelocations.hxx> #include <galobj.hxx> #include <cppunit/TestAssert.h> @@ -255,6 +257,8 @@ void GalleryObjTest::TestGalleryThemeEntry() myThemeName); // Check URLs + GalleryBinaryStorageLocations& aGalleryBinaryStorageLocations + = dynamic_cast<GalleryBinaryStorageLocations&>(*mpThemeEntry->getGalleryStorageLocations()); INetURLObject aURL(aGalleryURL); aURL.Append(myThemeName); INetURLObject aThemeURL(aURL), aSdvURL(aURL), aSdgURL(aURL), aStrURL(aURL); @@ -262,22 +266,22 @@ void GalleryObjTest::TestGalleryThemeEntry() aSdvURL.setExtension("sdv"); aSdgURL.setExtension("sdg"); aStrURL.setExtension("str"); - CPPUNIT_ASSERT_EQUAL_MESSAGE( - "Theme URL doesn't match", - mpThemeEntry->GetThmURL().GetMainURL(INetURLObject::DecodeMechanism::Unambiguous), - aThemeURL.GetMainURL(INetURLObject::DecodeMechanism::Unambiguous)); - CPPUNIT_ASSERT_EQUAL_MESSAGE( - "Sdv URL doesn't match", - mpThemeEntry->GetSdvURL().GetMainURL(INetURLObject::DecodeMechanism::Unambiguous), - aSdvURL.GetMainURL(INetURLObject::DecodeMechanism::Unambiguous)); - CPPUNIT_ASSERT_EQUAL_MESSAGE( - "Sdg URL doesn't match", - mpThemeEntry->GetSdgURL().GetMainURL(INetURLObject::DecodeMechanism::Unambiguous), - aSdgURL.GetMainURL(INetURLObject::DecodeMechanism::Unambiguous)); - CPPUNIT_ASSERT_EQUAL_MESSAGE( - "Str URL doesn't match", - mpThemeEntry->GetStrURL().GetMainURL(INetURLObject::DecodeMechanism::Unambiguous), - aStrURL.GetMainURL(INetURLObject::DecodeMechanism::Unambiguous)); + CPPUNIT_ASSERT_EQUAL_MESSAGE("Theme URL doesn't match", + aGalleryBinaryStorageLocations.GetThmURL().GetMainURL( + INetURLObject::DecodeMechanism::Unambiguous), + aThemeURL.GetMainURL(INetURLObject::DecodeMechanism::Unambiguous)); + CPPUNIT_ASSERT_EQUAL_MESSAGE("Sdv URL doesn't match", + aGalleryBinaryStorageLocations.GetSdvURL().GetMainURL( + INetURLObject::DecodeMechanism::Unambiguous), + aSdvURL.GetMainURL(INetURLObject::DecodeMechanism::Unambiguous)); + CPPUNIT_ASSERT_EQUAL_MESSAGE("Sdg URL doesn't match", + aGalleryBinaryStorageLocations.GetSdgURL().GetMainURL( + INetURLObject::DecodeMechanism::Unambiguous), + aSdgURL.GetMainURL(INetURLObject::DecodeMechanism::Unambiguous)); + CPPUNIT_ASSERT_EQUAL_MESSAGE("Str URL doesn't match", + aGalleryBinaryStorageLocations.GetStrURL().GetMainURL( + INetURLObject::DecodeMechanism::Unambiguous), + aStrURL.GetMainURL(INetURLObject::DecodeMechanism::Unambiguous)); } void GalleryObjTest::TestInsertGalleryObject() |