summaryrefslogtreecommitdiff
path: root/package/qa
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@suse.com>2012-09-21 13:09:29 +0100
committerMichael Meeks <michael.meeks@suse.com>2012-09-21 15:37:17 +0100
commit9b0198b2442bc749491d0f1e5e2c811346e5d568 (patch)
tree6af3f097947c8d5a4ebf5fd5599d1fe1fcc9e96c /package/qa
parentb3603e0e0e5dbfbeaa2426c499e8f64be2d15765 (diff)
package: convert internal ZIP handling data-types to 64bit
Prepare for a ZIP64 implementation. Audit all "Size" property fetches through Anys. Audit all uses of nSize, nCompressedSize, nOffset through the code. Add FIXME64: comments to all points requiring future work.
Diffstat (limited to 'package/qa')
-rw-r--r--package/qa/ofopxmlstorages/TestHelper.java4
-rw-r--r--package/qa/storages/TestHelper.java6
2 files changed, 5 insertions, 5 deletions
diff --git a/package/qa/ofopxmlstorages/TestHelper.java b/package/qa/ofopxmlstorages/TestHelper.java
index fa2baf48b261..d3cdb109eac9 100644
--- a/package/qa/ofopxmlstorages/TestHelper.java
+++ b/package/qa/ofopxmlstorages/TestHelper.java
@@ -99,7 +99,7 @@ public class TestHelper {
// check size property of the stream
try
{
- int nSize = AnyConverter.toInt( xPropSet.getPropertyValue( "Size" ) );
+ long nSize = AnyConverter.toLong( xPropSet.getPropertyValue( "Size" ) );
if ( nSize != pBytes.length )
{
Error( "The 'Size' property of substream '" + sStreamName + "' contains wrong value!" );
@@ -466,7 +466,7 @@ public class TestHelper {
{
// get "MediaType" and "Size" properties and control there values
String sPropMediaType = AnyConverter.toString( xPropSet.getPropertyValue( "MediaType" ) );
- int nPropSize = AnyConverter.toInt( xPropSet.getPropertyValue( "Size" ) );
+ long nPropSize = AnyConverter.toLong( xPropSet.getPropertyValue( "Size" ) );
bOk = true;
if ( !sPropMediaType.equals( sMediaType ) )
diff --git a/package/qa/storages/TestHelper.java b/package/qa/storages/TestHelper.java
index a58425c03b47..82494c89bf87 100644
--- a/package/qa/storages/TestHelper.java
+++ b/package/qa/storages/TestHelper.java
@@ -98,7 +98,7 @@ public class TestHelper {
// check size property of the stream
try
{
- int nSize = AnyConverter.toInt( xPropSet.getPropertyValue( "Size" ) );
+ long nSize = AnyConverter.toLong( xPropSet.getPropertyValue( "Size" ) );
if ( nSize != pBytes.length )
{
Error( "The 'Size' property of substream '" + sStreamName + "' contains wrong value!" );
@@ -188,7 +188,7 @@ public class TestHelper {
// check size property of the stream
try
{
- int nSize = AnyConverter.toInt( xPropSet.getPropertyValue( "Size" ) );
+ long nSize = AnyConverter.toLong( xPropSet.getPropertyValue( "Size" ) );
if ( nSize != pBytes.length )
{
Error( "The 'Size' property of substream '" + sStreamName + "' contains wrong value!" );
@@ -825,7 +825,7 @@ public class TestHelper {
{
// get "MediaType" and "Size" properties and control there values
String sPropMediaType = AnyConverter.toString( xPropSet.getPropertyValue( "MediaType" ) );
- int nPropSize = AnyConverter.toInt( xPropSet.getPropertyValue( "Size" ) );
+ long nPropSize = AnyConverter.toLong( xPropSet.getPropertyValue( "Size" ) );
boolean bPropCompress = AnyConverter.toBoolean( xPropSet.getPropertyValue( "Compressed" ) );
bOk = true;