You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@corinthia.apache.org by ja...@apache.org on 2015/08/04 13:44:39 UTC
[2/3] incubator-corinthia git commit: prepare one global zip test case
prepare one global zip test case
Project: http://git-wip-us.apache.org/repos/asf/incubator-corinthia/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-corinthia/commit/d9576b03
Tree: http://git-wip-us.apache.org/repos/asf/incubator-corinthia/tree/d9576b03
Diff: http://git-wip-us.apache.org/repos/asf/incubator-corinthia/diff/d9576b03
Branch: refs/heads/newZipExperiment2
Commit: d9576b0363ae7b3cbfddb03bbdbd4d17035d5046
Parents: d5c2bc0
Author: jani <ja...@apache.org>
Authored: Tue Aug 4 12:40:23 2015 +0200
Committer: jani <ja...@apache.org>
Committed: Tue Aug 4 12:40:23 2015 +0200
----------------------------------------------------------------------
DocFormats/platform/tests/WrapperTests.c | 96 +++++++++------------------
1 file changed, 33 insertions(+), 63 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/d9576b03/DocFormats/platform/tests/WrapperTests.c
----------------------------------------------------------------------
diff --git a/DocFormats/platform/tests/WrapperTests.c b/DocFormats/platform/tests/WrapperTests.c
index 0af1599..2acf846 100644
--- a/DocFormats/platform/tests/WrapperTests.c
+++ b/DocFormats/platform/tests/WrapperTests.c
@@ -21,8 +21,38 @@
#include "DFPlatform.h"
+static const char * const zipNames1[] = {
+ "[Content_Types].xml",
+ "_rels / .rels",
+ "word / _rels / document.xml.rels",
+ "word / document.xml",
+ "word / theme / theme1.xml",
+ "word / settings.xml",
+ "word / fontTable.xml",
+ "word / webSettings.xml",
+ "docProps / app.xml",
+ "docProps / core.xml",
+ "word / styles.xml"
+};
+static const char * const zipNames2[] = {
+ "mimetype",
+ "Configurations2 / statusbar / ",
+ "Configurations2 / accelerator / current.xml",
+ "Configurations2 / floater / ",
+ "Configurations2 / popupmenu / ",
+ "Configurations2 / progressbar / ",
+ "Configurations2 / menubar / ",
+ "Configurations2 / toolbar / ",
+ "Configurations2 / images / Bitmaps / ",
+ "content.xml",
+ "styles.xml",
+ "meta.xml",
+ "Thumbnails / thumbnail.png",
+ "settings.xml",
+ "META - INF / manifest.xml"
+};
-static void test_DFextZipOpen(void)
+static void test_DFextZip(void)
{
DFextZipHandleP zip;
int i;
@@ -60,69 +90,9 @@ static void test_DFextZipOpen(void)
-static void test_DFextZipCreate(void)
-{
-#if 0
- int DFextZipOpen(const char *zipFilename, int doUnzip) {
-#endif
-}
-
-
-
-static void test_DFextZipClose(void)
-{
-#if 0
- int DFextZipClose(void)
-#endif
-}
-
-
-
-static void test_DFextZipOpenNextFile(void)
-{
-#if 0
- int DFextZipOpenNextFile(char *entryName, const int maxName)
-#endif
-}
-
-
-
-static void test_DFextZipCloseFile(void)
-{
-#if 0
- int DFextZipCloseFile(void)
-#endif
-}
-
-
-
-static void test_DFextZipReadCurrentFile(void)
-{
-#if 0
- int DFextZipReadCurrentFile(char *buf, const int maxLen)
-#endif
-}
-
-
-
-static void test_DFextZipWriteCurrentFile(void)
-{
-#if 0
- int DFextZipWriteCurrentFile(char *buf, const int len)
-#endif
-}
-
-
-
TestGroup PlatformWrapperTests = {
"platform.wrapper", {
- { "DFextZipOpen", PlainTest, test_DFextZipCreate },
- { "DFextZipOpen", PlainTest, test_DFextZipOpen },
- { "DFextZipClose", PlainTest, test_DFextZipClose },
- { "DFextZipOpenNextFile", PlainTest, test_DFextZipOpenNextFile },
- { "DFextZipCloseFile", PlainTest, test_DFextZipCloseFile },
- { "DFextZipReadCurrentFile", PlainTest, test_DFextZipReadCurrentFile },
- { "DFextZipWriteCurrentFile", PlainTest, test_DFextZipWriteCurrentFile },
- { NULL, PlainTest, NULL }
+ { "DFextZip", PlainTest, test_DFextZip },
+ { NULL, PlainTest, NULL }
}
};