author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Thu, 07 Jan 2010 13:38:45 +0200 | |
changeset 6 | 0173bcd7697c |
parent 2 | 4122176ea935 |
permissions | -rw-r--r-- |
0 | 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 |
|
2
4122176ea935
Revision: 200948 + Removing redundant base integration tests and fixing build errors
John Imhofe <john.imhofe@nokia.com>
parents:
0
diff
changeset
|
5 |
// under the terms of "Eclipse Public License v1.0" |
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 |
// |
|
2
4122176ea935
Revision: 200948 + Removing redundant base integration tests and fixing build errors
John Imhofe <john.imhofe@nokia.com>
parents:
0
diff
changeset
|
14 |
// Description: |
0 | 15 |
// |
16 |
//! @file |
|
17 |
//! @SYMTestSuiteName PBASE-F32-File-PublicApi-NAND |
|
18 |
//! @SYMScriptTestEnvironment This test script requires a Pagged ROM. |
|
19 |
//! So tests has to be run on Pagged ROM.This tests is good tests only on H/w on which the memory is pagaed. |
|
20 |
//! On emulator these tests will not return proper value/so it can be ignored. |
|
21 |
//! @SYMScriptCreationDate 27/08/2007 |
|
22 |
//! @SYMScriptDescription The test script contains API tests for the following functions of RFile class: |
|
23 |
//! TInt BlockMap(SBlockMapInfo &aInfo, TInt64 &aStartPos, TInt64 aEndPos=-1, TInt aBlockMapusage=EBlockMapUsagePaging) const; |
|
24 |
||
25 |
||
26 |
LOAD_SUITE T_SfSrv |
|
27 |
DELAY 1000 |
|
28 |
||
29 |
||
30 |
// |
|
31 |
// BlockMap |
|
32 |
// |
|
33 |
||
34 |
||
35 |
START_TESTCASE PBASE-F32-File-PublicApi-6001 |
|
36 |
//! @SYMTestCaseID PBASE-F32-File-PublicApi-6001 |
|
37 |
//! @SYMAPI RFile |
|
38 |
//! @SYMTestCaseDesc Function BlockMap() test, replace a file and then call BlockMap() on it to get the block/cluster Information |
|
39 |
//! Uses API elements: Open(), BlockMap(). |
|
40 |
//! @SYMTestActions 1. Create RFs session. |
|
41 |
//! 2. Call RFile::Replace() |
|
42 |
//! 4. Call RFile::BlockMap(). |
|
43 |
//! 5. Close RFile. |
|
44 |
//! 6. Delete file. |
|
45 |
//! 7. Close RFs. |
|
46 |
//! |
|
47 |
//! @SYMTestStatus Implemented |
|
48 |
//! @SYMTestPriority Critical |
|
49 |
//! @SYMTestExpectedResults The tests returns KErrNotSupported on the Rom which is unpaged. On the pagged rom this tests will return |
|
50 |
//! KErrCompletion if the end of the file is reached. |
|
51 |
//! |
|
52 |
//! @SYMTestType CIT |
|
53 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-File-PublicApi.ini |
|
54 |
CREATE_OBJECT RFs RFs1 |
|
55 |
CREATE_OBJECT RFile file |
|
56 |
COMMAND RFs1 new |
|
57 |
COMMAND RFs1 Connect |
|
58 |
COMMAND file new |
|
59 |
COMMAND file Open PBASE-F32-File-PublicApi-6001-001-Replace_command003 |
|
60 |
COMMAND !Error=-17 file BlockMap PBASE-F32-File-PublicApi-6001-001-BlockMap_command003 |
|
61 |
COMMAND file Close |
|
62 |
COMMAND file ~ |
|
63 |
COMMAND RFs1 ~ |
|
64 |
END_TEST_BLOCK |
|
65 |
END_TESTCASE PBASE-F32-File-PublicApi-6001 |
|
66 |
||
67 |
||
68 |
START_TESTCASE PBASE-F32-File-PublicApi-6002 |
|
69 |
//! @SYMTestCaseID PBASE-F32-File-PublicApi-6002 |
|
70 |
//! @SYMAPI RFile |
|
71 |
//! @SYMTestCaseDesc Function BlockMap() test. Call BlockMap with Usage ETestDebug |
|
72 |
//! Uses API elements: Open(), BlockMap(). |
|
73 |
//! @SYMTestActions 1. Create RFs session. |
|
74 |
//! 2. Call RFile::Replace() to create file tc0002 with EFileWrite |
|
75 |
//! 4. Call RFile::BlockMap() passing EBlockMapUsagePaging for usage, 0 for startPos. |
|
76 |
//! 5. Close RFile. |
|
77 |
//! 6. Delete file. |
|
78 |
//! 7. Close RFs. |
|
79 |
//! |
|
80 |
//! @SYMTestStatus Implemented |
|
81 |
//! @SYMTestPriority Critical |
|
82 |
//! @SYMTestExpectedResults The tests returns KErrNotSupported on the Rom which is unpaged. On the pagged rom this tests will return |
|
83 |
//! KErrCompletion if the end of the file is reached. |
|
84 |
//! |
|
85 |
//! @SYMTestType CIT |
|
86 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-File-PublicApi.ini |
|
87 |
CREATE_OBJECT RFs RFs1 |
|
88 |
CREATE_OBJECT RFile file |
|
89 |
COMMAND RFs1 new |
|
90 |
COMMAND RFs1 Connect |
|
91 |
COMMAND file new |
|
92 |
COMMAND file Open PBASE-F32-File-PublicApi-6002-001-Replace_command003 |
|
93 |
COMMAND !Error=-17 file BlockMap PBASE-F32-File-PublicApi-6002-001-BlockMap_command004 |
|
94 |
COMMAND file Close |
|
95 |
COMMAND file ~ |
|
96 |
COMMAND RFs1 ~ |
|
97 |
END_TEST_BLOCK |
|
98 |
END_TESTCASE PBASE-F32-File-PublicApi-6002 |
|
99 |
||
100 |