equal
deleted
inserted
replaced
|
1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 #ifndef T_REBOOTTESTS_H_ |
|
16 #define T_REBOOTTESTS_H_ |
|
17 |
|
18 /** |
|
19 @test |
|
20 @internalComponent |
|
21 This class provides all the helper functions required in order to use |
|
22 the rebooting test harness. This harness is utilised on hardware builds |
|
23 to perform a full reboot after each test step whilst keeping track of |
|
24 which tests should be run at this boot. |
|
25 */ |
|
26 class CTRebootTestHelper : public CBase |
|
27 { |
|
28 public: |
|
29 static CTRebootTestHelper* NewLC(); |
|
30 void BuildCommandScriptL(const TDesC& aFileIn, const TDesC& aFileOut, TInt aTestCase); |
|
31 TInt8 FindLastTestL(const TDesC& aFile); |
|
32 void WriteTestOutL(const TDesC& aFile, TInt8 aValue); |
|
33 void WriteDummyLogFileL(const TDesC& aScriptName, const TDesC& aLogFile); |
|
34 private: |
|
35 CTRebootTestHelper(); |
|
36 ~CTRebootTestHelper(); |
|
37 void ConstructL(); |
|
38 |
|
39 public: |
|
40 RFs iFs; |
|
41 }; |
|
42 |
|
43 #endif /*T_REBOOTTESTS_H_*/ |