summaryrefslogtreecommitdiff
path: root/sal/qa/ByteSequence
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2003-04-01 12:21:07 +0000
committerVladimir Glazounov <vg@openoffice.org>2003-04-01 12:21:07 +0000
commite071a814e7685b549b998d6e20c24e52aba947e6 (patch)
tree25ad548da84f10be098e9c2294caa5e19754e8c7 /sal/qa/ByteSequence
parentb8ad5c0a2a9e056cbeca529f5136c0cfa55a47af (diff)
INTEGRATION: CWS qadev3 (1.6.2); FILE ADDED
2003/03/28 12:50:14 lla 1.6.2.1: #108453# get back all tests.
Diffstat (limited to 'sal/qa/ByteSequence')
-rw-r--r--sal/qa/ByteSequence/Byte_Const.h97
1 files changed, 97 insertions, 0 deletions
diff --git a/sal/qa/ByteSequence/Byte_Const.h b/sal/qa/ByteSequence/Byte_Const.h
new file mode 100644
index 000000000000..c1618c17f161
--- /dev/null
+++ b/sal/qa/ByteSequence/Byte_Const.h
@@ -0,0 +1,97 @@
+#ifndef _BYTE_CONST_H_
+#define _BYTE_CONST_H_
+
+//------------------------------------------------------------------------
+//------------------------------------------------------------------------
+#ifndef _SAL_TYPES_H_
+#include <sal/types.h>
+#endif
+
+//------------------------------------------------------------------------
+//------------------------------------------------------------------------
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+//------------------------------------------------------------------------
+//------------------------------------------------------------------------
+const sal_Int32 kTestByteCount1 = 7;
+const sal_Int32 kTestByteCount2 = 0;
+const sal_Int32 kTestByteCount3 = 45;
+const sal_Int32 kTestByteCount4 = 100;
+const sal_Int32 kTestByteCount5 = 23;
+const sal_Int32 kTestByteCount6 = 90;
+
+
+sal_Int8 kTestByte = 100;
+sal_Int8 kTestByte1 = 0;
+sal_Int8 kTestByte2 = 1;
+sal_Int8 kTestByte3 = 2;
+sal_Int8 kTestByte4 = -98;
+
+sal_Int8 kTestByte5[] = {kTestByte, kTestByte1, kTestByte2, kTestByte3, kTestByte4};
+
+sal_Int8 kTestByte60 = 56;
+sal_Int8 kTestByte61 = -1;
+sal_Int8 kTestByte62 = -23;
+sal_Int8 kTestByte63 = 21;
+sal_Int8 kTestByte64 = -128;
+sal_Int8 kTestByte65 = 127;
+sal_Int8 kTestByte6[] = {kTestByte60, kTestByte61, kTestByte62, kTestByte63, kTestByte64, kTestByte65};
+
+//------------------------------------------------------------------------
+
+char kTestChar = 45;
+char kTestChar0 = 0;
+char kTestChar1 = 500;
+char kTestChar2 = 78;
+char kTestChar3 = -155;
+
+sal_Int32 kTestSeqLen0 = 0;
+sal_Int32 kTestSeqLen1 = 5;
+sal_Int32 kTestSeqLen2 = 34;
+sal_Int32 kTestSeqLen3 = 270;
+
+sal_Sequence kTestEmptyByteSeq =
+{
+ 1, /* sal_Int32 refCount; */
+ kTestSeqLen0, /* sal_Int32 length; */
+ { kTestChar0 } /* sal_Unicode buffer[1]; */
+};
+
+sal_Sequence kTestByteSeq1 =
+{
+ 1, /* sal_Int32 refCount; */
+ kTestSeqLen1, /* sal_Int32 length; */
+ { kTestChar1 } /* sal_Unicode buffer[1]; */
+};
+
+sal_Sequence kTestByteSeq2 =
+{
+ 3, /* sal_Int32 refCount; */
+ kTestSeqLen2, /* sal_Int32 length; */
+ { kTestChar2 } /* sal_Unicode buffer[1]; */
+};
+
+sal_Sequence kTestByteSeq3 =
+{
+ 2, /* sal_Int32 refCount; */
+ kTestSeqLen3, /* sal_Int32 length; */
+ { kTestChar3 } /* sal_Unicode buffer[1]; */
+};
+
+//------------------------------------------------------------------------
+//------------------------------------------------------------------------
+
+#ifdef __cplusplus
+}
+#endif
+
+//------------------------------------------------------------------------
+//------------------------------------------------------------------------
+
+#endif /* _BYTE_CONST_H_ */
+
+