sl@0: // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // 3GP library parser api Unit Testing script sl@0: // testexecute.exe [path]\[this script name]. 3GP library and necessary test files should be present. sl@0: // It requires no exceptional network support. sl@0: // sl@0: // sl@0: sl@0: //! @file sl@0: //! @SYMTestSuiteName tsu_3gp_parse_api sl@0: //! @SYMScriptTestEnvironment This test runs using Symbian test execution with the following test list entry: sl@0: sl@0: sl@0: PRINT Run all the 3GP library parser api Unit sl@0: PRINT sl@0: sl@0: LOAD_SUITE tsu_3gplibrary sl@0: sl@0: // Positive test sl@0: sl@0: START_TESTCASE MM-3GP-PARSE-U-0045-CP sl@0: //! @SYMTestCaseID MM-3GP-PARSE-U-0045-CP sl@0: //! @SYMREQ REQ12477 sl@0: //! @SYMTestCaseDesc Test the parser with large file (>2GB) sl@0: //! Pre-Condition A valid large mp4/3gp file (>2GB) containing both audio and video streams sl@0: //! @SYMTestPriority High sl@0: //! @SYMTestActions Retrieve video/audio attributes and frames sl@0: //! @SYMTestExpectedResults Retrieving audio/video attributes and frames with no errors. sl@0: RUN_TEST_STEP !Heap=0x5000000 -1 tsu_3gplibrary MM-3GP-PARSE-U-0045-CP c:\mm\tsu_3gp_parse_api_te.ini 3GP-H264-MP4-LARGE sl@0: END_TESTCASE MM-3GP-PARSE-U-0045-CP sl@0: sl@0: START_TESTCASE MM-3GP-PARSE-U-0046-CP sl@0: //! @SYMTestCaseID MM-3GP-PARSE-U-0046-CP sl@0: //! @SYMREQ REQ12477 sl@0: //! @SYMTestCaseDesc Retrieval of user data atom from a large file (>2GB) sl@0: //! Pre-Condition A valid >2GB mp4/3gp file must be present sl@0: //! @SYMTestPriority High sl@0: //! @SYMTestActions 1. Retrieve user data atom with multiple entries all of the same type sl@0: //! 2. Retrieve user data atom with multiple entries of the same type and some other types sl@0: //! 3. Retrieve user data atom with no entries of the specified type but with entries of some other types sl@0: //! @SYMTestExpectedResults Test returns with no error. sl@0: RUN_TEST_STEP -1 tsu_3gplibrary UserDataAtomRetrieval c:\mm\tsu_3gp_parse_api_te.ini MM-3GP-PARSE-U-0046-CP sl@0: END_TESTCASE MM-3GP-PARSE-U-0046-CP sl@0: sl@0: //START_TESTCASE MM-3GP-PARSE-U-0047-CP sl@0: //! @SYMTestCaseID MM-3GP-PARSE-U-0047-CP sl@0: //! @SYMREQ REQ12477 sl@0: //! @SYMTestCaseDesc Parse video/audio frames from >2GB file synchronously in buffer mode sl@0: //! Pre-Condition A valid >2GB mp4/3gp file containing both supported audio and video streams must be present sl@0: //! @SYMTestPriority High sl@0: //! @SYMTestActions Parse video/audio frames from >2GB file synchronously in buffer mode sl@0: //! @SYMTestExpectedResults All frames retrieved with no error. sl@0: //RUN_TEST_STEP !Heap=0x5000000 -1 tsu_3gplibrary MM-3GP-PARSE-U-0047-CP c:\mm\tsu_3gp_parse_api_te.ini 3GP-H264-MP4-LARGE sl@0: //END_TESTCASE MM-3GP-PARSE-U-0047-CP sl@0: sl@0: // end of positive testing sl@0: sl@0: // Negative testing sl@0: sl@0: START_TESTCASE MM-3GP-PARSE-U-0137-CP sl@0: //! @SYMTestCaseID MM-3GP-PARSE-U-0137-CP sl@0: //! @SYMREQ REQ12477 sl@0: //! @SYMTestCaseDesc Read of video/audio properties from a large file using 32bit APIs sl@0: //! Pre-Condition File with audio & video. sl@0: //! @SYMTestPriority High sl@0: //! @SYMTestActions 1. Setup a 3GP Parser object with a large file using 32bit APIs sl@0: //! 2. Attempt to read properties sl@0: //! @SYMTestExpectedResults Should fail with KErrTooBig. sl@0: RUN_TEST_STEP !Heap=0x5000000 !Error=-40 -1 tsu_3gplibrary MM-3GP-PARSE-U-0137-CP c:\mm\tsu_3gp_parse_api_te.ini 3GP-H264-MP4-LARGE sl@0: END_TESTCASE MM-3GP-PARSE-U-0137-CP sl@0: sl@0: START_TESTCASE MM-3GP-PARSE-U-0138-CP sl@0: //! @SYMTestCaseID MM-3GP-PARSE-U-0138-CP sl@0: //! @SYMREQ REQ12477 sl@0: //! @SYMTestCaseDesc Read video/audio frame from a large file using 32bit APIs sl@0: //! Pre-Condition File with audio & video. sl@0: //! @SYMTestPriority High sl@0: //! @SYMTestActions 1. Setup a 3GP Parser object with a large file using 32bit APIs sl@0: //! 2. Attempt to read a frame sl@0: //! @SYMTestExpectedResults Should fail with KErrTooBig. sl@0: RUN_TEST_STEP !Heap=0x5000000 !Error=-40 -1 tsu_3gplibrary MM-3GP-PARSE-U-0138-CP c:\mm\tsu_3gp_parse_api_te.ini 3GP-H264-MP4-LARGE sl@0: END_TESTCASE MM-3GP-PARSE-U-0138-CP sl@0: sl@0: START_TESTCASE MM-3GP-PARSE-U-0139-CP sl@0: //! @SYMTestCaseID MM-3GP-PARSE-U-0139-CP sl@0: //! @SYMREQ REQ12477 sl@0: //! @SYMTestCaseDesc Async read video/audio frame from a large file using 32bit APIs sl@0: //! Pre-Condition File with audio & video. sl@0: //! @SYMTestPriority High sl@0: //! @SYMTestActions 1. Setup a 3GP Parser object with a large file using 32bit APIs sl@0: //! 2. Attempt to read a frame sl@0: //! @SYMTestExpectedResults Should fail with KErrTooBig. sl@0: RUN_TEST_STEP !Heap=0x5000000 !Error=-40 -1 tsu_3gplibrary MM-3GP-PARSE-U-0139-CP c:\mm\tsu_3gp_parse_api_te.ini 3GP-H264-MP4-LARGE sl@0: END_TESTCASE MM-3GP-PARSE-U-0139-CP sl@0: sl@0: // End of negative tests