|
1 // Copyright (c) 2007-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 |
|
16 #include "tineturilisttester.h" |
|
17 #include "tineturilisttests.h" |
|
18 #include "testutils.h" |
|
19 #include <e32test.h> |
|
20 |
|
21 |
|
22 CInetUriListTester* CInetUriListTester::NewL ( CTestWrapper& aTest ) |
|
23 { |
|
24 CInetUriListTester* self = new (ELeave) CInetUriListTester ( aTest ); |
|
25 return self; |
|
26 } |
|
27 |
|
28 CInetUriListTester::CInetUriListTester ( CTestWrapper& aTest ) |
|
29 : iTestWrapper ( aTest ) |
|
30 { |
|
31 |
|
32 } |
|
33 |
|
34 CInetUriListTester::~CInetUriListTester () |
|
35 { |
|
36 } |
|
37 |
|
38 void CInetUriListTester::TestL ( TBool aNormalRun ) |
|
39 { |
|
40 DoStorageTestsL (aNormalRun); |
|
41 DoQueryTestsL (aNormalRun); |
|
42 } |
|
43 |
|
44 void CInetUriListTester::DoStorageTestsL (TBool aNormalRun) |
|
45 { |
|
46 CInetUriListTestsBase* storageTests = CInetUriListStorageTests::NewL ( iTestWrapper, aNormalRun ); |
|
47 CleanupStack::PushL (storageTests); |
|
48 storageTests->RunTestsL (); |
|
49 CleanupStack::PopAndDestroy (); // storageTests |
|
50 } |
|
51 |
|
52 void CInetUriListTester::DoQueryTestsL (TBool aNormalRun) |
|
53 { |
|
54 CInetUriListTestsBase* queryTests = CInetUriListQuery::NewLC ( iTestWrapper, aNormalRun ); |
|
55 queryTests->RunTestsL (); |
|
56 CleanupStack::PopAndDestroy (); // storageTests |
|
57 } |
|
58 |
|
59 void CInetUriListTester::DoListCleanupL () |
|
60 { |
|
61 CInetUriListCleanup* listCleanup = CInetUriListCleanup::NewL (iTestWrapper); |
|
62 CleanupStack::PushL ( listCleanup ); |
|
63 listCleanup->DoOperationL (); |
|
64 CleanupStack::PopAndDestroy (); // listCleanup |
|
65 } |
|
66 |
|
67 |