diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2020-05-08 13:56:41 +0200 |
---|---|---|
committer | Xisco Faulí <xiscofauli@libreoffice.org> | 2020-05-08 18:53:43 +0200 |
commit | 2240ae59afaf2f6896291ddff57da944d439bf7e (patch) | |
tree | f623f8dffcb63ca12df0e29a1090fbcec7256cb5 | |
parent | 7f41eb8768160f79297712f3ac61a25a72dcd5a0 (diff) |
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í <xiscofauli@libreoffice.org>
-rw-r--r-- | sw/qa/extras/ooxmlexport/ooxmlencryption.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
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()); |