|
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 // functional unit of the SAT. |
|
15 // |
|
16 |
|
17 |
|
18 |
|
19 /** |
|
20 @file The TEFUnit header file which tests the LaunchBrowser |
|
21 */ |
|
22 |
|
23 #ifndef CCSATLAUNCHBROWSERFU_H |
|
24 #define CCSATLAUNCHBROWSERFU_H |
|
25 |
|
26 #include "ccsatcomponenttestbase.h" |
|
27 |
|
28 class CCSatLaunchBrowserFU : public CCSatComponentTestBase |
|
29 { |
|
30 public: |
|
31 // Create a suite of all the tests |
|
32 static CTestSuite* CreateSuiteL(const TDesC& aName); |
|
33 |
|
34 public: |
|
35 // Individual test steps |
|
36 |
|
37 void TestNotifyLaunchBrowserPCmd0001L(); |
|
38 void TestNotifyLaunchBrowserPCmd0002L(); |
|
39 void TestNotifyLaunchBrowserPCmd0004L(); |
|
40 |
|
41 private: |
|
42 |
|
43 struct TBrowserData |
|
44 { |
|
45 TUint8 iCommandQualifier; |
|
46 RSat::TUrl iUrl; |
|
47 RSat::TBearerList iBearerList; |
|
48 TBuf8<RSat::KTextStringMaxSize> iText; |
|
49 TBuf8<RSat::KAlphaIdMaxSize> iAlphaId; |
|
50 TBool iIfAlphaId; |
|
51 TUint iBrowserId; |
|
52 TBool iIfUsedBrowserId; |
|
53 RSat::TProvisioningFileRef iFileRef; |
|
54 }; |
|
55 |
|
56 void PrepareTlvData ( TTlv& aTlvData ); |
|
57 void PrepareExpectDataL (); |
|
58 void PrepareCompleteDataL ( TInt aResultCode = KErrNone ); |
|
59 |
|
60 void ProactiveCommandCallL( |
|
61 RSat::TLaunchBrowserV2& aLaunchBrowserData, |
|
62 TInt aCompleteErrorCode = KErrNone, |
|
63 TInt aResultCode = KErrNone, |
|
64 TBool aIfCreateTerminal = EFalse, |
|
65 RSat::TPCmdResult aGeneralResult = RSat::KSuccess, |
|
66 TUint8 aCommandQualifier = KLaunchBrowserIfNotYetLaunched, |
|
67 const TDesC& aAdditionalInfo = KNullDesC |
|
68 ); |
|
69 |
|
70 void DataInitialization( |
|
71 TUint8 aCommandQualifier, |
|
72 const TDesC8& aUrl, |
|
73 const TDesC8& aBearerList, |
|
74 const TDesC8& aText, |
|
75 const TDesC8& aAlphaId, |
|
76 const TDesC8& aFileRef, |
|
77 TBool aIfUsedBrowserId = EFalse, |
|
78 TUint aBrowserId = RSat::EBrowserIdNotSet, |
|
79 TBool aIfAlphaId = EFalse |
|
80 ); |
|
81 |
|
82 void TerminalResponseCallL( |
|
83 const RSat& aSat, |
|
84 RSat::TPCmdResult aGeneralResult = RSat::KSuccess, |
|
85 const TDesC& aAdditionalInfo = KNullDesC, |
|
86 TInt aResultCode = KErrNone, |
|
87 TUint aInfoType = RSat::KNoAdditionalInfo |
|
88 ); |
|
89 |
|
90 void DataCompareL( const RSat::TLaunchBrowserV2& aLaunchBrowser ); |
|
91 void ClearData( RSat::TLaunchBrowserV2& aLaunchBrowser ); |
|
92 |
|
93 TBrowserData iData; |
|
94 |
|
95 }; // class CCSatLaunchBrowserFU |
|
96 |
|
97 #endif // CCSATLAUNCHBROWSERFU_H |
|
98 |