|
1 // Copyright (c) 1999-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 "T_SmsSendBase.h" |
|
17 |
|
18 class CImTextServerSession; |
|
19 |
|
20 //SMS Scripting |
|
21 _LIT(KSmsScript,"sms.script"); |
|
22 |
|
23 class CSmsSendTextTest : public CSmsSendTestBase |
|
24 { |
|
25 public: |
|
26 static CSmsSendTextTest* NewL(CSmsTestUtils& aSmsTest, const TDesC& aScriptFile, TInt& aCurrentTest); |
|
27 ~CSmsSendTextTest(); |
|
28 |
|
29 private: |
|
30 CSmsSendTextTest(CSmsTestUtils& aSmsTest, const TDesC& aScriptFile, TInt& aCurrentTest); |
|
31 void TestSendingL(); |
|
32 void TestSchedulingL(); |
|
33 void TestSendWithDataCallL(); |
|
34 void WaitForEndOfDataCallL(); |
|
35 void TestConnectingL(); |
|
36 TBool GetDataLineInfoForPhoneL(RPhone& aPhone, RPhone::TLineInfo& aLineInfo); |
|
37 |
|
38 void TestSendNoRecipientsL(); |
|
39 |
|
40 void RunAutoL(); |
|
41 void RunL(); |
|
42 void DoRunSendNoRecipientsL(); |
|
43 |
|
44 enum TSendTextTestState |
|
45 /** @enum TSendTextTestState |
|
46 * Enum defining the states of this test harness |
|
47 */ |
|
48 { |
|
49 EStateWaiting, |
|
50 EStateSendNoRecipients |
|
51 } iSendTextTestState; |
|
52 |
|
53 CImTextServerSession* iTextSession; //< to establish a data call |
|
54 }; |