author | John Imhofe <john.imhofe@nokia.com> |
Mon, 21 Dec 2009 16:14:42 +0000 | |
changeset 2 | 4122176ea935 |
parent 0 | a41df078684a |
permissions | -rw-r--r-- |
0 | 1 |
/* |
2
4122176ea935
Revision: 200948 + Removing redundant base integration tests and fixing build errors
John Imhofe <john.imhofe@nokia.com>
parents:
0
diff
changeset
|
2 |
* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
0 | 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 |
*/ |
|
17 |
||
18 |
||
19 |
||
2
4122176ea935
Revision: 200948 + Removing redundant base integration tests and fixing build errors
John Imhofe <john.imhofe@nokia.com>
parents:
0
diff
changeset
|
20 |
|
0 | 21 |
|
22 |
#include "t_fat32larger512.h" |
|
23 |
||
24 |
/** |
|
25 |
Class Constructor |
|
26 |
*/ |
|
27 |
CBaseTestFat32Larger512::CBaseTestFat32Larger512() |
|
28 |
{ |
|
29 |
SetTestStepName(KTestStepLarger512); |
|
30 |
} |
|
31 |
||
32 |
/** |
|
33 |
Class Destructor |
|
34 |
*/ |
|
35 |
CBaseTestFat32Larger512::~CBaseTestFat32Larger512() |
|
36 |
{ |
|
37 |
} |
|
38 |
||
39 |
||
40 |
/** |
|
41 |
Checks that if the disk size is greater or equal to 512MB, the file system is |
|
42 |
FAT32, else the file system is FAT. |
|
43 |
||
44 |
||
45 |
@return EPass if test passes and EFail if test fails |
|
46 |
*/ |
|
47 |
TVerdict CBaseTestFat32Larger512::doTestStepL() |
|
48 |
{ |
|
49 |
SetTestStepResult(EPass); |
|
50 |
||
51 |
if (iDiskSize >= (512*1024*1024)) |
|
52 |
{ |
|
53 |
if (IsFileSystemFAT32()) |
|
54 |
{ |
|
55 |
_LIT(KLargCorrect, "Disk size is greater or equal to 512MB and the filesystem is FAT32"); |
|
56 |
INFO_PRINTF1(KLargCorrect); |
|
57 |
SetTestStepResult(EPass); |
|
58 |
} |
|
59 |
else |
|
60 |
{ |
|
61 |
_LIT(KLargErr, "Disk size is greater or equal to 512MB and the filesystem is not FAT32"); |
|
62 |
INFO_PRINTF1(KLargErr); |
|
63 |
SetTestStepResult(EFail); |
|
64 |
} |
|
65 |
} |
|
66 |
if (iDiskSize < (512*1024*1024)) |
|
67 |
{ |
|
68 |
if (IsFileSystemFAT(iTheFs ,CurrentDrive())) |
|
69 |
{ |
|
70 |
_LIT(KLargCorrect, "Disk size is less 512MB and the filesystem is FAT"); |
|
71 |
INFO_PRINTF1(KLargCorrect); |
|
72 |
SetTestStepResult(EPass); |
|
73 |
} |
|
74 |
else |
|
75 |
{ |
|
76 |
_LIT(KLargErr, "Disk size less than 512MB and the filesystem is not FAT"); |
|
77 |
INFO_PRINTF1(KLargErr); |
|
78 |
SetTestStepResult(EFail); |
|
79 |
} |
|
80 |
} |
|
81 |
return TestStepResult(); |
|
82 |
} |
|
83 |