Lines Matching refs:m_aTestHelper
45 TestHelper m_aTestHelper; field in Test04
51 m_aTestHelper = new TestHelper( aLogWriter, "Test04: " ); in Test04()
58 String sTempFileURL = m_aTestHelper.CreateTempFile( m_xMSF ); in test()
61 m_aTestHelper.Error( "No valid temporary file was created!" ); in test()
71 m_aTestHelper.Error( "Can't create temporary storage representation!" ); in test()
78 XStorage xTempSubStorage1 = m_aTestHelper.openSubStorage( xTempStorage, in test()
83 m_aTestHelper.Error( "Can't create substorage!" ); in test()
92 …if ( !m_aTestHelper.WriteBytesToSubstream( xTempSubStorage1, "BigSubStream1", "MediaType1", true, … in test()
98 …if ( !m_aTestHelper.WriteBytesToSubstream( xTempSubStorage1, "SubStream1", "MediaType1", true, pBy… in test()
102 XStorage xTempSubStorage2 = m_aTestHelper.openSubStorage( xTempStorage, in test()
107 m_aTestHelper.Error( "Can't create substorage!" ); in test()
112 …if ( !m_aTestHelper.WriteBytesToSubstream( xTempSubStorage2, "BigSubStream2", "MediaType2", false,… in test()
118 …if ( !m_aTestHelper.WriteBytesToSubstream( xTempSubStorage2, "SubStream2", "MediaType2", false, pB… in test()
122 if ( !m_aTestHelper.setStorageTypeAndCheckProps( xTempStorage, in test()
129 if ( !m_aTestHelper.setStorageTypeAndCheckProps( xTempSubStorage1, in test()
136 if ( !m_aTestHelper.setStorageTypeAndCheckProps( xTempSubStorage2, in test()
151 m_aTestHelper.Error( "Can't create storage based on temporary file!" ); in test()
155 if ( !m_aTestHelper.copyElementTo( xTempStorage, "SubStorage1", xTempFileStorage ) ) in test()
159 if ( !m_aTestHelper.commitStorage( xTempSubStorage2 ) ) in test()
163 if ( !m_aTestHelper.disposeStorage( xTempSubStorage2 ) ) in test()
166 if ( !m_aTestHelper.moveElementTo( xTempStorage, "SubStorage2", xTempFileStorage ) ) in test()
173 m_aTestHelper.Error( "SubStorage2 must be disposed already!" ); in test()
181 m_aTestHelper.Error( "Wrong exception in case of disposed storage, exception: " + e ); in test()
185 if ( !m_aTestHelper.copyElementTo( xTempSubStorage1, "SubStream1", xTempFileStorage ) ) in test()
188 if ( !m_aTestHelper.renameElement( xTempFileStorage, "SubStream1", "SubStream1_copy" ) ) in test()
191 if ( !m_aTestHelper.moveElementTo( xTempSubStorage1, "SubStream1", xTempFileStorage ) ) in test()
194 if ( !m_aTestHelper.copyElementTo( xTempSubStorage1, "BigSubStream1", xTempFileStorage ) ) in test()
197 if ( !m_aTestHelper.renameElement( xTempFileStorage, "BigSubStream1", "BigSubStream1_copy" ) ) in test()
200 if ( !m_aTestHelper.moveElementTo( xTempSubStorage1, "BigSubStream1", xTempFileStorage ) ) in test()
203 if ( !m_aTestHelper.commitStorage( xTempFileStorage ) ) in test()
207 …if ( !m_aTestHelper.disposeStorage( xTempStorage ) || !m_aTestHelper.disposeStorage( xTempFileStor… in test()
220 m_aTestHelper.Error( "Can't reopen storage based on temporary file!" ); in test()
225 XStorage xResSubStorage1 = m_aTestHelper.openSubStorage( xResStorage, in test()
230 m_aTestHelper.Error( "Can't open existing substorage!" ); in test()
234 …if ( !m_aTestHelper.checkStorageProperties( xResSubStorage1, "MediaType4", false, ElementModes.REA… in test()
239 XStorage xResSubStorage2 = m_aTestHelper.openSubStorage( xResStorage, in test()
244 m_aTestHelper.Error( "Can't open existing substorage!" ); in test()
248 …if ( !m_aTestHelper.checkStorageProperties( xResSubStorage2, "MediaType5", false, ElementModes.REA… in test()
254 if ( !m_aTestHelper.checkStream( xResStorage, "SubStream1", "MediaType1", true, pBytes1 ) ) in test()
257 if ( !m_aTestHelper.checkStream( xResStorage, "BigSubStream1", "MediaType1", true, pBigBytes ) ) in test()
260 if ( !m_aTestHelper.checkStream( xResStorage, "SubStream1_copy", "MediaType1", true, pBytes1 ) ) in test()
263 …if ( !m_aTestHelper.checkStream( xResStorage, "BigSubStream1_copy", "MediaType1", true, pBigBytes … in test()
266 if ( !m_aTestHelper.checkStream( xResSubStorage1, "SubStream1", "MediaType1", true, pBytes1 ) ) in test()
269 …if ( !m_aTestHelper.checkStream( xResSubStorage1, "BigSubStream1", "MediaType1", true, pBigBytes )… in test()
272 if ( !m_aTestHelper.checkStream( xResSubStorage2, "SubStream2", "MediaType2", false, pBytes2 ) ) in test()
275 …if ( !m_aTestHelper.checkStream( xResSubStorage2, "BigSubStream2", "MediaType2", false, pBigBytes … in test()
279 if ( !m_aTestHelper.disposeStorage( xResSubStorage2 ) ) in test()
283 if ( !m_aTestHelper.removeElement( xResStorage, "SubStorage2" ) ) in test()
290 m_aTestHelper.Error( "SubStorage2 must be removed already!" ); in test()
294 m_aTestHelper.Error( "Can't get access to root storage, exception: " + e ); in test()
302 m_aTestHelper.Error( "SubStorage2 must be disposed already!" ); in test()
310 m_aTestHelper.Error( "Wrong exception in case of disposed storage, exception: " + e ); in test()
315 if ( !m_aTestHelper.disposeStorage( xResStorage ) ) in test()
322 m_aTestHelper.Error( "Exception: " + e ); in test()