sl@0
|
1 |
//
|
sl@0
|
2 |
// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
3 |
// All rights reserved.
|
sl@0
|
4 |
// This component and the accompanying materials are made available
|
sl@0
|
5 |
// under the terms of "Eclipse Public License v1.0"
|
sl@0
|
6 |
// which accompanies this distribution, and is available
|
sl@0
|
7 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
8 |
//
|
sl@0
|
9 |
// Initial Contributors:
|
sl@0
|
10 |
// Nokia Corporation - initial contribution.
|
sl@0
|
11 |
//
|
sl@0
|
12 |
// Contributors:
|
sl@0
|
13 |
//
|
sl@0
|
14 |
// Description:
|
sl@0
|
15 |
//
|
sl@0
|
16 |
//! @file
|
sl@0
|
17 |
//! @SYMTestSuiteName pbase-f32-sfsrv-publicapi-rom
|
sl@0
|
18 |
//! @SYMScriptTestEnvironment This test script requires a basic ROM.
|
sl@0
|
19 |
//! @SYMScriptAuthor Alvar Udras, Runno Sgirka
|
sl@0
|
20 |
//! @SYMScriptDescription The test script contains API tests for the following functions of RFormat class:
|
sl@0
|
21 |
//! TInt Open(RFs &aFs, const TDesC &aName, TUint aFormatMode, TInt &aCount);
|
sl@0
|
22 |
//! void Close();
|
sl@0
|
23 |
|
sl@0
|
24 |
LOAD_SUITE t_sfsrv
|
sl@0
|
25 |
DELAY 5000
|
sl@0
|
26 |
|
sl@0
|
27 |
|
sl@0
|
28 |
START_TESTCASE PBASE-F32-Format-PublicApi-1002
|
sl@0
|
29 |
//! @SYMTestCaseID PBASE-F32-Format-PublicApi-1002
|
sl@0
|
30 |
//! @SYMAPI RFormat
|
sl@0
|
31 |
//! @SYMTestCaseDesc Functions Open(RFs &aFs, const TDesC &aName, TUint aFormatMode, TInt &aCount) and Close() test. Open a ROM device
|
sl@0
|
32 |
//! using EQuickFormat as format mode and close it.
|
sl@0
|
33 |
//! Uses API elements: Open(), Close().
|
sl@0
|
34 |
//! @SYMTestActions 1. Create RFs session.
|
sl@0
|
35 |
//! 2. Connect the RFs session.
|
sl@0
|
36 |
//! 3. Call Open(RFs &aFs, const TDesC &aName, TUint aFormatMode, TInt &aCount) method, passing the RFs session,
|
sl@0
|
37 |
//! ROM drive letter, EQuickFormat, aCount as parameters.
|
sl@0
|
38 |
//! 4. Call Close() to close the RFormat instance.
|
sl@0
|
39 |
//! 5. Close RFs session.
|
sl@0
|
40 |
//! @SYMTestStatus Implemented
|
sl@0
|
41 |
//! @SYMTestPriority Critical
|
sl@0
|
42 |
//! @SYMTestExpectedResults The Open() method call returns error -14 (KErrInUse).
|
sl@0
|
43 |
//! @SYMTestType CIT
|
sl@0
|
44 |
START_TEST_BLOCK 100 t_sfsrv \base\PBASE-F32-Format-PublicApi.ini
|
sl@0
|
45 |
CREATE_OBJECT RFs rfs1
|
sl@0
|
46 |
CREATE_OBJECT RFormat format1
|
sl@0
|
47 |
COMMAND rfs1 new
|
sl@0
|
48 |
COMMAND rfs1 Connect
|
sl@0
|
49 |
COMMAND format1 new
|
sl@0
|
50 |
COMMAND !Error=-14 format1 Open PBASE-F32-Format-PublicApi-1002-001-Open_command05
|
sl@0
|
51 |
COMMAND format1 Close
|
sl@0
|
52 |
COMMAND format1 ~
|
sl@0
|
53 |
COMMAND rfs1 Close
|
sl@0
|
54 |
COMMAND rfs1 ~
|
sl@0
|
55 |
END_TEST_BLOCK
|
sl@0
|
56 |
END_TESTCASE PBASE-F32-Format-PublicApi-1002
|
sl@0
|
57 |
|