|
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 #ifndef __INEURILISTTESTBASE_H__ |
|
17 #define __INEURILISTTESTMAIN_H__ |
|
18 |
|
19 #include <ineturilist.h> |
|
20 #include <ineturilistdef.h> |
|
21 |
|
22 class CTestWrapper; |
|
23 |
|
24 typedef InetUriList::TServiceType ServiceType; |
|
25 typedef InetUriList::TListType ListType; |
|
26 |
|
27 class CInetUriListTest : public CBase |
|
28 { |
|
29 public: |
|
30 static CInetUriListTest* NewL ( CTestWrapper& aTest ); |
|
31 virtual ~CInetUriListTest (); |
|
32 |
|
33 void TestSuccess ( TInt aError ); |
|
34 |
|
35 protected: |
|
36 CInetUriListTest (CTestWrapper& aTest); |
|
37 void ConstructL (); |
|
38 |
|
39 protected: |
|
40 RInetUriList iUriList; |
|
41 TInt iError; |
|
42 CTestWrapper& iTestWrapper; |
|
43 }; |
|
44 |
|
45 class CAddUriTest : public CInetUriListTest |
|
46 { |
|
47 public: |
|
48 static CAddUriTest* NewLC ( CTestWrapper& aTest, const TDesC8& aUri, ServiceType aServiceType, ListType aListType, const TDesC8& aFavouriteName ); |
|
49 ~CAddUriTest (); |
|
50 void DoOperationL (); |
|
51 private: |
|
52 CAddUriTest ( CTestWrapper& aTest ); |
|
53 void ConstructL ( const TDesC8& aUri, ServiceType aServiceType, ListType aListType, const TDesC8& aFavouriteName ); |
|
54 |
|
55 private: |
|
56 RInetUri iInetUri; |
|
57 }; |
|
58 |
|
59 class CCountUriTest : public CInetUriListTest |
|
60 { |
|
61 public: |
|
62 static CCountUriTest* NewLC ( CTestWrapper& aTest, ServiceType aServiceType, ListType aListType ); |
|
63 ~CCountUriTest (); |
|
64 void DoOperationL (); |
|
65 void ExpectedResult ( TInt aExpectedResult ); |
|
66 |
|
67 private: |
|
68 CCountUriTest ( CTestWrapper& aTest, ServiceType aServiceType, ListType aListType ); |
|
69 void ConstructL (); |
|
70 |
|
71 private: |
|
72 ServiceType iServiceType; |
|
73 ListType iListType; |
|
74 TInt iExpectedResult; |
|
75 }; |
|
76 #endif // __INEURILISTTESTMAIN_H__ |