|
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 // |
|
15 |
|
16 |
|
17 |
|
18 /** |
|
19 @file The TEFUnit test suite for MultimediaMsg in the SAT. |
|
20 */ |
|
21 |
|
22 #include "ccsatmultimediamsgfu.h" |
|
23 #include <etel.h> |
|
24 #include <etelmm.h> |
|
25 #include <test/tmockltsydata.h> |
|
26 |
|
27 CTestSuite* CCSatMultimediaMsgFU::CreateSuiteL(const TDesC& aName) |
|
28 { |
|
29 SUB_SUITE; |
|
30 |
|
31 ADD_TEST_STEP_ISO_CPP(CCSatMultimediaMsgFU, TestNotifyRetrieveMultimediaMsgPCmd0001L); |
|
32 ADD_TEST_STEP_ISO_CPP(CCSatMultimediaMsgFU, TestNotifySubmitMultimediaMsgPCmd0001L); |
|
33 ADD_TEST_STEP_ISO_CPP(CCSatMultimediaMsgFU, TestNotifyDisplayMultimediaMsgPCmd0001L); |
|
34 |
|
35 END_SUITE; |
|
36 } |
|
37 |
|
38 |
|
39 // |
|
40 // Actual test cases |
|
41 // |
|
42 |
|
43 |
|
44 /** |
|
45 @SYMTestCaseID BA-CSAT-MMM-RMMMPC-0001 |
|
46 @SYMPREQ 1780 |
|
47 @SYMComponent telephony_csat |
|
48 @SYMTestCaseDesc Test support in CSAT for RSat::NotifyRetrieveMultimediaMsgPCmd |
|
49 @SYMTestPriority High |
|
50 @SYMTestActions Invokes RSat::NotifyRetrieveMultimediaMsgPCmd |
|
51 @SYMTestExpectedResults Pass |
|
52 @SYMTestType CT |
|
53 */ |
|
54 void CCSatMultimediaMsgFU::TestNotifyRetrieveMultimediaMsgPCmd0001L() |
|
55 { |
|
56 OpenEtelServerL(EUseExtendedError); |
|
57 CleanupStack::PushL(TCleanupItem(Cleanup,this)); |
|
58 OpenPhoneL(); |
|
59 OpenSatL(); |
|
60 |
|
61 RSat::TRetrieveMultimediaMessageV6 msg; |
|
62 RSat::TRetrieveMultimediaMessageV6Pckg msgPck(msg); |
|
63 |
|
64 TRequestStatus notifyStatus; |
|
65 |
|
66 // RetrieveMultimediaMessage proactive command is not supported in current version of Sat |
|
67 iSat.NotifyRetrieveMultimediaMsgPCmd(notifyStatus, msgPck); |
|
68 |
|
69 User::WaitForRequest(notifyStatus); |
|
70 ASSERT_EQUALS(KErrNotSupported, notifyStatus.Int()); |
|
71 |
|
72 AssertMockLtsyStatusL(); |
|
73 CleanupStack::PopAndDestroy(1, this); // this |
|
74 } |
|
75 |
|
76 |
|
77 /** |
|
78 @SYMTestCaseID BA-CSAT-MMM-SMMMPC-0001 |
|
79 @SYMPREQ 1780 |
|
80 @SYMComponent telephony_csat |
|
81 @SYMTestCaseDesc Test support in CSAT for RSat::NotifySubmitMultimediaMsgPCmd |
|
82 @SYMTestPriority High |
|
83 @SYMTestActions Invokes RSat::NotifySubmitMultimediaMsgPCmd |
|
84 @SYMTestExpectedResults Pass |
|
85 @SYMTestType CT |
|
86 */ |
|
87 void CCSatMultimediaMsgFU::TestNotifySubmitMultimediaMsgPCmd0001L() |
|
88 { |
|
89 OpenEtelServerL(EUseExtendedError); |
|
90 CleanupStack::PushL(TCleanupItem(Cleanup,this)); |
|
91 OpenPhoneL(); |
|
92 OpenSatL(); |
|
93 |
|
94 RSat::TSubmitMultimediaMessageV6 msg; |
|
95 RSat::TSubmitMultimediaMessageV6Pckg msgPck(msg); |
|
96 |
|
97 TRequestStatus notifyStatus; |
|
98 |
|
99 // SubmitMultimediaMessage proactive command is not supported in current version of Sat |
|
100 iSat.NotifySubmitMultimediaMsgPCmd(notifyStatus, msgPck); |
|
101 |
|
102 User::WaitForRequest(notifyStatus); |
|
103 ASSERT_EQUALS(KErrNotSupported, notifyStatus.Int()); |
|
104 |
|
105 AssertMockLtsyStatusL(); |
|
106 CleanupStack::PopAndDestroy(1, this); // this |
|
107 } |
|
108 |
|
109 |
|
110 /** |
|
111 @SYMTestCaseID BA-CSAT-MMM-DMMMPC-0001 |
|
112 @SYMPREQ 1780 |
|
113 @SYMComponent telephony_csat |
|
114 @SYMTestCaseDesc Test support in CSAT for RSat::NotifyDisplayMultimediaMsgPCmd |
|
115 @SYMTestPriority High |
|
116 @SYMTestActions Invokes RSat::NotifyDisplayMultimediaMsgPCmd |
|
117 @SYMTestExpectedResults Pass |
|
118 @SYMTestType CT |
|
119 */ |
|
120 void CCSatMultimediaMsgFU::TestNotifyDisplayMultimediaMsgPCmd0001L() |
|
121 { |
|
122 OpenEtelServerL(EUseExtendedError); |
|
123 CleanupStack::PushL(TCleanupItem(Cleanup,this)); |
|
124 OpenPhoneL(); |
|
125 OpenSatL(); |
|
126 |
|
127 RSat::TDisplayMultimediaMessageV6 msg; |
|
128 RSat::TDisplayMultimediaMessageV6Pckg msgPck(msg); |
|
129 |
|
130 TRequestStatus notifyStatus; |
|
131 |
|
132 // DisplayMultimediaMessage proactive command is not supported in current version of Sat |
|
133 iSat.NotifyDisplayMultimediaMsgPCmd(notifyStatus, msgPck); |
|
134 |
|
135 User::WaitForRequest(notifyStatus); |
|
136 ASSERT_EQUALS(KErrNotSupported, notifyStatus.Int()); |
|
137 |
|
138 AssertMockLtsyStatusL(); |
|
139 CleanupStack::PopAndDestroy(1, this); // this |
|
140 } |
|
141 |
|
142 |
|
143 |