sw/qa/extras/ooxmlexport/ooxmlencryption.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 2240ae59afaf2f6896291ddff57da944d439bf7e
Author:     Xisco Fauli <xiscofa...@libreoffice.org>
AuthorDate: Fri May 8 13:56:41 2020 +0200
Commit:     Xisco Faulí <xiscofa...@libreoffice.org>
CommitDate: Fri May 8 18:53:43 2020 +0200

    CppUnittest: ooxmlencryption: assert pages where possible
    
    Change-Id: Id4a7ed5ecab048a6249444e30a38c1ffa310f96e
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93733
    Tested-by: Jenkins
    Reviewed-by: Xisco Faulí <xiscofa...@libreoffice.org>

diff --git a/sw/qa/extras/ooxmlexport/ooxmlencryption.cxx 
b/sw/qa/extras/ooxmlexport/ooxmlencryption.cxx
index c0d6d2ba95b3..34bd0bc10773 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlencryption.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlencryption.cxx
@@ -23,6 +23,7 @@ protected:
 
 DECLARE_SW_ROUNDTRIP_TEST(testPasswordMSO2007, "Encrypted_MSO2007_abc.docx", 
"abc", Test)
 {
+    CPPUNIT_ASSERT_EQUAL(1, getPages());
     // Standard encryption format, AES 128, SHA1
     uno::Reference<text::XTextRange> xParagraph(getParagraph(1));
     CPPUNIT_ASSERT_EQUAL(OUString("abc"), xParagraph->getString());
@@ -30,6 +31,7 @@ DECLARE_SW_ROUNDTRIP_TEST(testPasswordMSO2007, 
"Encrypted_MSO2007_abc.docx", "ab
 
 DECLARE_SW_ROUNDTRIP_TEST(testPasswordMSO2010, "Encrypted_MSO2010_abc.docx", 
"abc", Test)
 {
+    CPPUNIT_ASSERT_EQUAL(1, getPages());
     // Agile encryption format, AES 128, CBC, SHA1
     uno::Reference<text::XTextRange> xParagraph(getParagraph(1));
     CPPUNIT_ASSERT_EQUAL(OUString("abc"), xParagraph->getString());
@@ -37,6 +39,7 @@ DECLARE_SW_ROUNDTRIP_TEST(testPasswordMSO2010, 
"Encrypted_MSO2010_abc.docx", "ab
 
 DECLARE_SW_ROUNDTRIP_TEST(testPasswordMSO2013, "Encrypted_MSO2013_abc.docx", 
"abc", Test)
 {
+    CPPUNIT_ASSERT_EQUAL(1, getPages());
     // Agile encryption format, AES 256, CBC, SHA512
     uno::Reference<text::XTextRange> xParagraph(getParagraph(1));
     CPPUNIT_ASSERT_EQUAL(OUString("ABC"), xParagraph->getString());
@@ -44,6 +47,7 @@ DECLARE_SW_ROUNDTRIP_TEST(testPasswordMSO2013, 
"Encrypted_MSO2013_abc.docx", "ab
 
 DECLARE_SW_ROUNDTRIP_TEST(testPasswordLOStandard, 
"Encrypted_LO_Standard_abc.docx", "abc", Test)
 {
+    CPPUNIT_ASSERT_EQUAL(1, getPages());
     // Standard encryption format, AES 128, SHA1
     uno::Reference<text::XTextRange> xParagraph(getParagraph(1));
     CPPUNIT_ASSERT_EQUAL(OUString("ABC"), xParagraph->getString());
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to