1 /* |
|
2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the License "Eclipse Public License v1.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 * |
|
14 * Description: |
|
15 * Defines the unit test steps for the SCR Data Layer. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 /** |
|
21 @file |
|
22 @internalComponent |
|
23 @test |
|
24 */ |
|
25 |
|
26 #ifndef TSCRDATALAYER_H |
|
27 #define TSCRDATALAYER_H |
|
28 |
|
29 #include "scrdatabase.h" |
|
30 #include "tscrdatalayerserver.h" |
|
31 |
|
32 #include <scs/oomteststep.h> |
|
33 using namespace Usif; |
|
34 |
|
35 // Constant used to name this test case |
|
36 _LIT(KScrDataLayerStep,"SCRDataLayer"); |
|
37 |
|
38 class CScrTestDataLayer : public COomTestStep |
|
39 { |
|
40 public: |
|
41 CScrTestDataLayer(CScrDataLayerTestServer& aParent); |
|
42 ~CScrTestDataLayer(); |
|
43 void ImplTestStepPreambleL(); |
|
44 void ImplTestStepL(); |
|
45 void ImplTestStepPostambleL(); |
|
46 |
|
47 private: |
|
48 void InsertRecordL(CStatement& aStmt, TInt aCol1, const TDesC& aCol2, const TDesC& aCol3); |
|
49 void VerifyRecordL(CStatement& aStmt, TInt aCol1, const TDesC& aCol2, const TDesC& aCol3); |
|
50 void ExecuteBadStatementL(CDatabase &aDb, TInt aTestNum, const TDesC& aStatement); |
|
51 void PrintErrorL(const TDesC& aMsg, TInt aErrNum,...); |
|
52 }; |
|
53 |
|
54 #endif /* TSCRDATALAYER_H */ |
|