datasourcemodules/defaultpositioningmodule/test/te_defproxy/src/twopsysactivestep.cpp
equal
deleted
inserted
replaced
102 |
102 |
103 //3. When PSY1 does not response anything within timeshift, PSY2 shall |
103 //3. When PSY1 does not response anything within timeshift, PSY2 shall |
104 //return KErrNone |
104 //return KErrNone |
105 SET_TIME |
105 SET_TIME |
106 PositionRequestWithCheck(posInfo, KErrNone, KNetworkPsy1); |
106 PositionRequestWithCheck(posInfo, KErrNone, KNetworkPsy1); |
107 CHECK_TIME(3) //2s is timeshfift value min(2*TTFF(1),10)+1 |
107 CHECK_TIME(31) //2s is timeshfift value min(2*TTFF(1),10)+1 |
108 |
108 |
109 User::After(KSecond*7); |
109 User::After(KSecond*7); |
110 |
110 |
111 //4. When both PSY returns error code, the error code from the |
111 //4. When both PSY returns error code, the error code from the |
112 //first PSY be returned |
112 //first PSY be returned |
134 CHECK_TIME(5) |
134 CHECK_TIME(5) |
135 |
135 |
136 //7. PSY1 does not give a fix within timeshift, PSY2 is tried. If PSY1 then |
136 //7. PSY1 does not give a fix within timeshift, PSY2 is tried. If PSY1 then |
137 //give a error code, then fix from PSY2 will be used. |
137 //give a error code, then fix from PSY2 will be used. |
138 PositionRequestWithCheck(posInfo, KErrNone, KNetworkPsy1); |
138 PositionRequestWithCheck(posInfo, KErrNone, KNetworkPsy1); |
139 CHECK_TIME(12) //Timeshift time 2s + response time 10s |
139 CHECK_TIME(40) //Timeshift time 2s + response time 10s |
140 |
140 |
141 //Do everhing again when device status is Active |
141 //Do everhing again when device status is Active |
142 |
142 |
143 ConfigPsyL(KIntGpsPsy1, 8, |
143 ConfigPsyL(KIntGpsPsy1, 8, |
144 KConfigStatusActive, //Step 0. Set device status Ready |
144 KConfigStatusActive, //Step 0. Set device status Ready |
178 |
178 |
179 //3. When PSY1 does not response anything within timeshift, PSY2 shall |
179 //3. When PSY1 does not response anything within timeshift, PSY2 shall |
180 //return KErrNone |
180 //return KErrNone |
181 SET_TIME |
181 SET_TIME |
182 PositionRequestWithCheck(posInfo, KErrNone, KNetworkPsy1); |
182 PositionRequestWithCheck(posInfo, KErrNone, KNetworkPsy1); |
183 CHECK_TIME(3) //2s is timeshfift value min(2*TTFF(1),10)+1 |
183 CHECK_TIME(31) //2s is timeshfift value min(2*TTFF(1),10)+1 |
184 |
184 |
185 User::After(KSecond*7); |
185 User::After(KSecond*7); |
186 |
186 |
187 //4. When both PSY returns error code, the error code from the |
187 //4. When both PSY returns error code, the error code from the |
188 //first PSY be returned |
188 //first PSY be returned |
210 CHECK_TIME(5) |
210 CHECK_TIME(5) |
211 |
211 |
212 //7. PSY1 does not give a fix within timeshift, PSY2 is tried. If PSY1 then |
212 //7. PSY1 does not give a fix within timeshift, PSY2 is tried. If PSY1 then |
213 //give a error code, then fix from PSY2 will be used. |
213 //give a error code, then fix from PSY2 will be used. |
214 PositionRequestWithCheck(posInfo, KErrNone, KNetworkPsy1); |
214 PositionRequestWithCheck(posInfo, KErrNone, KNetworkPsy1); |
215 CHECK_TIME(12) //Timeshift time 2s + response time 10s |
215 CHECK_TIME(40) //Timeshift time 2s + response time 10s |
216 |
216 |
217 StandardCleanup(); |
217 StandardCleanup(); |
218 return TestStepResult(); |
218 return TestStepResult(); |
219 } |
219 } |
220 |
220 |