corinthia-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject [18/19] incubator-corinthia git commit: ready to fill out test cases
Date Thu, 01 Jan 2015 10:10:40 GMT
ready to fill out test cases


Project: http://git-wip-us.apache.org/repos/asf/incubator-corinthia/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-corinthia/commit/47cbcd6c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-corinthia/tree/47cbcd6c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-corinthia/diff/47cbcd6c

Branch: refs/heads/RTC_platform
Commit: 47cbcd6c3583507ea7749e24cac54be2230b7cd3
Parents: fc8cbd7
Author: jani <jani@apache.org>
Authored: Tue Dec 30 23:47:49 2014 +0100
Committer: jani <jani@apache.org>
Committed: Tue Dec 30 23:47:49 2014 +0100

----------------------------------------------------------------------
 DocFormats/platform/CMakeLists.txt        |  1 -
 DocFormats/platform/src/Win32.c           |  4 +--
 DocFormats/platform/tests/OStests.c       | 28 ++++++++++++++++--
 DocFormats/platform/tests/PlatformTests.c | 29 -------------------
 DocFormats/platform/tests/WrapperTests.c  | 39 ++++++++++++++++++++++++--
 consumers/dftest/src/main.c               |  2 --
 6 files changed, 64 insertions(+), 39 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/47cbcd6c/DocFormats/platform/CMakeLists.txt
----------------------------------------------------------------------
diff --git a/DocFormats/platform/CMakeLists.txt b/DocFormats/platform/CMakeLists.txt
index 6fdbc07..f3752e9 100644
--- a/DocFormats/platform/CMakeLists.txt
+++ b/DocFormats/platform/CMakeLists.txt
@@ -103,7 +103,6 @@ set(GroupSrc
     src/Wrapper.c)
 
 set(GroupTests
-    tests/PlatformTests.c
     tests/OStests.c
     tests/WrapperTests.c)
 

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/47cbcd6c/DocFormats/platform/src/Win32.c
----------------------------------------------------------------------
diff --git a/DocFormats/platform/src/Win32.c b/DocFormats/platform/src/Win32.c
index aa918da..d5a0ff5 100755
--- a/DocFormats/platform/src/Win32.c
+++ b/DocFormats/platform/src/Win32.c
@@ -26,7 +26,7 @@
 #define snprintf _snprintf
 #endif
 
-void DFErrorMsgSetWin32(char **errmsg, DWORD code)
+static void DFErrorMsgSetWin32(char **errmsg, DWORD code)
 {
     if (errmsg == NULL)
         return;
@@ -62,7 +62,7 @@ static int testAndSet(int *var,int value,HANDLE lock)
     return oldValue;
 }
 
-BOOL CALLBACK initOnceMutex(PINIT_ONCE initOnce,PVOID Parameter,PVOID *Context)
+static BOOL CALLBACK initOnceMutex(PINIT_ONCE initOnce,PVOID Parameter,PVOID *Context)
 {
     onceMutex = CreateMutex(NULL,FALSE,NULL);
     return TRUE;

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/47cbcd6c/DocFormats/platform/tests/OStests.c
----------------------------------------------------------------------
diff --git a/DocFormats/platform/tests/OStests.c b/DocFormats/platform/tests/OStests.c
index 1a6f2cd..ad6edb9 100644
--- a/DocFormats/platform/tests/OStests.c
+++ b/DocFormats/platform/tests/OStests.c
@@ -15,7 +15,26 @@
 #include "DFUnitTest.h"
 #include <stddef.h>
 
-static void test_sample(void)
+
+static void test_DFGetImageDimensions(void)
+{
+}
+
+
+
+static void test_DFInitOnce(void)
+{
+}
+
+
+
+static void test_DFMkdirIfAbsent(void)
+{
+}
+
+
+
+static void test_DFAddDirContents(void)
 {
 }
 
@@ -23,7 +42,10 @@ static void test_sample(void)
 
 TestGroup PlatformOSTests = {
     "platform.os", {
-        { "sample", PlainTest, test_sample },
-        { NULL, PlainTest, NULL }
+        { "DFGetImageDimensions", PlainTest, test_DFGetImageDimensions },
+        { "DFInitOnce",           PlainTest, test_DFInitOnce },
+        { "DFMkdirIfAbsent",      PlainTest, test_DFMkdirIfAbsent },
+        { "DFAddDirContents",     PlainTest, test_DFAddDirContents },
+        { NULL,                   PlainTest, NULL }
     }
 };

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/47cbcd6c/DocFormats/platform/tests/PlatformTests.c
----------------------------------------------------------------------
diff --git a/DocFormats/platform/tests/PlatformTests.c b/DocFormats/platform/tests/PlatformTests.c
deleted file mode 100644
index 3e8c968..0000000
--- a/DocFormats/platform/tests/PlatformTests.c
+++ /dev/null
@@ -1,29 +0,0 @@
-// Copyright 2012-2014 UX Productivity Pty Ltd
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-#include "DFUnitTest.h"
-#include <stddef.h>
-
-static void test_sample(void)
-{
-}
-
-
-
-TestGroup PlatformTests = {
-    "platform", {
-            { "sample", PlainTest, test_sample },
-            { NULL, PlainTest, NULL }
-    }
-};
-

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/47cbcd6c/DocFormats/platform/tests/WrapperTests.c
----------------------------------------------------------------------
diff --git a/DocFormats/platform/tests/WrapperTests.c b/DocFormats/platform/tests/WrapperTests.c
index f7b9532..edd8358 100644
--- a/DocFormats/platform/tests/WrapperTests.c
+++ b/DocFormats/platform/tests/WrapperTests.c
@@ -16,7 +16,37 @@
 
 
 
-static void test_sample(void)
+static void test_DFextZipOpen(void)
+{
+}
+
+
+
+static void test_DFextZipClose(void)
+{
+}
+
+
+
+static void test_DFextZipOpenNextFile(void)
+{
+}
+
+
+
+static void test_DFextZipCloseFile(void)
+{
+}
+
+
+
+static void test_DFextZipReadCurrentFile(void)
+{
+}
+
+
+
+static void test_DFextZipWriteCurrentFile(void)
 {
 }
 
@@ -24,7 +54,12 @@ static void test_sample(void)
 
 TestGroup PlatformWrapperTests = {
     "platform.wrapper", {
-            { "sample", PlainTest, test_sample },
+            { "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 }
     }
 };

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/47cbcd6c/consumers/dftest/src/main.c
----------------------------------------------------------------------
diff --git a/consumers/dftest/src/main.c b/consumers/dftest/src/main.c
index d0a4e28..737bf7f 100644
--- a/consumers/dftest/src/main.c
+++ b/consumers/dftest/src/main.c
@@ -36,7 +36,6 @@ extern TestGroup XMLTests;
 extern TestGroup LaTeXTests;
 extern TestGroup ODFTests;
 extern TestGroup WordTests;
-extern TestGroup PlatformTests;
 extern TestGroup PlatformOSTests;
 extern TestGroup PlatformWrapperTests;
 extern TestGroup BDTTests;
@@ -51,7 +50,6 @@ TestGroup *allGroups[] = {
     &LaTeXTests,
     &ODFTests,
     &WordTests,
-    &PlatformTests,
     &PlatformOSTests,
     &PlatformWrapperTests,
     NULL


Mime
View raw message