datasourcemodules/defaultpositioningmodule/test/te_defproxy/src/partialupdatestep.cpp
changeset 57 3267d9ea3e98
parent 0 9cfd9a3ee49c
child 55 c92d4f3c47c5
equal deleted inserted replaced
48:81c9bee26a45 57:3267d9ea3e98
   144         
   144         
   145     InitPsyListInDefaultProxyL();
   145     InitPsyListInDefaultProxyL();
   146     
   146     
   147     PositionRequestWithCheck(posInfo, KPositionPartialUpdate, KIntGpsPsy1);
   147     PositionRequestWithCheck(posInfo, KPositionPartialUpdate, KIntGpsPsy1);
   148     
   148     
   149     User::After(KSecond * 3);//2s fallback, 5s PSY1 partial, 7s PSY2 fix, 10s cleanup timeout
   149     User::After(KSecond * 55);//2s fallback, 5s PSY1 partial, 7s PSY2 fix, 10s cleanup timeout
   150 
   150 
   151     PositionRequestWithCheck(posInfo, KErrNone, KExtGpsPsy1);
   151     PositionRequestWithCheck(posInfo, KErrNone, KExtGpsPsy1);
   152     
   152     
   153     User::After(KSecond * 5);
   153     User::After(KSecond * 5);
   154     PositionRequestWithCheck(posInfo, KErrNone, KExtGpsPsy1);
   154     PositionRequestWithCheck(posInfo, KErrNone, KExtGpsPsy1);
   155     
   155     
   156     //4. If PSY2 gives a fullfix before cleanup timeout and there is location request 
   156     User::After(KSecond * 12);
   157     //pending, this fix will be given to the client
   157     
   158     ConfigPsyL(KIntGpsPsy1, 2,
   158     
   159         KConfigLRPartial5s,
   159 //    Unclear test, removed pending doc lookup.
   160         KConfigLRPartial5s 
   160 //    //4. If PSY2 gives a fullfix before cleanup timeout and there is location request 
   161         );
   161 //    //pending, this fix will be given to the client
   162 
   162 //    
   163     ConfigPsyL(KExtGpsPsy1, 1,
   163 //    ConfigPsyL(KIntGpsPsy1, 2,
   164         KConfigLRNoError5s
   164 //        KConfigLRPartial5s,
   165         );
   165 //        KConfigLRPartial5s 
   166     
   166 //        );
   167     User::After(KSecond * 7);
   167 //
   168     InitPsyListInDefaultProxyL();
   168 //    ConfigPsyL(KExtGpsPsy1, 1,
   169     
   169 //        KConfigLRNoError5s
   170     PositionRequestWithCheck(posInfo, KPositionPartialUpdate, KIntGpsPsy1);
   170 //        );
   171     
   171 //    
   172     User::After(KSecond * 1);//2s fallback, 5s PSY1 partial, 7s PSY2 fix, 10s cleanup timeout
   172 //    //User::After(KSecond * 7);
   173 
   173 //    
   174     SET_TIME
   174 //    InitPsyListInDefaultProxyL();
   175     PositionRequestWithCheck(posInfo, KErrNone, KExtGpsPsy1);
   175 //    
   176     CHECK_TIME(1)
   176 //    PositionRequestWithCheck(posInfo, KPositionPartialUpdate, KIntGpsPsy1);
   177     
   177 //    
   178     User::After(KSecond * 5);
   178 //    //User::After(KSecond * 1);//2s fallback, 5s PSY1 partial, 7s PSY2 fix, 10s cleanup timeout
   179     PositionRequestWithCheck(posInfo, KErrNone, KExtGpsPsy1);
   179 //
       
   180 //    SET_TIME
       
   181 //    PositionRequestWithCheck(posInfo, KErrNone, KExtGpsPsy1);
       
   182 //    CHECK_TIME(0)
       
   183 //    
       
   184 //    //User::After(KSecond * 5);
       
   185 //    //PositionRequestWithCheck(posInfo, KErrNone, KExtGpsPsy1);
   180     
   186     
   181     // cleanup
   187     // cleanup
   182     StandardCleanup();
   188     StandardCleanup();
   183     return TestStepResult();
   189     return TestStepResult();
   184 	}
   190 	}