|
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 LOAD_SUITE tsi_a3f_devsound.dll |
|
17 |
|
18 //! @SYMTestCaseID MM-A3F-DEVSOUND-TONE-I-0001 |
|
19 //! @SYMTestCaseDesc Positive: Set DTMF lengths and play DTMF string (+ve) |
|
20 //! @SYMTestPriority High |
|
21 //! @SYMTestType CIT |
|
22 //! @SYMREQ 7935 |
|
23 //! @SYMPREQ 1540 |
|
24 //! @SYMTestActions 1. Initialise DevSound for tone playback |
|
25 //! 2. Create a DTMF string and set the DTMF lengths |
|
26 //! 3. Play the DTMF string |
|
27 //! @SYMTestExpectedResults The DTMF string is played until the end. ToneFinished returns with -10 |
|
28 RUN_TEST_STEP 600000 TSI_A3F_DEVSOUND MM-A3F-DEVSOUND-TONE-I-0001 |
|
29 TEST_COMPLETE |
|
30 |
|
31 //! @SYMTestCaseID MM-A3F-DEVSOUND-TONE-I-0002 |
|
32 //! @SYMTestCaseDesc Positive: Set tone repeats and play normal tone (+ve) |
|
33 //! @SYMTestPriority High |
|
34 //! @SYMTestType CIT |
|
35 //! @SYMREQ 7935 |
|
36 //! @SYMPREQ 1540 |
|
37 //! @SYMTestActions 1. Initialise DevSound for tone playback |
|
38 //! 2. Set tone repeats |
|
39 //! 3. Play simple tone |
|
40 //! @SYMTestExpectedResults The simple tone is played until the end as many times as specified in the config file. ToneFinished returns with -10 |
|
41 RUN_TEST_STEP 600000 TSI_A3F_DEVSOUND MM-A3F-DEVSOUND-TONE-I-0002 \tsi_a3f_devsound\tsi_a3f_devsound_tone.ini |
|
42 TEST_COMPLETE |
|
43 |
|
44 //! @SYMTestCaseID MM-A3F-DEVSOUND-TONE-I-0003 |
|
45 //! @SYMTestCaseDesc Positive: Set tone repeats and play dual tone (+ve) |
|
46 //! @SYMTestPriority High |
|
47 //! @SYMTestType CIT |
|
48 //! @SYMREQ 7935 |
|
49 //! @SYMPREQ 1540 |
|
50 //! @SYMTestActions 1. Initialise DevSound for tone playback |
|
51 //! 2. Set tone repeats |
|
52 //! 3. Play dual tone |
|
53 //! @SYMTestExpectedResults The dual tone is played until the end as many times as specified in the config file. ToneFinished returns with -10 |
|
54 RUN_TEST_STEP 600000 TSI_A3F_DEVSOUND MM-A3F-DEVSOUND-TONE-I-0003 \tsi_a3f_devsound\tsi_a3f_devsound_tone.ini |
|
55 TEST_COMPLETE |
|
56 |
|
57 //! @SYMTestCaseID MM-A3F-DEVSOUND-TONE-I-0004 |
|
58 //! @SYMTestCaseDesc Negative: Call CMMFDevSound::InitializeL while tone playing (-ve) |
|
59 //! @SYMTestPriority High |
|
60 //! @SYMTestType CIT |
|
61 //! @SYMREQ ???? |
|
62 //! @SYMPREQ 1540 |
|
63 //! @SYMTestActions 1. Initialise DevSound for tone playback |
|
64 //! 2. Play simple tone |
|
65 //! 3. Initialise DevSound again before the ToneFinished callback is received |
|
66 //! @SYMTestExpectedResults The second call to InitializeL returns with KErrNotReady. |
|
67 RUN_TEST_STEP 600000 TSI_A3F_DEVSOUND MM-A3F-DEVSOUND-TONE-I-0004 |
|
68 TEST_COMPLETE |
|
69 |
|
70 //! @SYMTestCaseID MM-A3F-DEVSOUND-TONE-I-0005 |
|
71 //! @SYMTestCaseDesc Negative: Check CMMFDevSound::FixedSequenceCount() always returns zero and |
|
72 //! play pre-defined tone sequence using CMMFDevSound::PlayFixedSequenceL (-ve) |
|
73 //! @SYMTestPriority High |
|
74 //! @SYMTestType CIT |
|
75 //! @SYMREQ ???? |
|
76 //! @SYMPREQ 1540 |
|
77 //! @SYMTestActions 1. Initialise DevSound for tone playback |
|
78 //! 2. Get the fixed sequence count |
|
79 //! 3. Play a fixed sequence |
|
80 //! @SYMTestExpectedResults FixedSequenceCount() should return 0. PlayFixedSequenceL should leave with KErrNotSupported |
|
81 RUN_TEST_STEP 600000 TSI_A3F_DEVSOUND MM-A3F-DEVSOUND-TONE-I-0005 |
|
82 TEST_COMPLETE |
|
83 |
|
84 //! @SYMTestCaseID MM-A3F-DEVSOUND-TONE-I-0006 |
|
85 //! @SYMTestCaseDesc Negative: Give FourCC code on CMMFDevSound::InitializeL when mode is EMMFStateTonePlaying (-ve) |
|
86 //! @SYMTestPriority High |
|
87 //! @SYMTestType CIT |
|
88 //! @SYMREQ ???? |
|
89 //! @SYMPREQ 1540 |
|
90 //! @SYMTestActions 1. Initialise DevSound for tone playback specifying a FourCC code |
|
91 //! @SYMTestExpectedResults InitializeL should leave with KErrNotSupported |
|
92 RUN_TEST_STEP 600000 TSI_A3F_DEVSOUND MM-A3F-DEVSOUND-TONE-I-0006 |
|
93 TEST_COMPLETE |
|
94 |
|
95 //! @SYMTestCaseID MM-A3F-DEVSOUND-TONE-I-0007 |
|
96 //! @SYMTestCaseDesc Positive: Call CMMFDevSound::CancelInitialize before the InitializeComplete callback. (+ve) |
|
97 //! |
|
98 //! @SYMTestPriority High |
|
99 //! @SYMTestType CIT |
|
100 //! @SYMREQ ???? |
|
101 //! @SYMPREQ 1540 |
|
102 //! @SYMTestActions 1. Initialise DevSound for tone playback |
|
103 //! 2. Call CMMFDevSound::CancelInitialize before the InitializeComplete callback is received |
|
104 //! 3. Wait 10 seconds to ensure the InitializeComplete callback is not received. |
|
105 //! 4. Call SetConfig to verify DevSound is not initialized. |
|
106 //! @SYMTestExpectedResults The CMMFDevSound::CancelInitialize call cancels the InitializeComplete callback. DevSound is not Initialized |
|
107 RUN_TEST_STEP 600000 TSI_A3F_DEVSOUND MM-A3F-DEVSOUND-TONE-I-0007 \tsi_a3f_devsound\tsi_a3f_devsound_tone.ini |
|
108 TEST_COMPLETE |
|
109 |
|
110 //! @SYMTestCaseID MM-A3F-DEVSOUND-TONE-I-0008 |
|
111 //! @SYMTestCaseDesc Negative: Call CMMFDevSound::EmptyBuffers while initialised to play tones (-ve) |
|
112 //! |
|
113 //! @SYMTestPriority High |
|
114 //! @SYMTestType CIT |
|
115 //! @SYMREQ ???? |
|
116 //! @SYMPREQ 1540 |
|
117 //! @SYMTestActions 1. Configure DevSound for tone playback. |
|
118 //! 2. Initialize DevSound via CMMFDevSound::InitializeL in tone mode using TMMFState::EMMFStateTonePlaying. |
|
119 //! 3. Call CMMFDevSound::EmptyBuffers after the InitializeComplete callback is received |
|
120 //! |
|
121 //! @SYMTestExpectedResults The CMMFDevSound::EmptyBuffers call returns with KErrNotSupported |
|
122 RUN_TEST_STEP 600000 TSI_A3F_DEVSOUND MM-A3F-DEVSOUND-TONE-I-0008 \tsi_a3f_devsound\tsi_a3f_devsound_tone.ini |
|
123 TEST_COMPLETE |
|
124 |
|
125 //! @SYMTestCaseID MM-A3F-DEVSOUND-TONE-I-0009 |
|
126 //! @SYMTestCaseDesc Negative: Call CMMFDevSound::EmptyBuffers while tone playing (-ve) |
|
127 //! @SYMTestPriority High |
|
128 //! @SYMTestType CIT |
|
129 //! @SYMREQ ???? |
|
130 //! @SYMPREQ 1540 |
|
131 //! @SYMTestActions |
|
132 //! @SYMTestExpectedResults |
|
133 RUN_TEST_STEP 600000 TSI_A3F_DEVSOUND MM-A3F-DEVSOUND-TONE-I-0009 |
|
134 TEST_COMPLETE |