os/mm/mmapitest/mmsvs/suite/icl/T_ImageEncoder/scripts/MM-ICL-ENCDE-PublicApi.script
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 //
     2 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
     3 // All rights reserved.
     4 // This component and the accompanying materials are made available
     5 // under the terms of "Eclipse Public License v1.0"
     6 // which accompanies this distribution, and is available
     7 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     8 //
     9 // Initial Contributors:
    10 // Nokia Corporation - initial contribution.
    11 //
    12 // Contributors:
    13 //
    14 // Description: 
    15 //
    16 //
    17 //! @file
    18 //! @SYMTestSuiteName		MM-ICL-ENCDE-PublicApi
    19 //! @SYMScriptTestEnvironment	This test script requires a basic ROM.
    20 ////////////////////////////////////////////////////////////////////
    21 // T_ImageEncoder.script
    22 //
    23 // Tests all public elements of the CImageEncoder class
    24 // as a means of confidence that the APIs work as expected.
    25 //
    26 // The purpose is to provide a regression test suite of PublishedAll APIs for CImageEncoder.
    27 // The tests are fully automated.
    28 /////////////////////////////////////////////////////////////////////
    29 
    30 LOAD_SUITE	T_ImageEncoder
    31 
    32 
    33 START_TESTCASE 			MM-ICL-ENCDE-PublicApi-0001
    34 //! @SYMTestCaseID		MM-ICL-ENCDE-PublicApi-0001
    35 //! @SYMAPI			CImageEncoder
    36 //! @SYMAuthor			Louis Nayegon
    37 //! @SYMCreationDate		29/11/2005
    38 //! @SYMTestCaseDependencies	setup-MM-ICL-ENCDE-PublicApi.script
    39 //! @SYMTestCaseDesc		Encode to bmp from 24-bit image file giving an image type, using RFile.
    40 //!				Uses API elements: FileNewL(), Convert().
    41 //! @SYMTestActions    		1. Create encoder for bmp file image. 2. Encode image.
    42 //! @SYMTestStatus		Implemented
    43 //! @SYMTestPriority		Critical
    44 //! @SYMTestExpectedResults	Image encoded with no errors.
    45 //! @SYMTestType		CIT
    46 	START_TEST_BLOCK	10		T_ImageEncoder	\multimedia\MM-ICL-ENCDE-PublicApi.ini
    47 		CREATE_OBJECT	CImageEncoder	imageencoder1
    48 		COMMAND		imageencoder1	FileNewL	MM-ICL-ENCDE-PublicApi-0001-001-FileNewL_command01
    49 		COMMAND		imageencoder1	Convert		MM-ICL-ENCDE-PublicApi-0001-001-Convert_command02
    50 		OUTSTANDING
    51 		COMMAND		imageencoder1	~
    52 	END_TEST_BLOCK
    53 END_TESTCASE 			MM-ICL-ENCDE-PublicApi-0001
    54 
    55 START_TESTCASE 			MM-ICL-ENCDE-PublicApi-0002
    56 //! @SYMTestCaseID		MM-ICL-ENCDE-PublicApi-0002
    57 //! @SYMAPI			CImageEncoder
    58 //! @SYMAuthor			Louis Nayegon
    59 //! @SYMCreationDate		29/11/2005
    60 //! @SYMTestCaseDependencies	setup-MM-ICL-ENCDE-PublicApi.script
    61 //! @SYMTestCaseDesc		Encode to bmp from 16-bit image file giving a mime type, using RFile.
    62 //!				Uses API elements: FileNewL(), Convert().
    63 //! @SYMTestActions    		1. Create encoder for bmp file image. 2. Encode image.
    64 //! @SYMTestStatus		Implemented
    65 //! @SYMTestPriority		Critical
    66 //! @SYMTestExpectedResults	Image encoded with no errors.
    67 //! @SYMTestType		CIT
    68 	START_TEST_BLOCK	10		T_ImageEncoder	\multimedia\MM-ICL-ENCDE-PublicApi.ini
    69 		CREATE_OBJECT	CImageEncoder	imageencoder1
    70 		COMMAND		imageencoder1	FileNewL	MM-ICL-ENCDE-PublicApi-0002-001-FileNewL_command01
    71 		COMMAND		imageencoder1	Convert		MM-ICL-ENCDE-PublicApi-0002-001-Convert_command02
    72 		OUTSTANDING
    73 		COMMAND		imageencoder1	~
    74 	END_TEST_BLOCK
    75 END_TESTCASE 			MM-ICL-ENCDE-PublicApi-0002
    76 
    77 START_TESTCASE 			MM-ICL-ENCDE-PublicApi-0003
    78 //! @SYMTestCaseID		MM-ICL-ENCDE-PublicApi-0003
    79 //! @SYMAPI			CImageEncoder
    80 //! @SYMAuthor			Louis Nayegon
    81 //! @SYMCreationDate		29/11/2005
    82 //! @SYMTestCaseDependencies	setup-MM-ICL-ENCDE-PublicApi.script
    83 //! @SYMTestCaseDesc		Encode to bmp from 8-bit image file giving an image type, without using RFile.
    84 //!				Uses API elements: FileNewL(), Convert().
    85 //! @SYMTestActions    		1. Create encoder for bmp file image. 2. Encode image.
    86 //! @SYMTestStatus		Implemented
    87 //! @SYMTestPriority		Critical
    88 //! @SYMTestExpectedResults	Image encoded with no errors.
    89 //! @SYMTestType		CIT
    90 	START_TEST_BLOCK	10		T_ImageEncoder	\multimedia\MM-ICL-ENCDE-PublicApi.ini
    91 		CREATE_OBJECT	CImageEncoder	imageencoder1
    92 		COMMAND		imageencoder1	FileNewL	MM-ICL-ENCDE-PublicApi-0003-001-FileNewL_command01
    93 		COMMAND		imageencoder1	Convert		MM-ICL-ENCDE-PublicApi-0003-001-Convert_command02
    94 		OUTSTANDING
    95 		COMMAND		imageencoder1	~
    96 	END_TEST_BLOCK
    97 END_TESTCASE 			MM-ICL-ENCDE-PublicApi-0003
    98 
    99 START_TESTCASE 			MM-ICL-ENCDE-PublicApi-0004
   100 //! @SYMTestCaseID		MM-ICL-ENCDE-PublicApi-0004
   101 //! @SYMAPI			CImageEncoder
   102 //! @SYMAuthor			Louis Nayegon
   103 //! @SYMCreationDate		29/11/2005
   104 //! @SYMTestCaseDependencies	setup-MM-ICL-ENCDE-PublicApi.script
   105 //! @SYMTestCaseDesc		Encode to bmp from 4-bit image file giving a mime type, without using RFile.
   106 //!				Uses API elements: FileNewL(), Convert().
   107 //! @SYMTestActions    		1. Create encoder for bmp file image. 2. Encode image.
   108 //! @SYMTestStatus		Implemented
   109 //! @SYMTestPriority		Critical
   110 //! @SYMTestExpectedResults	Image encoded with no errors.
   111 //! @SYMTestType		CIT
   112 	START_TEST_BLOCK	10		T_ImageEncoder	\multimedia\MM-ICL-ENCDE-PublicApi.ini
   113 		CREATE_OBJECT	CImageEncoder	imageencoder1
   114 		COMMAND		imageencoder1	FileNewL	MM-ICL-ENCDE-PublicApi-0004-001-FileNewL_command01
   115 		COMMAND		imageencoder1	Convert		MM-ICL-ENCDE-PublicApi-0004-001-Convert_command02
   116 		OUTSTANDING
   117 		COMMAND		imageencoder1	~
   118 	END_TEST_BLOCK
   119 END_TESTCASE 			MM-ICL-ENCDE-PublicApi-0004
   120 
   121 START_TESTCASE 			MM-ICL-ENCDE-PublicApi-0005
   122 //! @SYMTestCaseID		MM-ICL-ENCDE-PublicApi-0005
   123 //! @SYMAPI			CImageEncoder
   124 //! @SYMAuthor			Louis Nayegon
   125 //! @SYMCreationDate		29/11/2005
   126 //! @SYMTestCaseDependencies	setup-MM-ICL-ENCDE-PublicApi.script
   127 //! @SYMTestCaseDesc		Encode to bmp from 2-bit image in buffer giving an image type.
   128 //!				Uses API elements: DataNewL(), Convert().
   129 //! @SYMTestActions    		1. Create encoder for bmp file buffer. 2. Encode image.
   130 //! @SYMTestStatus		Implemented
   131 //! @SYMTestPriority		Critical
   132 //! @SYMTestExpectedResults	Image encoded with no errors.
   133 //! @SYMTestType		CIT
   134 	START_TEST_BLOCK	10		T_ImageEncoder	\multimedia\MM-ICL-ENCDE-PublicApi.ini
   135 		CREATE_OBJECT	CImageEncoder	imageencoder1
   136 		COMMAND		imageencoder1	DataNewL	MM-ICL-ENCDE-PublicApi-0005-001-DataNewL_command01
   137 		COMMAND		imageencoder1	Convert		MM-ICL-ENCDE-PublicApi-0005-001-Convert_command02
   138 		OUTSTANDING
   139 		COMMAND		imageencoder1	~
   140 	END_TEST_BLOCK
   141 END_TESTCASE 			MM-ICL-ENCDE-PublicApi-0005
   142 
   143 START_TESTCASE 			MM-ICL-ENCDE-PublicApi-0006
   144 //! @SYMTestCaseID		MM-ICL-ENCDE-PublicApi-0006
   145 //! @SYMAPI			CImageEncoder
   146 //! @SYMAuthor			Louis Nayegon
   147 //! @SYMCreationDate		29/11/2005
   148 //! @SYMTestCaseDependencies	setup-MM-ICL-ENCDE-PublicApi.script
   149 //! @SYMTestCaseDesc		Encode to bmp from 1-bit image in buffer giving a mime type.
   150 //!				Uses API elements: DataNewL(), SetThumbnail(), Convert(), ImplementationUid().
   151 //! @SYMTestActions    		1. Create encoder for bmp file buffer. 2. Set to encode thumbnail. 3. Encode image. 4. Get implementation UID of encoder used.
   152 //! @SYMTestStatus		Implemented
   153 //! @SYMTestPriority		Critical
   154 //! @SYMTestExpectedResults	Image encoded with no errors.
   155 //! @SYMTestType		CIT
   156 	START_TEST_BLOCK	10		T_ImageEncoder		\multimedia\MM-ICL-ENCDE-PublicApi.ini
   157 		CREATE_OBJECT	CImageEncoder	imageencoder1
   158 		COMMAND		imageencoder1	DataNewL		MM-ICL-ENCDE-PublicApi-0006-001-DataNewL_command01
   159 		COMMAND		imageencoder1	SetThumbnail		MM-ICL-ENCDE-PublicApi-0006-001-SetThumbnail_command02
   160 		COMMAND		imageencoder1	Convert			MM-ICL-ENCDE-PublicApi-0006-001-Convert_command03
   161 		OUTSTANDING
   162 		COMMAND		imageencoder1	ImplementationUid
   163 		COMMAND		imageencoder1	~
   164 	END_TEST_BLOCK
   165 END_TESTCASE 			MM-ICL-ENCDE-PublicApi-0006
   166 
   167 START_TESTCASE 			MM-ICL-ENCDE-PublicApi-0007
   168 //! @SYMTestCaseID		MM-ICL-ENCDE-PublicApi-0007
   169 //! @SYMAPI			CImageEncoder
   170 //! @SYMAuthor			Louis Nayegon
   171 //! @SYMCreationDate		29/11/2005
   172 //! @SYMTestCaseDependencies	setup-MM-ICL-ENCDE-PublicApi.script
   173 //! @SYMTestCaseDesc		Get list of file extensions that can be encoded and their corresponding MIME types.
   174 //!				Uses API elements: GetFileTypesL().
   175 //! @SYMTestActions    		1. Get list of file extensions that can be encoded and their corresponding MIME types.
   176 //! @SYMTestStatus		Implemented
   177 //! @SYMTestPriority		High
   178 //! @SYMTestExpectedResults	Information returned with no errors.
   179 //! @SYMTestType		CIT
   180 	START_TEST_BLOCK	10		T_ImageEncoder	\multimedia\MM-ICL-ENCDE-PublicApi.ini
   181 		CREATE_OBJECT	CImageEncoder	imageencoder1
   182 		COMMAND		imageencoder1	GetFileTypesL
   183 		COMMAND		imageencoder1	~
   184 	END_TEST_BLOCK
   185 END_TESTCASE 			MM-ICL-ENCDE-PublicApi-0007
   186 
   187 START_TESTCASE 			MM-ICL-ENCDE-PublicApi-0008
   188 //! @SYMTestCaseID		MM-ICL-ENCDE-PublicApi-0008
   189 //! @SYMAPI			CImageEncoder
   190 //! @SYMAuthor			Louis Nayegon
   191 //! @SYMCreationDate		29/11/2005
   192 //! @SYMTestCaseDependencies	setup-MM-ICL-ENCDE-PublicApi.script
   193 //! @SYMTestCaseDesc		Try to get list of image sub-types that can be encoded for an unsupported image type.
   194 //!				Uses API elements: GetImageSubTypesL().
   195 //! @SYMTestActions    		1. Try to get list of image sub-types that can be encoded for an unsupported image type.
   196 //! @SYMTestStatus		Implemented
   197 //! @SYMTestPriority		High
   198 //! @SYMTestExpectedResults	KErrNotFound returned.
   199 //! @SYMTestType		CIT
   200 	START_TEST_BLOCK		10		T_ImageEncoder		\multimedia\MM-ICL-ENCDE-PublicApi.ini
   201 		CREATE_OBJECT		CImageEncoder	imageencoder1
   202 		COMMAND	!Error=-1	imageencoder1	GetImageSubTypesL	MM-ICL-ENCDE-PublicApi-0008-001-GetImageSubTypesL_command01
   203 		COMMAND			imageencoder1	~
   204 	END_TEST_BLOCK
   205 END_TESTCASE 			MM-ICL-ENCDE-PublicApi-0008
   206 
   207 START_TESTCASE 			MM-ICL-ENCDE-PublicApi-0009
   208 //! @SYMTestCaseID		MM-ICL-ENCDE-PublicApi-0009
   209 //! @SYMAPI			CImageEncoder
   210 //! @SYMAuthor			Louis Nayegon
   211 //! @SYMCreationDate		29/11/2005
   212 //! @SYMTestCaseDependencies	setup-MM-ICL-ENCDE-PublicApi.script
   213 //! @SYMTestCaseDesc		Get list of basic image types that can be encoded.
   214 //!				Uses API elements: GetImageTypesL().
   215 //! @SYMTestActions    		1. Get list of basic image types that can be encoded.
   216 //! @SYMTestStatus		Implemented
   217 //! @SYMTestPriority		High
   218 //! @SYMTestExpectedResults	Information returned with no errors.
   219 //! @SYMTestType		CIT
   220 	START_TEST_BLOCK	10		T_ImageEncoder	\multimedia\MM-ICL-ENCDE-PublicApi.ini
   221 		CREATE_OBJECT	CImageEncoder	imageencoder1
   222 		COMMAND		imageencoder1	GetImageTypesL
   223 		COMMAND		imageencoder1	~
   224 	END_TEST_BLOCK
   225 END_TESTCASE 			MM-ICL-ENCDE-PublicApi-0009
   226 
   227 
   228 START_TESTCASE 			MM-ICL-ENCDE-PublicApi-0010
   229 //! @SYMTestCaseID		MM-ICL-ENCDE-PublicApi-0010
   230 //! @SYMAPI			CImageEncoder
   231 //! @SYMAuthor			James Mechen
   232 //! @SYMCreationDate		13/01/2006
   233 //! @SYMTestCaseDependencies	setup-MM-ICL-ENCDE-PublicApi.script
   234 //! @SYMTestCaseDesc		Encode to gif from 24-bit image file giving an image type, using RFile.
   235 //!				Uses API elements: FileNewL(), Convert().
   236 //! @SYMTestActions    		1. Create encoder for gif file image. 2. Encode image.
   237 //! @SYMTestStatus		Implemented
   238 //! @SYMTestPriority		Critical
   239 //! @SYMTestExpectedResults	Image encoded with no errors.
   240 //! @SYMTestType		CIT
   241 	START_TEST_BLOCK	10		T_ImageEncoder	\multimedia\MM-ICL-ENCDE-PublicApi.ini
   242 		CREATE_OBJECT	CImageEncoder	imageencoder1
   243 		COMMAND		imageencoder1	FileNewL	MM-ICL-ENCDE-PublicApi-0010-001-FileNewL_command01
   244 		COMMAND		imageencoder1	Convert		MM-ICL-ENCDE-PublicApi-0010-001-Convert_command02
   245 		OUTSTANDING
   246 		COMMAND		imageencoder1	~
   247 	END_TEST_BLOCK
   248 END_TESTCASE 			MM-ICL-ENCDE-PublicApi-0010
   249 
   250 START_TESTCASE 			MM-ICL-ENCDE-PublicApi-0011
   251 //! @SYMTestCaseID		MM-ICL-ENCDE-PublicApi-0011
   252 //! @SYMAPI			CImageEncoder
   253 //! @SYMAuthor			James Mechen
   254 //! @SYMCreationDate		13/01/2006
   255 //! @SYMTestCaseDependencies	setup-MM-ICL-ENCDE-PublicApi.script
   256 //! @SYMTestCaseDesc		Encode to gif from 16-bit image file giving a mime type, using RFile.
   257 //!				Uses API elements: FileNewL(), Convert().
   258 //! @SYMTestActions    		1. Create encoder for gif file image. 2. Encode image.
   259 //! @SYMTestStatus		Implemented
   260 //! @SYMTestPriority		Critical
   261 //! @SYMTestExpectedResults	Image encoded with no errors.
   262 //! @SYMTestType		CIT
   263 	START_TEST_BLOCK	10		T_ImageEncoder	\multimedia\MM-ICL-ENCDE-PublicApi.ini
   264 		CREATE_OBJECT	CImageEncoder	imageencoder1
   265 		COMMAND		imageencoder1	FileNewL	MM-ICL-ENCDE-PublicApi-0011-001-FileNewL_command01
   266 		COMMAND		imageencoder1	Convert		MM-ICL-ENCDE-PublicApi-0011-001-Convert_command02
   267 		OUTSTANDING
   268 		COMMAND		imageencoder1	~
   269 	END_TEST_BLOCK
   270 END_TESTCASE 			MM-ICL-ENCDE-PublicApi-0011
   271 
   272 START_TESTCASE 			MM-ICL-ENCDE-PublicApi-0012
   273 //! @SYMTestCaseID		MM-ICL-ENCDE-PublicApi-0012
   274 //! @SYMAPI			CImageEncoder
   275 //! @SYMAuthor			James Mechen
   276 //! @SYMCreationDate		13/01/2006
   277 //! @SYMTestCaseDependencies	setup-MM-ICL-ENCDE-PublicApi.script
   278 //! @SYMTestCaseDesc		Encode to gif from 8-bit image file giving an image type, without using RFile.
   279 //!				Uses API elements: FileNewL(), Convert().
   280 //! @SYMTestActions    		1. Create encoder for gif file image. 2. Encode image.
   281 //! @SYMTestStatus		Implemented
   282 //! @SYMTestPriority		Critical
   283 //! @SYMTestExpectedResults	Image encoded with no errors.
   284 //! @SYMTestType		CIT
   285 	START_TEST_BLOCK	10		T_ImageEncoder	\multimedia\MM-ICL-ENCDE-PublicApi.ini
   286 		CREATE_OBJECT	CImageEncoder	imageencoder1
   287 		COMMAND		imageencoder1	FileNewL	MM-ICL-ENCDE-PublicApi-0012-001-FileNewL_command01
   288 		COMMAND		imageencoder1	Convert		MM-ICL-ENCDE-PublicApi-0012-001-Convert_command02
   289 		OUTSTANDING
   290 		COMMAND		imageencoder1	~
   291 	END_TEST_BLOCK
   292 END_TESTCASE 			MM-ICL-ENCDE-PublicApi-0012
   293 
   294 START_TESTCASE 			MM-ICL-ENCDE-PublicApi-0013
   295 //! @SYMTestCaseID		MM-ICL-ENCDE-PublicApi-0013
   296 //! @SYMAPI			CImageEncoder
   297 //! @SYMAuthor			James Mechen
   298 //! @SYMCreationDate		13/01/2006
   299 //! @SYMTestCaseDependencies	setup-MM-ICL-ENCDE-PublicApi.script
   300 //! @SYMTestCaseDesc		Encode to gif from 4-bit image file giving a mime type, without using RFile.
   301 //!				Uses API elements: FileNewL(), Convert().
   302 //! @SYMTestActions    		1. Create encoder for gif file image. 2. Encode image.
   303 //! @SYMTestStatus		Implemented
   304 //! @SYMTestPriority		Critical
   305 //! @SYMTestExpectedResults	Image encoded with no errors.
   306 //! @SYMTestType		CIT
   307 	START_TEST_BLOCK	10		T_ImageEncoder	\multimedia\MM-ICL-ENCDE-PublicApi.ini
   308 		CREATE_OBJECT	CImageEncoder	imageencoder1
   309 		COMMAND		imageencoder1	FileNewL	MM-ICL-ENCDE-PublicApi-0013-001-FileNewL_command01
   310 		COMMAND		imageencoder1	Convert		MM-ICL-ENCDE-PublicApi-0013-001-Convert_command02
   311 		OUTSTANDING
   312 		COMMAND		imageencoder1	~
   313 	END_TEST_BLOCK
   314 END_TESTCASE 			MM-ICL-ENCDE-PublicApi-0013
   315 
   316 START_TESTCASE 			MM-ICL-ENCDE-PublicApi-0014
   317 //! @SYMTestCaseID		MM-ICL-ENCDE-PublicApi-0014
   318 //! @SYMAPI			CImageEncoder
   319 //! @SYMAuthor			James Mechen
   320 //! @SYMCreationDate		13/01/2006
   321 //! @SYMTestCaseDependencies	setup-MM-ICL-ENCDE-PublicApi.script
   322 //! @SYMTestCaseDesc		Encode to gif from 2-bit image in buffer giving an image type.
   323 //!				Uses API elements: DataNewL(), Convert().
   324 //! @SYMTestActions    		1. Create encoder for gif file buffer. 2. Encode image.
   325 //! @SYMTestStatus		Implemented
   326 //! @SYMTestPriority		Critical
   327 //! @SYMTestExpectedResults	Image encoded with no errors.
   328 //! @SYMTestType		CIT
   329 	START_TEST_BLOCK	10		T_ImageEncoder	\multimedia\MM-ICL-ENCDE-PublicApi.ini
   330 		CREATE_OBJECT	CImageEncoder	imageencoder1
   331 		COMMAND		imageencoder1	DataNewL	MM-ICL-ENCDE-PublicApi-0014-001-DataNewL_command01
   332 		COMMAND		imageencoder1	Convert		MM-ICL-ENCDE-PublicApi-0014-001-Convert_command02
   333 		OUTSTANDING
   334 		COMMAND		imageencoder1	~
   335 	END_TEST_BLOCK
   336 END_TESTCASE 			MM-ICL-ENCDE-PublicApi-0014
   337 
   338 START_TESTCASE 			MM-ICL-ENCDE-PublicApi-0015
   339 //! @SYMTestCaseID		MM-ICL-ENCDE-PublicApi-0015
   340 //! @SYMAPI			CImageEncoder
   341 //! @SYMAuthor			James Mechen
   342 //! @SYMCreationDate		13/01/2006
   343 //! @SYMTestCaseDependencies	setup-MM-ICL-ENCDE-PublicApi.script
   344 //! @SYMTestCaseDesc		Encode to gif from 1-bit image in buffer giving a mime type.
   345 //!				Uses API elements: DataNewL(), SetThumbnail(), Convert(), ImplementationUid().
   346 //! @SYMTestActions    		1. Create encoder for gif file buffer. 2. Set to encode thumbnail. 3. Encode image. 4. Get implementation UID of encoder used.
   347 //! @SYMTestStatus		Implemented
   348 //! @SYMTestPriority		Critical
   349 //! @SYMTestExpectedResults	Image encoded with no errors.
   350 //! @SYMTestType		CIT
   351 	START_TEST_BLOCK	10		T_ImageEncoder	\multimedia\MM-ICL-ENCDE-PublicApi.ini
   352 		CREATE_OBJECT	CImageEncoder	imageencoder1
   353 		COMMAND		imageencoder1	DataNewL		MM-ICL-ENCDE-PublicApi-0015-001-DataNewL_command01
   354 		COMMAND		imageencoder1	SetThumbnail		MM-ICL-ENCDE-PublicApi-0015-001-SetThumbnail_command02
   355 		COMMAND		imageencoder1	Convert			MM-ICL-ENCDE-PublicApi-0015-001-Convert_command03
   356 		OUTSTANDING
   357 		COMMAND		imageencoder1	ImplementationUid
   358 		COMMAND		imageencoder1	~
   359 	END_TEST_BLOCK
   360 END_TESTCASE 			MM-ICL-ENCDE-PublicApi-0015
   361 
   362 
   363 START_TESTCASE 			MM-ICL-ENCDE-PublicApi-0016
   364 //! @SYMTestCaseID		MM-ICL-ENCDE-PublicApi-0016
   365 //! @SYMAPI			CImageEncoder
   366 //! @SYMAuthor			James Mechen
   367 //! @SYMCreationDate		13/01/2006
   368 //! @SYMTestCaseDependencies	setup-MM-ICL-ENCDE-PublicApi.script
   369 //! @SYMTestCaseDesc		Encode to jpg from 24-bit image file giving an image type, using RFile.
   370 //!				Uses API elements: FileNewL(), Convert().
   371 //! @SYMTestActions    		1. Create encoder for jpg file image. 2. Encode image.
   372 //! @SYMTestStatus		Implemented
   373 //! @SYMTestPriority		Critical
   374 //! @SYMTestExpectedResults	Image encoded with no errors.
   375 //! @SYMTestType		CIT
   376 	START_TEST_BLOCK	10		T_ImageEncoder	\multimedia\MM-ICL-ENCDE-PublicApi.ini
   377 		CREATE_OBJECT	CImageEncoder	imageencoder1
   378 		COMMAND		imageencoder1	FileNewL	MM-ICL-ENCDE-PublicApi-0016-001-FileNewL_command01
   379 		COMMAND		imageencoder1	Convert		MM-ICL-ENCDE-PublicApi-0016-001-Convert_command02
   380 		OUTSTANDING
   381 		COMMAND		imageencoder1	~
   382 	END_TEST_BLOCK
   383 END_TESTCASE 			MM-ICL-ENCDE-PublicApi-0016
   384 
   385 START_TESTCASE 			MM-ICL-ENCDE-PublicApi-0017
   386 //! @SYMTestCaseID		MM-ICL-ENCDE-PublicApi-0017
   387 //! @SYMAPI			CImageEncoder
   388 //! @SYMAuthor			James Mechen
   389 //! @SYMCreationDate		13/01/2006
   390 //! @SYMTestCaseDependencies	setup-MM-ICL-ENCDE-PublicApi.script
   391 //! @SYMTestCaseDesc		Encode to jpg from 16-bit image file giving a mime type, using RFile.
   392 //!				Uses API elements: FileNewL(), Convert().
   393 //! @SYMTestActions    		1. Create encoder for jpg file image. 2. Encode image.
   394 //! @SYMTestStatus		Implemented
   395 //! @SYMTestPriority		Critical
   396 //! @SYMTestExpectedResults	Image encoded with no errors.
   397 //! @SYMTestType		CIT
   398 	START_TEST_BLOCK	10		T_ImageEncoder	\multimedia\MM-ICL-ENCDE-PublicApi.ini
   399 		CREATE_OBJECT	CImageEncoder	imageencoder1
   400 		COMMAND		imageencoder1	FileNewL	MM-ICL-ENCDE-PublicApi-0017-001-FileNewL_command01
   401 		COMMAND		imageencoder1	Convert		MM-ICL-ENCDE-PublicApi-0017-001-Convert_command02
   402 		OUTSTANDING
   403 		COMMAND		imageencoder1	~
   404 	END_TEST_BLOCK
   405 END_TESTCASE 			MM-ICL-ENCDE-PublicApi-0017
   406 
   407 START_TESTCASE 			MM-ICL-ENCDE-PublicApi-0018
   408 //! @SYMTestCaseID		MM-ICL-ENCDE-PublicApi-0018
   409 //! @SYMAPI			CImageEncoder
   410 //! @SYMAuthor			James Mechen
   411 //! @SYMCreationDate		13/01/2006
   412 //! @SYMTestCaseDependencies	setup-MM-ICL-ENCDE-PublicApi.script
   413 //! @SYMTestCaseDesc		Encode to jpg from 8-bit image file giving an image type, without using RFile.
   414 //!				Uses API elements: FileNewL(), Convert().
   415 //! @SYMTestActions    		1. Create encoder for jpg file image. 2. Encode image.
   416 //! @SYMTestStatus		Implemented
   417 //! @SYMTestPriority		Critical
   418 //! @SYMTestExpectedResults	Image encoded with no errors.
   419 //! @SYMTestType		CIT
   420 	START_TEST_BLOCK	10		T_ImageEncoder	\multimedia\MM-ICL-ENCDE-PublicApi.ini
   421 		CREATE_OBJECT	CImageEncoder	imageencoder1
   422 		COMMAND		imageencoder1	FileNewL	MM-ICL-ENCDE-PublicApi-0018-001-FileNewL_command01
   423 		COMMAND		imageencoder1	Convert		MM-ICL-ENCDE-PublicApi-0018-001-Convert_command02
   424 		OUTSTANDING
   425 		COMMAND		imageencoder1	~
   426 	END_TEST_BLOCK
   427 END_TESTCASE 			MM-ICL-ENCDE-PublicApi-0018
   428 
   429 START_TESTCASE 			MM-ICL-ENCDE-PublicApi-0019
   430 //! @SYMTestCaseID		MM-ICL-ENCDE-PublicApi-0019
   431 //! @SYMAPI			CImageEncoder
   432 //! @SYMAuthor			James Mechen
   433 //! @SYMCreationDate		13/01/2006
   434 //! @SYMTestCaseDependencies	setup-MM-ICL-ENCDE-PublicApi.script
   435 //! @SYMTestCaseDesc		Encode to jpg from 4-bit image file giving a mime type, without using RFile.
   436 //!				Uses API elements: FileNewL(), Convert().
   437 //! @SYMTestActions    		1. Create encoder for jpg file image. 2. Encode image.
   438 //! @SYMTestStatus		Implemented
   439 //! @SYMTestPriority		Critical
   440 //! @SYMTestExpectedResults	Image encoded with no errors.
   441 //! @SYMTestType		CIT
   442 	START_TEST_BLOCK	10		T_ImageEncoder	\multimedia\MM-ICL-ENCDE-PublicApi.ini
   443 		CREATE_OBJECT	CImageEncoder	imageencoder1
   444 		COMMAND		imageencoder1	FileNewL	MM-ICL-ENCDE-PublicApi-0019-001-FileNewL_command01
   445 		COMMAND		imageencoder1	Convert		MM-ICL-ENCDE-PublicApi-0019-001-Convert_command02
   446 		OUTSTANDING
   447 		COMMAND		imageencoder1	~
   448 	END_TEST_BLOCK
   449 END_TESTCASE 			MM-ICL-ENCDE-PublicApi-0019
   450 
   451 START_TESTCASE 			MM-ICL-ENCDE-PublicApi-0020
   452 //! @SYMTestCaseID		MM-ICL-ENCDE-PublicApi-0020
   453 //! @SYMAPI			CImageEncoder
   454 //! @SYMAuthor			James Mechen
   455 //! @SYMCreationDate		13/01/2006
   456 //! @SYMTestCaseDependencies	setup-MM-ICL-ENCDE-PublicApi.script
   457 //! @SYMTestCaseDesc		Encode to jpg from 2-bit image in buffer giving an image type.
   458 //!				Uses API elements: DataNewL(), Convert().
   459 //! @SYMTestActions    		1. Create encoder for jpg file buffer. 2. Encode image.
   460 //! @SYMTestStatus		Implemented
   461 //! @SYMTestPriority		Critical
   462 //! @SYMTestExpectedResults	Image encoded with no errors.
   463 //! @SYMTestType		CIT
   464 	START_TEST_BLOCK	10		T_ImageEncoder	\multimedia\MM-ICL-ENCDE-PublicApi.ini
   465 		CREATE_OBJECT	CImageEncoder	imageencoder1
   466 		COMMAND		imageencoder1	DataNewL	MM-ICL-ENCDE-PublicApi-0020-001-DataNewL_command01
   467 		COMMAND		imageencoder1	Convert		MM-ICL-ENCDE-PublicApi-0020-001-Convert_command02
   468 		OUTSTANDING
   469 		COMMAND		imageencoder1	~
   470 	END_TEST_BLOCK
   471 END_TESTCASE 			MM-ICL-ENCDE-PublicApi-0020
   472 
   473 START_TESTCASE 			MM-ICL-ENCDE-PublicApi-0021
   474 //! @SYMTestCaseID		MM-ICL-ENCDE-PublicApi-0021
   475 //! @SYMAPI			CImageEncoder
   476 //! @SYMAuthor			James Mechen
   477 //! @SYMCreationDate		13/01/2006
   478 //! @SYMTestCaseDependencies	setup-MM-ICL-ENCDE-PublicApi.script
   479 //! @SYMTestCaseDesc		Encode to jpg from 1-bit image in buffer giving a mime type.
   480 //!				Uses API elements: DataNewL(), SetThumbnail(), Convert(), ImplementationUid().
   481 //! @SYMTestActions    		1. Create encoder for jpg file buffer. 2. Set to encode thumbnail. 3. Encode image. 4. Get implementation UID of encoder used.
   482 //! @SYMTestStatus		Implemented
   483 //! @SYMTestPriority		Critical
   484 //! @SYMTestExpectedResults	Image encoded with no errors.
   485 //! @SYMTestType		CIT
   486 	START_TEST_BLOCK	10		T_ImageEncoder		\multimedia\MM-ICL-ENCDE-PublicApi.ini
   487 		CREATE_OBJECT	CImageEncoder	imageencoder1
   488 		COMMAND		imageencoder1	DataNewL		MM-ICL-ENCDE-PublicApi-0021-001-DataNewL_command01
   489 		COMMAND		imageencoder1	SetThumbnail		MM-ICL-ENCDE-PublicApi-0021-001-SetThumbnail_command02
   490 		COMMAND		imageencoder1	Convert			MM-ICL-ENCDE-PublicApi-0021-001-Convert_command03
   491 		OUTSTANDING
   492 		COMMAND		imageencoder1	ImplementationUid
   493 		COMMAND		imageencoder1	~
   494 	END_TEST_BLOCK
   495 END_TESTCASE 			MM-ICL-ENCDE-PublicApi-0021
   496 
   497 
   498 START_TESTCASE 			MM-ICL-ENCDE-PublicApi-0022
   499 //! @SYMTestCaseID		MM-ICL-ENCDE-PublicApi-0022
   500 //! @SYMAPI			CImageEncoder
   501 //! @SYMAuthor			James Mechen
   502 //! @SYMCreationDate		13/01/2006
   503 //! @SYMTestCaseDependencies	setup-MM-ICL-ENCDE-PublicApi.script
   504 //! @SYMTestCaseDesc		Encode to mbm from 24-bit image file giving an image type, using RFile.
   505 //!				Uses API elements: FileNewL(), Convert().
   506 //! @SYMTestActions    		1. Create encoder for mbm file image. 2. Encode image.
   507 //! @SYMTestStatus		Implemented
   508 //! @SYMTestPriority		Critical
   509 //! @SYMTestExpectedResults	Image encoded with no errors.
   510 //! @SYMTestType		CIT
   511 	START_TEST_BLOCK	10		T_ImageEncoder	\multimedia\MM-ICL-ENCDE-PublicApi.ini
   512 		CREATE_OBJECT	CImageEncoder	imageencoder1
   513 		COMMAND		imageencoder1	FileNewL	MM-ICL-ENCDE-PublicApi-0022-001-FileNewL_command01
   514 		COMMAND		imageencoder1	Convert		MM-ICL-ENCDE-PublicApi-0022-001-Convert_command02
   515 		OUTSTANDING
   516 		COMMAND		imageencoder1	~
   517 	END_TEST_BLOCK
   518 END_TESTCASE 			MM-ICL-ENCDE-PublicApi-0022
   519 
   520 START_TESTCASE 			MM-ICL-ENCDE-PublicApi-0023
   521 //! @SYMTestCaseID		MM-ICL-ENCDE-PublicApi-0023
   522 //! @SYMAPI			CImageEncoder
   523 //! @SYMAuthor			James Mechen
   524 //! @SYMCreationDate		13/01/2006
   525 //! @SYMTestCaseDependencies	setup-MM-ICL-ENCDE-PublicApi.script
   526 //! @SYMTestCaseDesc		Encode to mbm from 16-bit image file giving a mime type, using RFile.
   527 //!				Uses API elements: FileNewL(), Convert().
   528 //! @SYMTestActions    		1. Create encoder for mbm file image. 2. Encode image.
   529 //! @SYMTestStatus		Implemented
   530 //! @SYMTestPriority		Critical
   531 //! @SYMTestExpectedResults	Image encoded with no errors.
   532 //! @SYMTestType		CIT
   533 	START_TEST_BLOCK	10		T_ImageEncoder	\multimedia\MM-ICL-ENCDE-PublicApi.ini
   534 		CREATE_OBJECT	CImageEncoder	imageencoder1
   535 		COMMAND		imageencoder1	FileNewL	MM-ICL-ENCDE-PublicApi-0023-001-FileNewL_command01
   536 		COMMAND		imageencoder1	Convert		MM-ICL-ENCDE-PublicApi-0023-001-Convert_command02
   537 		OUTSTANDING
   538 		COMMAND		imageencoder1	~
   539 	END_TEST_BLOCK
   540 END_TESTCASE 			MM-ICL-ENCDE-PublicApi-0023
   541 
   542 START_TESTCASE 			MM-ICL-ENCDE-PublicApi-0024
   543 //! @SYMTestCaseID		MM-ICL-ENCDE-PublicApi-0024
   544 //! @SYMAPI			CImageEncoder
   545 //! @SYMAuthor			James Mechen
   546 //! @SYMCreationDate		13/01/2006
   547 //! @SYMTestCaseDependencies	setup-MM-ICL-ENCDE-PublicApi.script
   548 //! @SYMTestCaseDesc		Encode to mbm from 8-bit image file giving an image type, without using RFile.
   549 //!				Uses API elements: FileNewL(), Convert().
   550 //! @SYMTestActions    		1. Create encoder for mbm file image. 2. Encode image.
   551 //! @SYMTestStatus		Implemented
   552 //! @SYMTestPriority		Critical
   553 //! @SYMTestExpectedResults	Image encoded with no errors.
   554 //! @SYMTestType		CIT
   555 	START_TEST_BLOCK	10		T_ImageEncoder	\multimedia\MM-ICL-ENCDE-PublicApi.ini
   556 		CREATE_OBJECT	CImageEncoder	imageencoder1
   557 		COMMAND		imageencoder1	FileNewL	MM-ICL-ENCDE-PublicApi-0024-001-FileNewL_command01
   558 		COMMAND		imageencoder1	Convert		MM-ICL-ENCDE-PublicApi-0024-001-Convert_command02
   559 		OUTSTANDING
   560 		COMMAND		imageencoder1	~
   561 	END_TEST_BLOCK
   562 END_TESTCASE 			MM-ICL-ENCDE-PublicApi-0024
   563 
   564 START_TESTCASE 			MM-ICL-ENCDE-PublicApi-0025
   565 //! @SYMTestCaseID		MM-ICL-ENCDE-PublicApi-0025
   566 //! @SYMAPI			CImageEncoder
   567 //! @SYMAuthor			James Mechen
   568 //! @SYMCreationDate		13/01/2006
   569 //! @SYMTestCaseDependencies	setup-MM-ICL-ENCDE-PublicApi.script
   570 //! @SYMTestCaseDesc		Encode to mbm from 4-bit image file giving a mime type, without using RFile.
   571 //!				Uses API elements: FileNewL(), Convert().
   572 //! @SYMTestActions    		1. Create encoder for mbm file image. 2. Encode image.
   573 //! @SYMTestStatus		Implemented
   574 //! @SYMTestPriority		Critical
   575 //! @SYMTestExpectedResults	Image encoded with no errors.
   576 //! @SYMTestType		CIT
   577 	START_TEST_BLOCK	10		T_ImageEncoder	\multimedia\MM-ICL-ENCDE-PublicApi.ini
   578 		CREATE_OBJECT	CImageEncoder	imageencoder1
   579 		COMMAND		imageencoder1	FileNewL	MM-ICL-ENCDE-PublicApi-0025-001-FileNewL_command01
   580 		COMMAND		imageencoder1	Convert		MM-ICL-ENCDE-PublicApi-0025-001-Convert_command02
   581 		OUTSTANDING
   582 		COMMAND		imageencoder1	~
   583 	END_TEST_BLOCK
   584 END_TESTCASE 			MM-ICL-ENCDE-PublicApi-0025
   585 
   586 START_TESTCASE 			MM-ICL-ENCDE-PublicApi-0026
   587 //! @SYMTestCaseID		MM-ICL-ENCDE-PublicApi-0026
   588 //! @SYMAPI			CImageEncoder
   589 //! @SYMAuthor			James Mechen
   590 //! @SYMCreationDate		13/01/2006
   591 //! @SYMTestCaseDependencies	setup-MM-ICL-ENCDE-PublicApi.script
   592 //! @SYMTestCaseDesc		Encode to mbm from 2-bit image in buffer giving an image type.
   593 //!				Uses API elements: DataNewL(), Convert().
   594 //! @SYMTestActions    		1. Create encoder for mbm file buffer. 2. Encode image.
   595 //! @SYMTestStatus		Implemented
   596 //! @SYMTestPriority		Critical
   597 //! @SYMTestExpectedResults	Image encoded with no errors.
   598 //! @SYMTestType		CIT
   599 	START_TEST_BLOCK	10		T_ImageEncoder	\multimedia\MM-ICL-ENCDE-PublicApi.ini
   600 		CREATE_OBJECT	CImageEncoder	imageencoder1
   601 		COMMAND		imageencoder1	DataNewL	MM-ICL-ENCDE-PublicApi-0026-001-DataNewL_command01
   602 		COMMAND		imageencoder1	Convert		MM-ICL-ENCDE-PublicApi-0026-001-Convert_command02
   603 		OUTSTANDING
   604 		COMMAND		imageencoder1	~
   605 	END_TEST_BLOCK
   606 END_TESTCASE 			MM-ICL-ENCDE-PublicApi-0026
   607 
   608 START_TESTCASE 			MM-ICL-ENCDE-PublicApi-0027
   609 //! @SYMTestCaseID		MM-ICL-ENCDE-PublicApi-0027
   610 //! @SYMAPI			CImageEncoder
   611 //! @SYMAuthor			James Mechen
   612 //! @SYMCreationDate		13/01/2006
   613 //! @SYMTestCaseDependencies	setup-MM-ICL-ENCDE-PublicApi.script
   614 //! @SYMTestCaseDesc		Encode to mbm from 1-bit image in buffer giving a mime type.
   615 //!				Uses API elements: DataNewL(), SetThumbnail(), Convert(), ImplementationUid().
   616 //! @SYMTestActions    		1. Create encoder for mbm file buffer. 2. Set to encode thumbnail. 3. Encode image. 4. Get implementation UID of encoder used.
   617 //! @SYMTestStatus		Implemented
   618 //! @SYMTestPriority		Critical
   619 //! @SYMTestExpectedResults	Image encoded with no errors.
   620 //! @SYMTestType		CIT
   621 	START_TEST_BLOCK	10		T_ImageEncoder		\multimedia\MM-ICL-ENCDE-PublicApi.ini
   622 		CREATE_OBJECT	CImageEncoder	imageencoder1
   623 		COMMAND		imageencoder1	DataNewL		MM-ICL-ENCDE-PublicApi-0027-001-DataNewL_command01
   624 		COMMAND		imageencoder1	SetThumbnail		MM-ICL-ENCDE-PublicApi-0027-001-SetThumbnail_command02
   625 		COMMAND		imageencoder1	Convert			MM-ICL-ENCDE-PublicApi-0027-001-Convert_command03
   626 		OUTSTANDING
   627 		COMMAND		imageencoder1	ImplementationUid
   628 		COMMAND		imageencoder1	~
   629 	END_TEST_BLOCK
   630 END_TESTCASE 			MM-ICL-ENCDE-PublicApi-0027
   631 
   632 
   633 START_TESTCASE 			MM-ICL-ENCDE-PublicApi-0028
   634 //! @SYMTestCaseID		MM-ICL-ENCDE-PublicApi-0028
   635 //! @SYMAPI			CImageEncoder
   636 //! @SYMAuthor			James Mechen
   637 //! @SYMCreationDate		13/01/2006
   638 //! @SYMTestCaseDependencies	setup-MM-ICL-ENCDE-PublicApi.script
   639 //! @SYMTestCaseDesc		Encode to png from 24-bit image file giving an image type, using RFile.
   640 //!				Uses API elements: FileNewL(), Convert().
   641 //! @SYMTestActions    		1. Create encoder for png file image. 2. Encode image.
   642 //! @SYMTestStatus		Implemented
   643 //! @SYMTestPriority		Critical
   644 //! @SYMTestExpectedResults	Image encoded with no errors.
   645 //! @SYMTestType		CIT
   646 	START_TEST_BLOCK	10		T_ImageEncoder	\multimedia\MM-ICL-ENCDE-PublicApi.ini
   647 		CREATE_OBJECT	CImageEncoder	imageencoder1
   648 		COMMAND		imageencoder1	FileNewL	MM-ICL-ENCDE-PublicApi-0028-001-FileNewL_command01
   649 		COMMAND		imageencoder1	Convert		MM-ICL-ENCDE-PublicApi-0028-001-Convert_command02
   650 		OUTSTANDING
   651 		COMMAND		imageencoder1	~
   652 	END_TEST_BLOCK
   653 END_TESTCASE 			MM-ICL-ENCDE-PublicApi-0028
   654 
   655 START_TESTCASE 			MM-ICL-ENCDE-PublicApi-0029
   656 //! @SYMTestCaseID		MM-ICL-ENCDE-PublicApi-0029
   657 //! @SYMAPI			CImageEncoder
   658 //! @SYMAuthor			James Mechen
   659 //! @SYMCreationDate		13/01/2006
   660 //! @SYMTestCaseDependencies	setup-MM-ICL-ENCDE-PublicApi.script
   661 //! @SYMTestCaseDesc		Encode to png from 16-bit image file giving a mime type, using RFile.
   662 //!				Uses API elements: FileNewL(), Convert().
   663 //! @SYMTestActions    		1. Create encoder for png file image. 2. Encode image.
   664 //! @SYMTestStatus		Implemented
   665 //! @SYMTestPriority		Critical
   666 //! @SYMTestExpectedResults	Image encoded with no errors.
   667 //! @SYMTestType		CIT
   668 	START_TEST_BLOCK	10		T_ImageEncoder	\multimedia\MM-ICL-ENCDE-PublicApi.ini
   669 		CREATE_OBJECT	CImageEncoder	imageencoder1
   670 		COMMAND		imageencoder1	FileNewL	MM-ICL-ENCDE-PublicApi-0029-001-FileNewL_command01
   671 		COMMAND		imageencoder1	Convert		MM-ICL-ENCDE-PublicApi-0029-001-Convert_command02
   672 		OUTSTANDING
   673 		COMMAND		imageencoder1	~
   674 	END_TEST_BLOCK
   675 END_TESTCASE 			MM-ICL-ENCDE-PublicApi-0029
   676 
   677 START_TESTCASE 			MM-ICL-ENCDE-PublicApi-0030
   678 //! @SYMTestCaseID		MM-ICL-ENCDE-PublicApi-0030
   679 //! @SYMAPI			CImageEncoder
   680 //! @SYMAuthor			James Mechen
   681 //! @SYMCreationDate		13/01/2006
   682 //! @SYMTestCaseDependencies	setup-MM-ICL-ENCDE-PublicApi.script
   683 //! @SYMTestCaseDesc		Encode to png from 8-bit image file giving an image type, without using RFile.
   684 //!				Uses API elements: FileNewL(), Convert().
   685 //! @SYMTestActions    		1. Create encoder for png file image. 2. Encode image.
   686 //! @SYMTestStatus		Implemented
   687 //! @SYMTestPriority		Critical
   688 //! @SYMTestExpectedResults	Image encoded with no errors.
   689 //! @SYMTestType		CIT
   690 	START_TEST_BLOCK	10		T_ImageEncoder	\multimedia\MM-ICL-ENCDE-PublicApi.ini
   691 		CREATE_OBJECT	CImageEncoder	imageencoder1
   692 		COMMAND		imageencoder1	FileNewL	MM-ICL-ENCDE-PublicApi-0030-001-FileNewL_command01
   693 		COMMAND		imageencoder1	Convert		MM-ICL-ENCDE-PublicApi-0030-001-Convert_command02
   694 		OUTSTANDING
   695 		COMMAND		imageencoder1	~
   696 	END_TEST_BLOCK
   697 END_TESTCASE 			MM-ICL-ENCDE-PublicApi-0030
   698 
   699 START_TESTCASE 			MM-ICL-ENCDE-PublicApi-0031
   700 //! @SYMTestCaseID		MM-ICL-ENCDE-PublicApi-0031
   701 //! @SYMAPI			CImageEncoder
   702 //! @SYMAuthor			James Mechen
   703 //! @SYMCreationDate		13/01/2006
   704 //! @SYMTestCaseDependencies	setup-MM-ICL-ENCDE-PublicApi.script
   705 //! @SYMTestCaseDesc		Encode to png from 4-bit image file giving a mime type, without using RFile.
   706 //!				Uses API elements: FileNewL(), Convert().
   707 //! @SYMTestActions    		1. Create encoder for png file image. 2. Encode image.
   708 //! @SYMTestStatus		Implemented
   709 //! @SYMTestPriority		Critical
   710 //! @SYMTestExpectedResults	Image encoded with no errors.
   711 //! @SYMTestType		CIT
   712 	START_TEST_BLOCK	10		T_ImageEncoder	\multimedia\MM-ICL-ENCDE-PublicApi.ini
   713 		CREATE_OBJECT	CImageEncoder	imageencoder1
   714 		COMMAND		imageencoder1	FileNewL	MM-ICL-ENCDE-PublicApi-0031-001-FileNewL_command01
   715 		COMMAND		imageencoder1	Convert		MM-ICL-ENCDE-PublicApi-0031-001-Convert_command02
   716 		OUTSTANDING
   717 		COMMAND		imageencoder1	~
   718 	END_TEST_BLOCK
   719 END_TESTCASE 			MM-ICL-ENCDE-PublicApi-0031
   720 
   721 START_TESTCASE 			MM-ICL-ENCDE-PublicApi-0032
   722 //! @SYMTestCaseID		MM-ICL-ENCDE-PublicApi-0032
   723 //! @SYMAPI			CImageEncoder
   724 //! @SYMAuthor			James Mechen
   725 //! @SYMCreationDate		13/01/2006
   726 //! @SYMTestCaseDependencies	setup-MM-ICL-ENCDE-PublicApi.script
   727 //! @SYMTestCaseDesc		Encode to png from 2-bit image in buffer giving an image type.
   728 //!				Uses API elements: DataNewL(), Convert().
   729 //! @SYMTestActions    		1. Create encoder for png file buffer. 2. Encode image.
   730 //! @SYMTestStatus		Implemented
   731 //! @SYMTestPriority		Critical
   732 //! @SYMTestExpectedResults	Image encoded with no errors.
   733 //! @SYMTestType		CIT
   734 	START_TEST_BLOCK	10		T_ImageEncoder	\multimedia\MM-ICL-ENCDE-PublicApi.ini
   735 		CREATE_OBJECT	CImageEncoder	imageencoder1
   736 		COMMAND		imageencoder1	DataNewL	MM-ICL-ENCDE-PublicApi-0032-001-DataNewL_command01
   737 		COMMAND		imageencoder1	Convert		MM-ICL-ENCDE-PublicApi-0032-001-Convert_command02
   738 		OUTSTANDING
   739 		COMMAND		imageencoder1	~
   740 	END_TEST_BLOCK
   741 END_TESTCASE 			MM-ICL-ENCDE-PublicApi-0032
   742 
   743 START_TESTCASE 			MM-ICL-ENCDE-PublicApi-0033
   744 //! @SYMTestCaseID		MM-ICL-ENCDE-PublicApi-0033
   745 //! @SYMAPI			CImageEncoder
   746 //! @SYMAuthor			James Mechen
   747 //! @SYMCreationDate		13/01/2006
   748 //! @SYMTestCaseDependencies	setup-MM-ICL-ENCDE-PublicApi.script
   749 //! @SYMTestCaseDesc		Encode to png from 1-bit image in buffer giving a mime type.
   750 //!				Uses API elements: DataNewL(), SetThumbnail(), Convert(), ImplementationUid().
   751 //! @SYMTestActions    		1. Create encoder for png file buffer. 2. Set to encode thumbnail. 3. Encode image. 4. Get implementation UID of encoder used.
   752 //! @SYMTestStatus		Implemented
   753 //! @SYMTestPriority		Critical
   754 //! @SYMTestExpectedResults	Image encoded with no errors.
   755 //! @SYMTestType		CIT
   756 	START_TEST_BLOCK	10		T_ImageEncoder		\multimedia\MM-ICL-ENCDE-PublicApi.ini
   757 		CREATE_OBJECT	CImageEncoder	imageencoder1
   758 		COMMAND		imageencoder1	DataNewL		MM-ICL-ENCDE-PublicApi-0033-001-DataNewL_command01
   759 		COMMAND		imageencoder1	SetThumbnail		MM-ICL-ENCDE-PublicApi-0033-001-SetThumbnail_command02
   760 		COMMAND		imageencoder1	Convert			MM-ICL-ENCDE-PublicApi-0033-001-Convert_command03
   761 		OUTSTANDING
   762 		COMMAND		imageencoder1	ImplementationUid
   763 		COMMAND		imageencoder1	~
   764 	END_TEST_BLOCK
   765 END_TESTCASE 			MM-ICL-ENCDE-PublicApi-0033
   766 
   767 
   768 START_TESTCASE 			MM-ICL-ENCDE-PublicApi-0034
   769 //! @SYMTestCaseID		MM-ICL-ENCDE-PublicApi-0034
   770 //! @SYMAPI			CImageEncoder
   771 //! @SYMAuthor			James Mechen
   772 //! @SYMCreationDate		13/01/2006
   773 //! @SYMTestCaseDependencies	setup-MM-ICL-ENCDE-PublicApi.script
   774 //! @SYMTestCaseDesc		Get list of gif image sub-types that can be encoded.
   775 //!				Uses API elements: GetImageSubTypesL().
   776 //! @SYMTestActions    		1. Get list of gif image sub-types that can be encoded.
   777 //! @SYMTestStatus		Implemented
   778 //! @SYMTestPriority		High
   779 //! @SYMTestExpectedResults	KErrNotFound returned.
   780 //! @SYMTestType		CIT
   781 	START_TEST_BLOCK		10		T_ImageEncoder		\multimedia\MM-ICL-ENCDE-PublicApi.ini
   782 		CREATE_OBJECT		CImageEncoder	imageencoder1
   783 		COMMAND	!Error=-1	imageencoder1	GetImageSubTypesL	MM-ICL-ENCDE-PublicApi-0034-001-GetImageSubTypesL_command01
   784 		COMMAND			imageencoder1	~
   785 	END_TEST_BLOCK
   786 END_TESTCASE 			MM-ICL-ENCDE-PublicApi-0034
   787 
   788 
   789 START_TESTCASE 			MM-ICL-ENCDE-PublicApi-0035
   790 //! @SYMTestCaseID		MM-ICL-ENCDE-PublicApi-0035
   791 //! @SYMAPI			CImageEncoder
   792 //! @SYMAuthor			James Mechen
   793 //! @SYMCreationDate		13/01/2006
   794 //! @SYMTestCaseDependencies	setup-MM-ICL-ENCDE-PublicApi.script
   795 //! @SYMTestCaseDesc		Get list of jpg image sub-types that can be encoded.
   796 //!				Uses API elements: GetImageSubTypesL().
   797 //! @SYMTestActions    		1. Get list of jpg image sub-types that can be encoded.
   798 //! @SYMTestStatus		Implemented
   799 //! @SYMTestPriority		High
   800 //! @SYMTestExpectedResults	KErrNotFound returned.
   801 //! @SYMTestType		CIT
   802 	START_TEST_BLOCK		10		T_ImageEncoder		\multimedia\MM-ICL-ENCDE-PublicApi.ini
   803 		CREATE_OBJECT		CImageEncoder	imageencoder1
   804 		COMMAND	!Error=-1	imageencoder1	GetImageSubTypesL	MM-ICL-ENCDE-PublicApi-0035-001-GetImageSubTypesL_command01
   805 		COMMAND			imageencoder1	~
   806 	END_TEST_BLOCK
   807 END_TESTCASE 			MM-ICL-ENCDE-PublicApi-0035
   808 
   809 
   810 START_TESTCASE 			MM-ICL-ENCDE-PublicApi-0036
   811 //! @SYMTestCaseID		MM-ICL-ENCDE-PublicApi-0036
   812 //! @SYMAPI			CImageEncoder
   813 //! @SYMAuthor			James Mechen
   814 //! @SYMCreationDate		13/01/2006
   815 //! @SYMTestCaseDependencies	setup-MM-ICL-ENCDE-PublicApi.script
   816 //! @SYMTestCaseDesc		Get list of mbm image sub-types that can be encoded.
   817 //!				Uses API elements: GetImageSubTypesL().
   818 //! @SYMTestActions    		1. Get list of mbm image sub-types that can be encoded.
   819 //! @SYMTestStatus		Implemented
   820 //! @SYMTestPriority		High
   821 //! @SYMTestExpectedResults	KErrNotFound returned.
   822 //! @SYMTestType		CIT
   823 	START_TEST_BLOCK		10		T_ImageEncoder		\multimedia\MM-ICL-ENCDE-PublicApi.ini
   824 		CREATE_OBJECT		CImageEncoder	imageencoder1
   825 		COMMAND	!Error=-1	imageencoder1	GetImageSubTypesL	MM-ICL-ENCDE-PublicApi-0036-001-GetImageSubTypesL_command01
   826 		COMMAND			imageencoder1	~
   827 	END_TEST_BLOCK
   828 END_TESTCASE 			MM-ICL-ENCDE-PublicApi-0036
   829 
   830 
   831 START_TESTCASE 			MM-ICL-ENCDE-PublicApi-0037
   832 //! @SYMTestCaseID		MM-ICL-ENCDE-PublicApi-0037
   833 //! @SYMAPI			CImageEncoder
   834 //! @SYMAuthor			James Mechen
   835 //! @SYMCreationDate		13/01/2006
   836 //! @SYMTestCaseDependencies	setup-MM-ICL-ENCDE-PublicApi.script
   837 //! @SYMTestCaseDesc		Get list of png image sub-types that can be encoded.
   838 //!				Uses API elements: GetImageSubTypesL().
   839 //! @SYMTestActions    		1. Get list of png image sub-types that can be encoded.
   840 //! @SYMTestStatus		Implemented
   841 //! @SYMTestPriority		High
   842 //! @SYMTestExpectedResults	KErrNotFound returned.
   843 //! @SYMTestType		CIT
   844 	START_TEST_BLOCK		10		T_ImageEncoder		\multimedia\MM-ICL-ENCDE-PublicApi.ini
   845 		CREATE_OBJECT		CImageEncoder	imageencoder1
   846 		COMMAND	!Error=-1	imageencoder1	GetImageSubTypesL	MM-ICL-ENCDE-PublicApi-0037-001-GetImageSubTypesL_command01
   847 		COMMAND			imageencoder1	~
   848 	END_TEST_BLOCK
   849 END_TESTCASE 			MM-ICL-ENCDE-PublicApi-0037
   850 
   851 
   852 START_TESTCASE 			MM-ICL-ENCDE-PublicApi-0038
   853 //! @SYMTestCaseID		MM-ICL-ENCDE-PublicApi-0038
   854 //! @SYMAPI			CImageEncoder
   855 //! @SYMAuthor			James Mechen
   856 //! @SYMCreationDate		13/01/2006
   857 //! @SYMTestCaseDependencies	setup-MM-ICL-ENCDE-PublicApi.script
   858 //! @SYMTestCaseDesc		Get list of bmp image sub-types that can be encoded.
   859 //!				Uses API elements: GetImageSubTypesL().
   860 //! @SYMTestActions    		1. Get list of bmp image sub-types that can be encoded.
   861 //! @SYMTestStatus		Implemented
   862 //! @SYMTestPriority		High
   863 //! @SYMTestExpectedResults	KErrNotFound returned.
   864 //! @SYMTestType		CIT
   865 	START_TEST_BLOCK		10		T_ImageEncoder		\multimedia\MM-ICL-ENCDE-PublicApi.ini
   866 		CREATE_OBJECT		CImageEncoder	imageencoder1
   867 		COMMAND	!Error=-1	imageencoder1	GetImageSubTypesL	MM-ICL-ENCDE-PublicApi-0037-001-GetImageSubTypesL_command01
   868 		COMMAND			imageencoder1	~
   869 	END_TEST_BLOCK
   870 END_TESTCASE 			MM-ICL-ENCDE-PublicApi-0038
   871 
   872 
   873 START_TESTCASE 			MM-ICL-ENCDE-PublicApi-0039
   874 //! @SYMTestCaseID		MM-ICL-ENCDE-PublicApi-0039
   875 //! @SYMAPI			CImageEncoder
   876 //! @SYMAuthor			James Mechen
   877 //! @SYMCreationDate		17/01/2006
   878 //! @SYMTestCaseDependencies	setup-MM-ICL-ENCDE-PublicApi.script
   879 //! @SYMTestCaseDesc		Begin encoding a bmp image file giving an image type, using RFile, then cancel the conversion.
   880 //!				Uses API elements: FileNewL(), Convert(), Cancel().
   881 //! @SYMTestActions    		1. Create encoder for bmp file image. 2. Encode image. 3. Cancel conversion.
   882 //! @SYMTestStatus		Implemented
   883 //! @SYMTestPriority		High
   884 //! @SYMTestExpectedResults	Conversion cancelled with no errors.
   885 //! @SYMTestType		CIT
   886 	START_TEST_BLOCK		10		T_ImageEncoder	\multimedia\MM-ICL-ENCDE-PublicApi.ini
   887 		CREATE_OBJECT		CImageEncoder	imageencoder1
   888 		COMMAND			imageencoder1	FileNewL	MM-ICL-ENCDE-PublicApi-0039-001-FileNewL_command01
   889 		COMMAND	!AsyncError=-3	imageencoder1	Convert		MM-ICL-ENCDE-PublicApi-0039-001-Convert_command02
   890 		COMMAND			imageencoder1	Cancel
   891 		OUTSTANDING
   892 		COMMAND		imageencoder1	~
   893 	END_TEST_BLOCK
   894 END_TESTCASE 			MM-ICL-ENCDE-PublicApi-0039
   895 
   896 START_TESTCASE 			MM-ICL-ENCDE-PublicApi-0040
   897 //! @SYMTestCaseID		MM-ICL-ENCDE-PublicApi-0040
   898 //! @SYMAPI			CImageEncoder
   899 //! @SYMAuthor			James Mechen
   900 //! @SYMCreationDate		17/01/2006
   901 //! @SYMTestCaseDependencies	setup-MM-ICL-ENCDE-PublicApi.script
   902 //! @SYMTestCaseDesc		Encode an unloaded CFbsBitmap giving an image type, using RFile.
   903 //!				Uses API elements: FileNewL(), Convert().
   904 //! @SYMTestActions    		1. Create encoder for corrupted file. 2. Encode image.
   905 //! @SYMTestStatus		Implemented
   906 //! @SYMTestPriority		High
   907 //! @SYMTestExpectedResults	KErrNone returned.
   908 //! @SYMTestType		CIT
   909 	START_TEST_BLOCK	10		T_ImageEncoder	\multimedia\MM-ICL-ENCDE-PublicApi.ini
   910 		CREATE_OBJECT	CImageEncoder	imageencoder1
   911 		COMMAND		imageencoder1	FileNewL	MM-ICL-ENCDE-PublicApi-0040-001-FileNewL_command01
   912 		COMMAND		imageencoder1	Convert
   913 		OUTSTANDING
   914 		COMMAND		imageencoder1	~
   915 	END_TEST_BLOCK
   916 END_TESTCASE 			MM-ICL-ENCDE-PublicApi-0040
   917 
   918 
   919 START_TESTCASE 			MM-ICL-ENCDE-PublicApi-0041
   920 //! @SYMTestCaseID		MM-ICL-ENCDE-PublicApi-0041
   921 //! @SYMAPI			CImageEncoder
   922 //! @SYMAuthor			James Mechen
   923 //! @SYMCreationDate		27/01/2006
   924 //! @SYMTestCaseDependencies	setup-MM-ICL-ENCDE-PublicApi.script
   925 //! @SYMTestCaseDesc		Encode a gif image giving an illegal mime type.
   926 //!				Uses API elements: FileNewL(), Convert().
   927 //! @SYMTestActions    		1. Create encoder for gif file. 2. Encode image.
   928 //! @SYMTestStatus		Implemented
   929 //! @SYMTestPriority		Critical
   930 //! @SYMTestExpectedResults	KErrNotFound is returned.
   931 //! @SYMTestType		CIT
   932 	START_TEST_BLOCK		10		T_ImageEncoder	\multimedia\MM-ICL-ENCDE-PublicApi.ini
   933 		CREATE_OBJECT		CImageEncoder	imageencoder1
   934 		COMMAND	!Error=-1	imageencoder1	FileNewL	MM-ICL-ENCDE-PublicApi-0041-001-FileNewL_command01
   935 		COMMAND			imageencoder1	~
   936 	END_TEST_BLOCK
   937 END_TESTCASE 			MM-ICL-ENCDE-PublicApi-0041
   938 
   939 START_TESTCASE 			MM-ICL-ENCDE-PublicApi-0042
   940 //! @SYMTestCaseID		MM-ICL-ENCDE-PublicApi-0042
   941 //! @SYMAPI			CImageEncoder
   942 //! @SYMAuthor			James Mechen
   943 //! @SYMCreationDate		27/01/2006
   944 //! @SYMTestCaseDependencies	setup-MM-ICL-ENCDE-PublicApi.script
   945 //! @SYMTestCaseDesc		Encode a bmp image giving an illegal mime type.
   946 //!				Uses API elements: FileNewL(), Convert().
   947 //! @SYMTestActions    		1. Create encoder for bmp file. 2. Encode image.
   948 //! @SYMTestStatus		Implemented
   949 //! @SYMTestPriority		Critical
   950 //! @SYMTestExpectedResults	KErrNotFound is returned.
   951 //! @SYMTestType		CIT
   952 	START_TEST_BLOCK		10		T_ImageEncoder	\multimedia\MM-ICL-ENCDE-PublicApi.ini
   953 		CREATE_OBJECT		CImageEncoder	imageencoder1
   954 		COMMAND	!Error=-1	imageencoder1	FileNewL	MM-ICL-ENCDE-PublicApi-0042-001-FileNewL_command01
   955 		COMMAND			imageencoder1	~
   956 	END_TEST_BLOCK
   957 END_TESTCASE 			MM-ICL-ENCDE-PublicApi-0042
   958 
   959 START_TESTCASE 			MM-ICL-ENCDE-PublicApi-0043
   960 //! @SYMTestCaseID		MM-ICL-ENCDE-PublicApi-0043
   961 //! @SYMAPI			CImageEncoder
   962 //! @SYMAuthor			James Mechen
   963 //! @SYMCreationDate		27/01/2006
   964 //! @SYMTestCaseDependencies	setup-MM-ICL-ENCDE-PublicApi.script
   965 //! @SYMTestCaseDesc		Encode a jpg image giving an illegal mime type.
   966 //!				Uses API elements: FileNewL(), Convert().
   967 //! @SYMTestActions    		1. Create encoder for jpg file. 2. Encode image.
   968 //! @SYMTestStatus		Implemented
   969 //! @SYMTestPriority		Critical
   970 //! @SYMTestExpectedResults	KErrNotFound is returned.
   971 //! @SYMTestType		CIT
   972 	START_TEST_BLOCK		10		T_ImageEncoder	\multimedia\MM-ICL-ENCDE-PublicApi.ini
   973 		CREATE_OBJECT		CImageEncoder	imageencoder1
   974 		COMMAND	!Error=-1	imageencoder1	FileNewL	MM-ICL-ENCDE-PublicApi-0043-001-FileNewL_command01
   975 		COMMAND			imageencoder1	~
   976 	END_TEST_BLOCK
   977 END_TESTCASE 			MM-ICL-ENCDE-PublicApi-0043
   978 
   979 START_TESTCASE 			MM-ICL-ENCDE-PublicApi-0044
   980 //! @SYMTestCaseID		MM-ICL-ENCDE-PublicApi-0044
   981 //! @SYMAPI			CImageEncoder
   982 //! @SYMAuthor			James Mechen
   983 //! @SYMCreationDate		27/01/2006
   984 //! @SYMTestCaseDependencies	setup-MM-ICL-ENCDE-PublicApi.script
   985 //! @SYMTestCaseDesc		Encode a mbm image giving an illegal mime type.
   986 //!				Uses API elements: FileNewL(), Convert().
   987 //! @SYMTestActions    		1. Create encoder for mbm file. 2. Encode image.
   988 //! @SYMTestStatus		Implemented
   989 //! @SYMTestPriority		Critical
   990 //! @SYMTestExpectedResults	KErrNotFound is returned.
   991 //! @SYMTestType		CIT
   992 	START_TEST_BLOCK		10		T_ImageEncoder	\multimedia\MM-ICL-ENCDE-PublicApi.ini
   993 		CREATE_OBJECT		CImageEncoder	imageencoder1
   994 		COMMAND	!Error=-1	imageencoder1	FileNewL	MM-ICL-ENCDE-PublicApi-0044-001-FileNewL_command01
   995 		COMMAND			imageencoder1	~
   996 	END_TEST_BLOCK
   997 END_TESTCASE 			MM-ICL-ENCDE-PublicApi-0044
   998 
   999 START_TESTCASE 			MM-ICL-ENCDE-PublicApi-0045
  1000 //! @SYMTestCaseID		MM-ICL-ENCDE-PublicApi-0045
  1001 //! @SYMAPI			CImageEncoder
  1002 //! @SYMAuthor			James Mechen
  1003 //! @SYMCreationDate		27/01/2006
  1004 //! @SYMTestCaseDependencies	setup-MM-ICL-ENCDE-PublicApi.script
  1005 //! @SYMTestCaseDesc		Encode a png image giving an illegal mime type.
  1006 //!				Uses API elements: FileNewL(), Convert().
  1007 //! @SYMTestActions    		1. Create encoder for png file. 2. Encode image.
  1008 //! @SYMTestStatus		Implemented
  1009 //! @SYMTestPriority		Critical
  1010 //! @SYMTestExpectedResults	KErrNotFound is returned.
  1011 //! @SYMTestType		CIT
  1012 	START_TEST_BLOCK		10		T_ImageEncoder	\multimedia\MM-ICL-ENCDE-PublicApi.ini
  1013 		CREATE_OBJECT		CImageEncoder	imageencoder1
  1014 		COMMAND	!Error=-1	imageencoder1	FileNewL	MM-ICL-ENCDE-PublicApi-0045-001-FileNewL_command01
  1015 		COMMAND			imageencoder1	~
  1016 	END_TEST_BLOCK
  1017 END_TESTCASE 			MM-ICL-ENCDE-PublicApi-0045
  1018 
  1019 
  1020 START_TESTCASE 			MM-ICL-ENCDE-PublicApi-0046
  1021 //! @SYMTestCaseID		MM-ICL-ENCDE-PublicApi-0046
  1022 //! @SYMAPI			CImageEncoder
  1023 //! @SYMAuthor			James Mechen
  1024 //! @SYMCreationDate		13/01/2006
  1025 //! @SYMTestCaseDependencies	setup-MM-ICL-ENCDE-PublicApi.script
  1026 //! @SYMTestCaseDesc		Open tif 24-bit image file giving an image type, using RFile.
  1027 //!				Uses API elements: FileNewL().
  1028 //! @SYMTestActions    		1. Create encoder for tif file image.
  1029 //! @SYMTestStatus		Implemented
  1030 //! @SYMTestPriority		Critical
  1031 //! @SYMTestExpectedResults	KErrNotFound returned.
  1032 //! @SYMTestType		CIT
  1033 	START_TEST_BLOCK		10		T_ImageEncoder	\multimedia\MM-ICL-ENCDE-PublicApi.ini
  1034 		CREATE_OBJECT		CImageEncoder	imageencoder1
  1035 		COMMAND	!Error=-1	imageencoder1	FileNewL	MM-ICL-ENCDE-PublicApi-0046-001-FileNewL_command01
  1036 		COMMAND			imageencoder1	~
  1037 	END_TEST_BLOCK
  1038 END_TESTCASE 			MM-ICL-ENCDE-PublicApi-0046
  1039 
  1040 START_TESTCASE 			MM-ICL-ENCDE-PublicApi-0047
  1041 //! @SYMTestCaseID		MM-ICL-ENCDE-PublicApi-0047
  1042 //! @SYMAPI			CImageEncoder
  1043 //! @SYMAuthor			James Mechen
  1044 //! @SYMCreationDate		13/01/2006
  1045 //! @SYMTestCaseDependencies	setup-MM-ICL-ENCDE-PublicApi.script
  1046 //! @SYMTestCaseDesc		Open tif 16-bit image file giving a mime type, using RFile.
  1047 //!				Uses API elements: FileNewL().
  1048 //! @SYMTestActions    		1. Create encoder for tif file image.
  1049 //! @SYMTestStatus		Implemented
  1050 //! @SYMTestPriority		Critical
  1051 //! @SYMTestExpectedResults	KErrNotFound returned.
  1052 //! @SYMTestType		CIT
  1053 	START_TEST_BLOCK		10		T_ImageEncoder	\multimedia\MM-ICL-ENCDE-PublicApi.ini
  1054 		CREATE_OBJECT		CImageEncoder	imageencoder1
  1055 		COMMAND	!Error=-1	imageencoder1	FileNewL	MM-ICL-ENCDE-PublicApi-0047-001-FileNewL_command01
  1056 		COMMAND			imageencoder1	~
  1057 	END_TEST_BLOCK
  1058 END_TESTCASE 			MM-ICL-ENCDE-PublicApi-0047
  1059 
  1060 START_TESTCASE 			MM-ICL-ENCDE-PublicApi-0048
  1061 //! @SYMTestCaseID		MM-ICL-ENCDE-PublicApi-0048
  1062 //! @SYMAPI			CImageEncoder
  1063 //! @SYMAuthor			James Mechen
  1064 //! @SYMCreationDate		13/01/2006
  1065 //! @SYMTestCaseDependencies	setup-MM-ICL-ENCDE-PublicApi.script
  1066 //! @SYMTestCaseDesc		Open tif 8-bit image file giving an image type, without using RFile.
  1067 //!				Uses API elements: FileNewL().
  1068 //! @SYMTestActions    		1. Create encoder for tif file image.
  1069 //! @SYMTestStatus		Implemented
  1070 //! @SYMTestPriority		Critical
  1071 //! @SYMTestExpectedResults	KErrNotFound returned.
  1072 //! @SYMTestType		CIT
  1073 	START_TEST_BLOCK		10		T_ImageEncoder	\multimedia\MM-ICL-ENCDE-PublicApi.ini
  1074 		CREATE_OBJECT		CImageEncoder	imageencoder1
  1075 		COMMAND	!Error=-1	imageencoder1	FileNewL	MM-ICL-ENCDE-PublicApi-0048-001-FileNewL_command01
  1076 		COMMAND			imageencoder1	~
  1077 	END_TEST_BLOCK
  1078 END_TESTCASE 			MM-ICL-ENCDE-PublicApi-0048
  1079 
  1080 START_TESTCASE 			MM-ICL-ENCDE-PublicApi-0049
  1081 //! @SYMTestCaseID		MM-ICL-ENCDE-PublicApi-0049
  1082 //! @SYMAPI			CImageEncoder
  1083 //! @SYMAuthor			James Mechen
  1084 //! @SYMCreationDate		13/01/2006
  1085 //! @SYMTestCaseDependencies	setup-MM-ICL-ENCDE-PublicApi.script
  1086 //! @SYMTestCaseDesc		Open tif 4-bit image file giving a mime type, without using RFile.
  1087 //!				Uses API elements: FileNewL().
  1088 //! @SYMTestActions    		1. Create encoder for tif file image.
  1089 //! @SYMTestStatus		Implemented
  1090 //! @SYMTestPriority		Critical
  1091 //! @SYMTestExpectedResults	KErrNotFound returned.
  1092 //! @SYMTestType		CIT
  1093 	START_TEST_BLOCK		10		T_ImageEncoder	\multimedia\MM-ICL-ENCDE-PublicApi.ini
  1094 		CREATE_OBJECT		CImageEncoder	imageencoder1
  1095 		COMMAND	!Error=-1	imageencoder1	FileNewL	MM-ICL-ENCDE-PublicApi-0049-001-FileNewL_command01
  1096 		COMMAND			imageencoder1	~
  1097 	END_TEST_BLOCK
  1098 END_TESTCASE 			MM-ICL-ENCDE-PublicApi-0049
  1099 
  1100 START_TESTCASE 			MM-ICL-ENCDE-PublicApi-0050
  1101 //! @SYMTestCaseID		MM-ICL-ENCDE-PublicApi-0050
  1102 //! @SYMAPI			CImageEncoder
  1103 //! @SYMAuthor			James Mechen
  1104 //! @SYMCreationDate		13/01/2006
  1105 //! @SYMTestCaseDependencies	setup-MM-ICL-ENCDE-PublicApi.script
  1106 //! @SYMTestCaseDesc		Open tif 2-bit image in buffer giving an image type.
  1107 //!				Uses API elements: DataNewL().
  1108 //! @SYMTestActions    		1. Create encoder for tif file buffer.
  1109 //! @SYMTestStatus		Implemented
  1110 //! @SYMTestPriority		Critical
  1111 //! @SYMTestExpectedResults	KErrNotFound returned.
  1112 //! @SYMTestType		CIT
  1113 	START_TEST_BLOCK		10		T_ImageEncoder	\multimedia\MM-ICL-ENCDE-PublicApi.ini
  1114 		CREATE_OBJECT		CImageEncoder	imageencoder1
  1115 		COMMAND	!Error=-1	imageencoder1	DataNewL	MM-ICL-ENCDE-PublicApi-0050-001-DataNewL_command01
  1116 		COMMAND			imageencoder1	~
  1117 	END_TEST_BLOCK
  1118 END_TESTCASE 			MM-ICL-ENCDE-PublicApi-0050
  1119 
  1120 START_TESTCASE 			MM-ICL-ENCDE-PublicApi-0051
  1121 //! @SYMTestCaseID		MM-ICL-ENCDE-PublicApi-0051
  1122 //! @SYMAPI			CImageEncoder
  1123 //! @SYMAuthor			James Mechen
  1124 //! @SYMCreationDate		13/01/2006
  1125 //! @SYMTestCaseDependencies	setup-MM-ICL-ENCDE-PublicApi.script
  1126 //! @SYMTestCaseDesc		Open tif 1-bit image in buffer giving a mime type.
  1127 //!				Uses API elements: DataNewL().
  1128 //! @SYMTestActions    		1. Create encoder for tif file buffer.
  1129 //! @SYMTestStatus		Implemented
  1130 //! @SYMTestPriority		Critical
  1131 //! @SYMTestExpectedResults	KErrNotFound returned.
  1132 //! @SYMTestType		CIT
  1133 	START_TEST_BLOCK		10		T_ImageEncoder	\multimedia\MM-ICL-ENCDE-PublicApi.ini
  1134 		CREATE_OBJECT		CImageEncoder	imageencoder1
  1135 		COMMAND	!Error=-1	imageencoder1	DataNewL	MM-ICL-ENCDE-PublicApi-0051-001-DataNewL_command01
  1136 		COMMAND			imageencoder1	~
  1137 	END_TEST_BLOCK
  1138 END_TESTCASE 			MM-ICL-ENCDE-PublicApi-0051
  1139 
  1140 
  1141 START_TESTCASE 			MM-ICL-ENCDE-PublicApi-0052
  1142 //! @SYMTestCaseID		MM-ICL-ENCDE-PublicApi-0052
  1143 //! @SYMAPI			CImageEncoder
  1144 //! @SYMAuthor			James Mechen
  1145 //! @SYMCreationDate		13/01/2006
  1146 //! @SYMTestCaseDependencies	setup-MM-ICL-ENCDE-PublicApi.script
  1147 //! @SYMTestCaseDesc		Get list of tif image sub-types that can be encoded.
  1148 //!				Uses API elements: GetImageSubTypesL().
  1149 //! @SYMTestActions    		1. Get list of tif image sub-types that can be encoded.
  1150 //! @SYMTestStatus		Implemented
  1151 //! @SYMTestPriority		High
  1152 //! @SYMTestExpectedResults	KErrNotFound returned.
  1153 //! @SYMTestType		CIT
  1154 	START_TEST_BLOCK		10		T_ImageEncoder		\multimedia\MM-ICL-ENCDE-PublicApi.ini
  1155 		CREATE_OBJECT		CImageEncoder	imageencoder1
  1156 		COMMAND	!Error=-1	imageencoder1	GetImageSubTypesL	MM-ICL-ENCDE-PublicApi-0052-001-GetImageSubTypesL_command01
  1157 		COMMAND			imageencoder1	~
  1158 	END_TEST_BLOCK
  1159 END_TESTCASE 			MM-ICL-ENCDE-PublicApi-0052
  1160 
  1161 
  1162 START_TESTCASE 			MM-ICL-ENCDE-PublicApi-0053
  1163 //! @SYMTestCaseID		MM-ICL-ENCDE-PublicApi-0053
  1164 //! @SYMAPI			CImageEncoder
  1165 //! @SYMAuthor			James Mechen
  1166 //! @SYMCreationDate		03/03/2006
  1167 //! @SYMTestCaseDependencies	setup-MM-ICL-ENCDE-PublicApi.script
  1168 //! @SYMTestCaseDesc		Convert an unloaded CFbsBitmap giving an image type, using RFile.
  1169 //!				Uses API elements: FileNewL(), Convert().
  1170 //! @SYMTestActions    		1. Create encoder for bmp file image. 2. Convert image.
  1171 //! @SYMTestStatus		Implemented
  1172 //! @SYMTestPriority		Critical
  1173 //! @SYMTestExpectedResults	KErrNone returned.
  1174 //! @SYMTestType		CIT
  1175 	START_TEST_BLOCK	10		T_ImageEncoder	\multimedia\MM-ICL-ENCDE-PublicApi.ini
  1176 		CREATE_OBJECT	CImageEncoder	imageencoder1
  1177 		COMMAND		imageencoder1	FileNewL	MM-ICL-ENCDE-PublicApi-0053-001-FileNewL_command01
  1178 		COMMAND		imageencoder1	Convert
  1179 		OUTSTANDING
  1180 		COMMAND		imageencoder1	~
  1181 	END_TEST_BLOCK
  1182 END_TESTCASE 			MM-ICL-ENCDE-PublicApi-0053
  1183 
  1184 START_TESTCASE 			MM-ICL-ENCDE-PublicApi-0054
  1185 //! @SYMTestCaseID		MM-ICL-ENCDE-PublicApi-0054
  1186 //! @SYMAPI			CImageEncoder
  1187 //! @SYMAuthor			James Mechen
  1188 //! @SYMCreationDate		03/03/2006
  1189 //! @SYMTestCaseDependencies	setup-MM-ICL-ENCDE-PublicApi.script
  1190 //! @SYMTestCaseDesc		Convert an unloaded CFbsBitmap giving a mime type, using RFile.
  1191 //!				Uses API elements: FileNewL(), Convert().
  1192 //! @SYMTestActions    		1. Create encoder for bmp file image. 2. Convert image.
  1193 //! @SYMTestStatus		Implemented
  1194 //! @SYMTestPriority		Critical
  1195 //! @SYMTestExpectedResults	KErrNone returned.
  1196 //! @SYMTestType		CIT
  1197 	START_TEST_BLOCK	10		T_ImageEncoder	\multimedia\MM-ICL-ENCDE-PublicApi.ini
  1198 		CREATE_OBJECT	CImageEncoder	imageencoder1
  1199 		COMMAND		imageencoder1	FileNewL	MM-ICL-ENCDE-PublicApi-0054-001-FileNewL_command01
  1200 		COMMAND		imageencoder1	Convert
  1201 		OUTSTANDING
  1202 		COMMAND		imageencoder1	~
  1203 	END_TEST_BLOCK
  1204 END_TESTCASE 			MM-ICL-ENCDE-PublicApi-0054
  1205 
  1206 START_TESTCASE 			MM-ICL-ENCDE-PublicApi-0055
  1207 //! @SYMTestCaseID		MM-ICL-ENCDE-PublicApi-0055
  1208 //! @SYMAPI			CImageEncoder
  1209 //! @SYMAuthor			James Mechen
  1210 //! @SYMCreationDate		03/03/2006
  1211 //! @SYMTestCaseDependencies	setup-MM-ICL-ENCDE-PublicApi.script
  1212 //! @SYMTestCaseDesc		Convert an unloaded CFbsBitmap giving an image type, without using RFile.
  1213 //!				Uses API elements: FileNewL(), Convert().
  1214 //! @SYMTestActions    		1. Create encoder for bmp file image. 2. Convert image.
  1215 //! @SYMTestStatus		Implemented
  1216 //! @SYMTestPriority		Critical
  1217 //! @SYMTestExpectedResults	KErrNone returned.
  1218 //! @SYMTestType		CIT
  1219 	START_TEST_BLOCK	10		T_ImageEncoder	\multimedia\MM-ICL-ENCDE-PublicApi.ini
  1220 		CREATE_OBJECT	CImageEncoder	imageencoder1
  1221 		COMMAND		imageencoder1	FileNewL	MM-ICL-ENCDE-PublicApi-0055-001-FileNewL_command01
  1222 		COMMAND		imageencoder1	Convert
  1223 		OUTSTANDING
  1224 		COMMAND		imageencoder1	~
  1225 	END_TEST_BLOCK
  1226 END_TESTCASE 			MM-ICL-ENCDE-PublicApi-0055
  1227 
  1228 START_TESTCASE 			MM-ICL-ENCDE-PublicApi-0056
  1229 //! @SYMTestCaseID		MM-ICL-ENCDE-PublicApi-0056
  1230 //! @SYMAPI			CImageEncoder
  1231 //! @SYMAuthor			James Mechen
  1232 //! @SYMCreationDate		03/03/2006
  1233 //! @SYMTestCaseDependencies	setup-MM-ICL-ENCDE-PublicApi.script
  1234 //! @SYMTestCaseDesc		Convert an unloaded CFbsBitmap giving a mime type, without using RFile.
  1235 //!				Uses API elements: FileNewL(), Convert().
  1236 //! @SYMTestActions    		1. Create encoder for bmp file image. 2. Convert image.
  1237 //! @SYMTestStatus		Implemented
  1238 //! @SYMTestPriority		Critical
  1239 //! @SYMTestExpectedResults	KErrNone returned.
  1240 //! @SYMTestType		CIT
  1241 	START_TEST_BLOCK	10		T_ImageEncoder	\multimedia\MM-ICL-ENCDE-PublicApi.ini
  1242 		CREATE_OBJECT	CImageEncoder	imageencoder1
  1243 		COMMAND		imageencoder1	FileNewL	MM-ICL-ENCDE-PublicApi-0056-001-FileNewL_command01
  1244 		COMMAND		imageencoder1	Convert
  1245 		OUTSTANDING
  1246 		COMMAND		imageencoder1	~
  1247 	END_TEST_BLOCK
  1248 END_TESTCASE 			MM-ICL-ENCDE-PublicApi-0056
  1249 
  1250 START_TESTCASE 			MM-ICL-ENCDE-PublicApi-0057
  1251 //! @SYMTestCaseID		MM-ICL-ENCDE-PublicApi-0057
  1252 //! @SYMAPI			CImageEncoder
  1253 //! @SYMAuthor			James Mechen
  1254 //! @SYMCreationDate		03/03/2006
  1255 //! @SYMTestCaseDependencies	setup-MM-ICL-ENCDE-PublicApi.script
  1256 //! @SYMTestCaseDesc		Convert in buffer from an unloaded CFbsBitmap giving an image type.
  1257 //!				Uses API elements: DataNewL(), Convert().
  1258 //! @SYMTestActions    		1. Create encoder for bmp file buffer. 2. Encode image.
  1259 //! @SYMTestStatus		Implemented
  1260 //! @SYMTestPriority		Critical
  1261 //! @SYMTestExpectedResults	KErrNone returned.
  1262 //! @SYMTestType		CIT
  1263 	START_TEST_BLOCK	10		T_ImageEncoder	\multimedia\MM-ICL-ENCDE-PublicApi.ini
  1264 		CREATE_OBJECT	CImageEncoder	imageencoder1
  1265 		COMMAND		imageencoder1	DataNewL	MM-ICL-ENCDE-PublicApi-0057-001-DataNewL_command01
  1266 		COMMAND		imageencoder1	Convert
  1267 		OUTSTANDING
  1268 		COMMAND		imageencoder1	~
  1269 	END_TEST_BLOCK
  1270 END_TESTCASE 			MM-ICL-ENCDE-PublicApi-0057
  1271 
  1272 START_TESTCASE 			MM-ICL-ENCDE-PublicApi-0058
  1273 //! @SYMTestCaseID		MM-ICL-ENCDE-PublicApi-0058
  1274 //! @SYMAPI			CImageEncoder
  1275 //! @SYMAuthor			James Mechen
  1276 //! @SYMCreationDate		03/03/2006
  1277 //! @SYMTestCaseDependencies	setup-MM-ICL-ENCDE-PublicApi.script
  1278 //! @SYMTestCaseDesc		Convert in buffer from an unloaded CFbsBitmap giving a mime type.
  1279 //!				Uses API elements: DataNewL(), Convert().
  1280 //! @SYMTestActions    		1. Create encoder for bmp file buffer. 2. Encode image.
  1281 //! @SYMTestStatus		Implemented
  1282 //! @SYMTestPriority		Critical
  1283 //! @SYMTestExpectedResults	KErrNone returned.
  1284 //! @SYMTestType		CIT
  1285 	START_TEST_BLOCK	10		T_ImageEncoder	\multimedia\MM-ICL-ENCDE-PublicApi.ini
  1286 		CREATE_OBJECT	CImageEncoder	imageencoder1
  1287 		COMMAND		imageencoder1	DataNewL	MM-ICL-ENCDE-PublicApi-0058-001-DataNewL_command01
  1288 		COMMAND		imageencoder1	Convert
  1289 		OUTSTANDING
  1290 		COMMAND		imageencoder1	~
  1291 	END_TEST_BLOCK
  1292 END_TESTCASE 			MM-ICL-ENCDE-PublicApi-0058
  1293 
  1294 //! START_TESTCASE 			MM-ICL-ENCDE-PublicApi-0059
  1295 //! @SYMTestCaseID		MM-ICL-ENCDE-PublicApi-0059
  1296 //! @SYMAPI			CImageEncoder
  1297 //! @SYMAuthor			Louis Nayegon
  1298 //! @SYMCreationDate		29/11/2005
  1299 //! @SYMTestCaseDependencies	setup-MM-ICL-ENCDE-PublicApi.script
  1300 //! @SYMTestCaseDesc		Encode to bmp from 24-bit image file giving an image type, using a closed RFile.
  1301 //!				Uses API elements: FileNewL(), Convert().
  1302 //! @SYMTestActions    		1. Create encoder for bmp file image. 2. Encode image.
  1303 //! @SYMTestStatus		Implemented
  1304 //! @SYMTestPriority		Critical
  1305 //! @SYMTestExpectedResults	Image encoded with no errors.
  1306 //! @SYMTestType		CIT
  1307 //! 	START_TEST_BLOCK	10		T_ImageEncoder	\multimedia\MM-ICL-ENCDE-PublicApi.ini
  1308 //! 		CREATE_OBJECT	CImageEncoder	imageencoder1
  1309 //! 		COMMAND		imageencoder1	FileNewL	MM-ICL-ENCDE-PublicApi-0059-001-FileNewL_command01
  1310 //! 		COMMAND		imageencoder1	Convert		MM-ICL-ENCDE-PublicApi-0059-001-Convert_command02
  1311 //! 		OUTSTANDING
  1312 //! 		COMMAND		imageencoder1	~
  1313 //! 	END_TEST_BLOCK	!PanicCode=0
  1314 //! END_TESTCASE 			MM-ICL-ENCDE-PublicApi-0059
  1315 
  1316 //! START_TESTCASE 			MM-ICL-ENCDE-PublicApi-0060
  1317 //! @SYMTestCaseID		MM-ICL-ENCDE-PublicApi-0060
  1318 //! @SYMAPI			CImageEncoder
  1319 //! @SYMAuthor			Louis Nayegon
  1320 //! @SYMCreationDate		29/11/2005
  1321 //! @SYMTestCaseDependencies	setup-MM-ICL-ENCDE-PublicApi.script
  1322 //! @SYMTestCaseDesc		Encode to bmp from 16-bit image file giving a mime type, using a closed RFile.
  1323 //!				Uses API elements: FileNewL(), Convert().
  1324 //! @SYMTestActions    		1. Create encoder for bmp file image. 2. Encode image.
  1325 //! @SYMTestStatus		Implemented
  1326 //! @SYMTestPriority		Critical
  1327 //! @SYMTestExpectedResults	Image encoded with no errors.
  1328 //! @SYMTestType		CIT
  1329 //! 	START_TEST_BLOCK	10		T_ImageEncoder	\multimedia\MM-ICL-ENCDE-PublicApi.ini
  1330 //! 		CREATE_OBJECT	CImageEncoder	imageencoder1
  1331 //! 		COMMAND		imageencoder1	FileNewL	MM-ICL-ENCDE-PublicApi-0060-001-FileNewL_command01
  1332 //! 		COMMAND		imageencoder1	Convert		MM-ICL-ENCDE-PublicApi-0060-001-Convert_command02
  1333 //! 		OUTSTANDING
  1334 //! 		COMMAND		imageencoder1	~
  1335 //! 	END_TEST_BLOCK	!PanicCode=0
  1336 //! END_TESTCASE 			MM-ICL-ENCDE-PublicApi-0060